[SVN] Build is broken (solution included)

Andreas Pakulat apaku at gmx.de
Wed Oct 21 11:01:32 UTC 2009


On 21.10.09 11:47:56, Nikos Chantziaras wrote:
> Current KDevelop SVN cannot build here:
>
> Linking CXX executable cppcodegentest
> CMakeFiles/cppcodegentest.dir/test_cppcodegen.o: In function  
> `TestCppCodegen::parseFile(KDevelop::IndexedString)':
> test_cppcodegen.cpp:(.text+0x9e): undefined reference to  
> `KDevelop::Core::self()'
> CMakeFiles/cppcodegentest.dir/test_cppcodegen.o: In function  
> `TestCppCodegen::cleanupTestCase()':
> test_cppcodegen.cpp:(.text+0xe8): undefined reference to  
> `KDevelop::Core::self()'
> test_cppcodegen.cpp:(.text+0xf0): undefined reference to  
> `KDevelop::Core::cleanup()'
> CMakeFiles/cppcodegentest.dir/test_cppcodegen.o: In function  
> `TestCppCodegen::initTestCase()':
> test_cppcodegen.cpp:(.text+0xe67): undefined reference to  
> `KDevelop::ShellExtension::ShellExtension()'
> test_cppcodegen.cpp:(.text+0xe76): undefined reference to  
> `KDevelop::ShellExtension::s_instance'
> test_cppcodegen.cpp:(.text+0xe85): undefined reference to  
> `KDevelop::Core::initialize(KDevelop::Core::Setup)'
>
> The problem is that in languages/cpp/tests/CMakeLists.txt, the  
> target_link_libraries for cppcodegentest forgets to state this:
>
> ${KDEVPLATFORM_SHELL_LIBRARIES}
>
> Adding that fixes the issue.

Except that its the wrong fix :) I've comitted a fix already, but everybody
will need to clean his builddir as cmake doesn't update its cache properly
after the renaming of targets.

Andreas

-- 
You will have a long and unpleasant discussion with your supervisor.




More information about the KDevelop-devel mailing list