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?
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 !
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
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?
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.
Thank you for your kindness and patience!
You must be logged in to reply to this topic.
Get involved in this forum: