Linking error due to referencing wrong SDK version

Having trouble installing or compiling FreeCAD? Get help here.
davidlni
Posts: 4
Joined: Mon Nov 05, 2018 4:01 am

Linking error due to referencing wrong SDK version

Postby davidlni » Wed Nov 07, 2018 6:02 am

Hi all,

I am compiling the FreeCAD 0.18 on my MacOS X with recently updated Xcode 10.14 SDK. For some reason, cmake picks up an older version framework (10.11) which doesn't exist for linking with external object but CMakeCache.txt does use all frameworks of 10.14 version. How can I fix this issue?

Code: Select all

File: build.make 

# External object files for target DraftUtils
DraftUtils_EXTERNAL_OBJECTS =

Mod/Draft/DraftUtils.so: src/Mod/Draft/App/CMakeFiles/DraftUtils.dir/AppDraftUtils.cpp.o
... ...
Mod/Draft/DraftUtils.so: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/AGL.framework
Mod/Draft/DraftUtils.so: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/OpenGL.framework

Code: Select all

make[2]: *** No rule to make target `/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/AGL.framework', needed by `Mod/Part/Part.so'.  Stop.
make[1]: *** [src/Mod/Part/App/CMakeFiles/Part.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 54%] Built target FreeCADGui
make: *** [all] Error 2
Thanks,
David