Preferences -> Build, Execution, Deployment -> Deployment. A change in the remote deployment directory solves it: Some times the local and remote files can get out of sync.It is unclear why, a restart of the IDE solves the problem. Some times the “Loading cmake project” step might hang. ![]() PS: To use gdb properly, don’t forget to pass -O0 to the CMAKE_CXX_FLAGS Known issues / quirks: Build options: Add -j$T where T = a sensible number of threads for your.Toolchain: the name of the toolchain just created.gdb: /home/$USER/alice/sw/slc7_x86-64/GCC-Toolchain/latest/bin/gdb.gcc: /home/$USER/alice/sw/slc7_x86-64/GCC-Toolchain/latest/bin/gcc.make: /opt/rh/devtoolset-7/root/usr/bin/make.Follow the instructions from here to start a full remote project on CLion running on your local host, with the options outlined below.Source /home/$USER/alice/sw/slc7_x86-64/CMake/latest/etc/profile.d/init.sh Source /home/$USER/alice/sw/slc7_x86-64/ReadoutCard/latest/etc/profile.d/init.sh #Replace/extend with your package idea in the source directory.Įxport ALIBUILD_WORK_DIR="/home/$USER/alice/sw" Pre-existing projects - For projects that already existed, it is better to remove them by deleting the folder.Mac clion exe - On Mac the path to the clion executable can either be /Applications/CLion.app/Contents/MacOS or ~/Library/Application\ Support/JetBrains/Toolbox/apps/CLion/ch-0/201.5616.31/CLion\ 2020.1\ EAP.app/Contents/MacOS/clion (adapt the version numbers) if installed with Jetbrains Toolbox.However, when “install” is added to the “Build options”, a valid CMAKE_INSTALL_PREFIX has to be added in “CMake options”, for example “-DCMAKE_INSTALL_PREFIX=/home/ /alice/sw/slc7_x86-64/O2/latest". Options - By default, no CMake options are needed in “File->Settings->Build, Execution, Deployment->CMake->CMake options”.If you haven’t opened your project, go to File->Open.Use /alice/sw/BUILD/O2-latest/O2/.envrc as a starting point. Create a new file “.envrc” which loads all the build environments of the projects that you will run on CLion.Go to the directory from where you would usually run CLion.Build with aliBuild as you would do normally.Make sure you follow the procedure until the end, including the “install hooks” part.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |