OSX/CI: kdevelop fails to build on branch master

Kevin Funk kfunk at kde.org
Tue Dec 23 08:12:33 GMT 2014


On Tuesday 23 December 2014 08:55:24 Kevin Funk wrote:
> On Tuesday 23 December 2014 02:19:23 Marko Käning wrote:
> > [ 24%] Building CXX object
> > languages/plugins/custom-definesandincludes/tests/CMakeFiles/test_definesa
> > n
> > dincludes.dir/test_definesandincludes.cpp.o Linking CXX executable
> > kdevelop.app/Contents/MacOS/kdevelop
> > 
> > [ 24%] ^@^@^@^@^@^@^@Undefined symbols for architecture x86_64:
> >   "_CFBundleGetInfoDictionary", referenced from:
> >       _main in main.cpp.o
> >   
> >   "_CFBundleGetMainBundle", referenced from:
> >       _main in main.cpp.o
> >   
> >   "_CFDictionarySetValue", referenced from:
> >       _main in main.cpp.o
> >   
> >   "___CFConstantStringClassReference", referenced from:
> >       CFString in main.cpp.o
> >       CFString in main.cpp.o
> >   
> >   "_kCFBooleanFalse", referenced from:
> >       _main in main.cpp.o
> >   
> >   "_kCFBooleanTrue", referenced from:
> >       _main in main.cpp.o
> > 
> > ld: symbol(s) not found for architecture x86_64
> > clang: error: linker command failed with exit code 1 (use -v to see
> > invocation) make[2]: *** [app/kdevelop.app/Contents/MacOS/kdevelop] Error
> > 1
> > make[1]: *** [app/CMakeFiles/kdevelop.dir/all] Error 2
> > 
> > _______________________________________________
> > KDevelop mailing list
> > KDevelop at kde.org
> > https://mail.kde.org/mailman/listinfo/kdevelop
> 
> Just to make sure: Did that work before?

Forget this comment. It's now failing because of my recent merge of 4.7 into 
master.

@Marko: Can you try this patch?

diff --git a/app/CMakeLists.txt b/app/CMakeLists.txt
index b4700b3..a778271 100644
--- a/app/CMakeLists.txt
+++ b/app/CMakeLists.txt
@@ -29,6 +29,9 @@ target_link_libraries(kdevelop
 
     Qt5::Quick
 )
+IF(APPLE)
+    target_link_libraries(kdevelop "-framework CoreFoundation")
+ENDIF()
 
 install(TARGETS kdevelop ${INSTALL_TARGETS_DEFAULT_ARGS} )

-- 
Kevin Funk | kfunk at kde.org | http://kfunk.org



More information about the KDevelop mailing list