- This topic has 4 replies, 2 voices, and was last updated 5 years, 5 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
Home › Forum › SOFA › Building SOFA › [SOLVED] Questions about "Setting up QtCreator"
Tagged: 64_bits, GCC, Linux_ubuntu, Plugin_other, Qt;Build, SOFA_1906
Hello, I have questions about “Setting up QtCreator”
1. Since I have used cMake compile the Cmakefiles, why do I need to compile in Qt again?
2.
In QtCreator, open project CMakeLists.txt. Choose build-release as build directory, then click on Finish. QtCreator is ready to compile, and the build configuration is named “all”, though it corresponds to a Release.
Click on the Project button in the left, then rename the configuration from “all” to “Release”.
Now click on add/Build to create a new configuration called “Debug”. Choose build-debug as build directory and run Cmake. If you set the -G “CodeBlocks – Unix Makefiles” option in the cmake command line discussed in the previous section, you do not even need to run CMake.
where is this file, is it in the source code since it can not be found in the build files.
Thank you !
Hi @shuo
1. CMake is the first step before the compilation. I think you are confusing these two different steps: (i) configuration of the project with CMake and (ii) compilation
2. The CMakeLists.txt referred here corresponds to the CMakeLists located in the sources of SOFA
Best wishes,
Hugo
Thank you for your reply,
So, Cmake will generate executable files that can be opened by Qt.
Like VisualStudio(Sorry, I never used Qt before), Cmake first generates .vcxproj, then in VS these will be built.
Is it right?
Regards,
Shuo
Hi @shuo
Sorry for the delay.
If you want to do both steps (configuration and compilation) using Qt, it is possible. The steps to follow are given here.
You can directly open the project by select the CMakeLists.txt at the SOFA source repository in QtCreator. And follow the steps.
Let us know if you struggle with this.
Best
Hugo
Thank you for your kindness and patience!
Regards,
Shuo
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.