<div dir="ltr"><div><div>Hi,<br><br></div><div>I.)<br></div>I have found some unusual build behavior in kdevelop.<br><br></div><div>This creates a build successfuly: <br>(1)<i> cmake CMakeLists.txt<br></i></div><div><i>make</i><br><br></div><div>A repeated  <i>make</i> command recognizes that everything was built and does not start the build process again.<br><br></div><div>But running <i>cmake again, and then make fails with this message about undefined 'main' and '__start' symbols - </i>listing is at the end.<i><br><br></i></div><div>Using <i>make clean</i> and starting from (1)  works, but it requires a rebuild - which is time consuming.<br><br>Is this a <i><u>cmake</u></i> issue or has it maybe something to do with how the kdevelop code base is structured: using plugins for different application parts<i>? </i>Is it somehow possible<br></div><div>to work around it<i>?<br></i></div><div><i><br>II.)<br>The same thing happens in the qtcreator IDE: it always tries to build the project from scratch. </i>I have yet to find a C++ IDE with good support for importing a cmake project.<br></div><div>Using kdevelop to develop kdevelop seems not to work on my system, because the system recognizes that there is already a running instance, when one tries to execute the modified kdevelop instance from the IDE.<br></div><div><br><i><br></i></div><div>Best regards!<i><br></i></div><div><i>Mili<br></i></div><div><i><br>[ 33%] Linking CXX executable test_vcsannotation<br>/usr/lib/gcc/x86_64-linux-gnu/<wbr>7/../../../x86_64-linux-gnu/<wbr>Scrt1.o: In function `_start':<br>(.text+0x20): undefined reference to `main'<br>collect2: error: ld returned 1 exit status<br>kdevplatform/vcs/tests/<wbr>CMakeFiles/test_vcslocation.<wbr>dir/build.make:94: recipe for target 'kdevplatform/vcs/tests/test_<wbr>vcslocation' failed<br>make[2]: *** [kdevplatform/vcs/tests/test_<wbr>vcslocation] Error 1<br>CMakeFiles/Makefile2:7389: recipe for target 'kdevplatform/vcs/tests/<wbr>CMakeFiles/test_vcslocation.<wbr>dir/all' failed<br>make[1]: *** [kdevplatform/vcs/tests/<wbr>CMakeFiles/test_vcslocation.<wbr>dir/all] Error 2<br>make[1]: *** Waiting for unfinished jobs....<br>/usr/lib/gcc/x86_64-linux-gnu/<wbr>7/../../../x86_64-linux-gnu/<wbr>Scrt1.o: In function `_start':<br>(.text+0x20): undefined reference to `main'<br>collect2: error: ld returned 1 exit status<br>kdevplatform/vcs/tests/<wbr>CMakeFiles/test_vcsstatusinfo.<wbr>dir/build.make:94: recipe for target 'kdevplatform/vcs/tests/test_<wbr>vcsstatusinfo' failed<br>make[2]: *** [kdevplatform/vcs/tests/test_<wbr>vcsstatusinfo] Error 1<br>CMakeFiles/Makefile2:7469: recipe for target 'kdevplatform/vcs/tests/<wbr>CMakeFiles/test_vcsstatusinfo.<wbr>dir/all' failed<br>make[1]: *** [kdevplatform/vcs/tests/<wbr>CMakeFiles/test_vcsstatusinfo.<wbr>dir/all] Error 2<br>/usr/lib/gcc/x86_64-linux-gnu/<wbr>7/../../../x86_64-linux-gnu/<wbr>Scrt1.o: In function `_start':<br>(.text+0x20): undefined reference to `main'<br>collect2: error: ld returned 1 exit status<br>/usr/lib/gcc/x86_64-linux-gnu/<wbr>7/../../../x86_64-linux-gnu/<wbr>Scrt1.o: In function `_start':<br>(.text+0x20): undefined reference to `main'<br>collect2: error: ld returned 1 exit status<br>kdevplatform/vcs/tests/<wbr>CMakeFiles/test_vcsevent.dir/<wbr>build.make:94: recipe for target 'kdevplatform/vcs/tests/test_<wbr>vcsevent' failed<br>make[2]: *** [kdevplatform/vcs/tests/test_<wbr>vcsevent] Error 1<br>CMakeFiles/Makefile2:7629: recipe for target 'kdevplatform/vcs/tests/<wbr>CMakeFiles/test_vcsevent.dir/<wbr>all' failed<br>make[1]: *** [kdevplatform/vcs/tests/<wbr>CMakeFiles/test_vcsevent.dir/<wbr>all] Error 2<br>kdevplatform/vcs/tests/<wbr>CMakeFiles/test_<wbr>vcsannotationline.dir/build.<wbr>make:94: recipe for target 'kdevplatform/vcs/tests/test_<wbr>vcsannotationline' failed<br>make[2]: *** [kdevplatform/vcs/tests/test_<wbr>vcsannotationline] Error 1<br>CMakeFiles/Makefile2:7429: recipe for target 'kdevplatform/vcs/tests/<wbr>CMakeFiles/test_<wbr>vcsannotationline.dir/all' failed<br>make[1]: *** [kdevplatform/vcs/tests/<wbr>CMakeFiles/test_<wbr>vcsannotationline.dir/all] Error 2<br>/usr/lib/gcc/x86_64-linux-gnu/<wbr>7/../../../x86_64-linux-gnu/<wbr>Scrt1.o: In function `_start':<br>(.text+0x20): undefined reference to `main'<br>collect2: error: ld returned 1 exit status<br>kdevplatform/vcs/tests/<wbr>CMakeFiles/test_vcsdiff.dir/<wbr>build.make:94: recipe for target 'kdevplatform/vcs/tests/test_<wbr>vcsdiff' failed<br>make[2]: *** [kdevplatform/vcs/tests/test_<wbr>vcsdiff] Error 1<br>CMakeFiles/Makefile2:7589: recipe for target 'kdevplatform/vcs/tests/<wbr>CMakeFiles/test_vcsdiff.dir/<wbr>all' failed<br>make[1]: *** [kdevplatform/vcs/tests/<wbr>CMakeFiles/test_vcsdiff.dir/<wbr>all] Error 2<br>/usr/lib/gcc/x86_64-linux-gnu/<wbr>7/../../../x86_64-linux-gnu/<wbr>Scrt1.o: In function `_start':<br>(.text+0x20): undefined reference to `main'<br>collect2: error: ld returned 1 exit status<br>kdevplatform/vcs/tests/<wbr>CMakeFiles/test_vcsrevision.<wbr>dir/build.make:94: recipe for target 'kdevplatform/vcs/tests/test_<wbr>vcsrevision' failed<br>make[2]: *** [kdevplatform/vcs/tests/test_<wbr>vcsrevision] Error 1<br>CMakeFiles/Makefile2:7509: recipe for target 'kdevplatform/vcs/tests/<wbr>CMakeFiles/test_vcsrevision.<wbr>dir/all' failed<br>make[1]: *** [kdevplatform/vcs/tests/<wbr>CMakeFiles/test_vcsrevision.<wbr>dir/all] Error 2<br>/usr/lib/gcc/x86_64-linux-gnu/<wbr>7/../../../x86_64-linux-gnu/<wbr>Scrt1.o: In function `_start':<br>(.text+0x20): undefined reference to `main'<br>collect2: error: ld returned 1 exit status<br>kdevplatform/vcs/tests/<wbr>CMakeFiles/test_vcsitemevent.<wbr>dir/build.make:94: recipe for target 'kdevplatform/vcs/tests/test_<wbr>vcsitemevent' failed<br>make[2]: *** [kdevplatform/vcs/tests/test_<wbr>vcsitemevent] Error 1<br>CMakeFiles/Makefile2:7549: recipe for target 'kdevplatform/vcs/tests/<wbr>CMakeFiles/test_vcsitemevent.<wbr>dir/all' failed<br>make[1]: *** [kdevplatform/vcs/tests/<wbr>CMakeFiles/test_vcsitemevent.<wbr>dir/all] Error 2<br>/usr/lib/gcc/x86_64-linux-gnu/<wbr>7/../../../x86_64-linux-gnu/<wbr>Scrt1.o: In function `_start':<br>(.text+0x20): undefined reference to `main'<br>collect2: error: ld returned 1 exit status<br>kdevplatform/vcs/tests/<wbr>CMakeFiles/test_vcsannotation.<wbr>dir/build.make:94: recipe for target 'kdevplatform/vcs/tests/test_<wbr>vcsannotation' failed<br>make[2]: *** [kdevplatform/vcs/tests/test_<wbr>vcsannotation] Error 1<br>CMakeFiles/Makefile2:7669: recipe for target 'kdevplatform/vcs/tests/<wbr>CMakeFiles/test_vcsannotation.<wbr>dir/all' failed<br>make[1]: *** [kdevplatform/vcs/tests/<wbr>CMakeFiles/test_vcsannotation.<wbr>dir/all] Error 2<br>Makefile:140: recipe for target 'all' failed<br>make: *** [all] Error 2<br><br></i></div></div>