Topic: IDE qtcreator do not compile
kaputtnik Topic Opener |
Posted at: 2015-04-30, 17:47
I am trying to use qtcreator as the IDE for widelands. But either i get an error: "Build directory and source directory must not be the same." or "CMakeLists.txt is missing" (or similar) Does somebody know which are the correct settings in qtcreator? I set: build directory: ~/Quellcode/widelands-repo/bridged_roads/build With this settings the first error occurs. If i ommit the doublepoints the second error occurs. Here you could find an image of the settings dialog in qtcreator: click It's surely just a little thing what is going wrong here.... Fight simulator for Widelands: |
GunChleoc |
Posted at: 2015-05-01, 11:05
When using QT Creator, I open the main Cmakelists.txt with the standard settings. This will give me a new project with all the editing/navigation/refactoring functions. I then use ./compile.sh from the command line to compile - I have never tried compiling/debugging with QT Creator directly. So, I can't help you there. You will also need to configure the editing options to fit our code style. Busy indexing nil values Top Quote |
kaputtnik Topic Opener |
Posted at: 2015-05-01, 13:23
Thanks for reply I tested your idea of open the CMakeLists.txt. But this would bring very much build targets and each must be enabled by hand... not a good way. But i think i get it now... i write it down here so that it could be found by anyone:
I will take care of it Fight simulator for Widelands: |
GunChleoc |
Posted at: 2015-05-01, 14:12
That sounds really complicated! I just open the Cmakelist.txt, let it use the default options and that's it. No further settings needed - all the library includes are defined in the Cmakelist.txt already. I don't make a new project and then import, I open it as an existing project. Busy indexing nil values Top Quote |
kaputtnik Topic Opener |
Posted at: 2015-05-01, 15:34
Yes, thats maybe a bit complicated. But it sounds more complicated as it is. If you want to debug your currently changed code, you must run the compile.sh script again, mustn't you? I just have to press a Shortcut. Don't know which is the more convenient way... As qtcreator supports bazaar (imho also with branches), maybe its not the badest thing to investigate qtcreator a bit more Fight simulator for Widelands: |
GunChleoc |
Posted at: 2015-05-01, 17:22
If you wish to use the debugger, definitely not a bad idea to look into it. Busy indexing nil values Top Quote |
kaputtnik Topic Opener |
Posted at: 2015-05-01, 18:49
Debugging is currently the only thing i want to do Fight simulator for Widelands: |
NotYetTakenUserName |
Posted at: 2019-10-18, 21:24
a bunch of easy tasks
Worked like charm until cmake complained about line 61: CMake Error at CMakeLists.txt:65 (message): Build directory and source directory must not be the same. Quick fix, since I couldn't (didn't want to) figure out the root cause. right under line 8
add
Now they are different. Which is fine. Probably not the final solution, though. But then I got stuck again on:
Qt Creator 3.0.1 Based on Qt 5.2.1 (GCC 4.8.2, 64 bit) has two options. 1. Custom process step 2. make I went for custom and used /usr/bin/cmake as command. Currently, Qt is busy building. Let's see what we get. Any ideas on how to make me feel even more stupid? Problem was: I messed up the build directory in qt-creator. I wanted to have it in complete elsewhere away from the sources. Turned out to be a bad idea. Edited: 2019-10-19, 11:36
It's my opinion, plus I don't share it. Top Quote |
GunChleoc |
Posted at: 2019-10-25, 10:25
While I use QTCreator for working on the code, I always use our command line script for compiling and gdb for debugging. If you can figure this out, we could add instructions to the wiki. Busy indexing nil values Top Quote |
NotYetTakenUserName |
Posted at: 2019-10-25, 17:33
Good point! Why not using the script in creator? Should work just as well. It's my opinion, plus I don't share it. Top Quote |