[SVN] Build is broken (solution included)
Nikos Chantziaras
realnc at arcor.de
Wed Oct 21 08:47:56 UTC 2009
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.
More information about the KDevelop-devel
mailing list