Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linking error on Mac #23

Closed
fedorov opened this issue Apr 15, 2016 · 5 comments
Closed

Linking error on Mac #23

fedorov opened this issue Apr 15, 2016 · 5 comments
Assignees

Comments

@fedorov
Copy link
Member

fedorov commented Apr 15, 2016

Building on Mac OS X 10.10.5, I have this error. Slicer built from scratch. CMAKE_OSX_DEPLOYMENT_TARGET set to 10.10.

[  4%] Built target ConfigureAdditionalLauncherSettings
[ 36%] Built target OpenCV
[ 68%] Built target ITKVideoBridgeOpenCV
[ 72%] Performing build step for 'inner'
[  5%] Built target ConfigureAdditionalLauncherSettings
[ 10%] Linking CXX shared library ../../lib/Slicer-4.5/qt-loadable-modules/libvtkSlicerOpenCVModuleLogic.dylib
ld: file not found: /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SharedFileList.framework/Versions/A/SharedFileList for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[5]: *** [lib/Slicer-4.5/qt-loadable-modules/libvtkSlicerOpenCVModuleLogic.dylib] Error 1
make[4]: *** [SlicerOpenCV/Logic/CMakeFiles/vtkSlicerOpenCVModuleLogic.dir/all] Error 2
make[3]: *** [all] Error 2
@fedorov
Copy link
Member Author

fedorov commented Apr 15, 2016

cc: @jcfr

@fedorov
Copy link
Member Author

fedorov commented May 5, 2016

It turns out, upgrade to XCode 7 removes SDK 10.10, even if you do not upgrade to El Capitan, see https://forum.openframeworks.cc/t/warning-before-upgrading-to-xcode-7/20755/15.

I was able to resolve this issue by manually installing OS X SDK 10.10 (I also update Slicer, and, again, did a clean build of everything, but I think that didn't help in the past).

For the reference, I downloaded 10.10 SDK from https://github.com/phracker/MacOSX-SDKs/releases

FYI: @jcfr @pieper

@fedorov fedorov closed this as completed May 5, 2016
@jcfr
Copy link
Member

jcfr commented May 5, 2016

Thanks for the note.

Out of curiosity, did you look into using 10.11 SDK while targeting 10.10 deployment target ?

(( can't wait to have MacOSX docker outside of beta ))

@jcfr
Copy link
Member

jcfr commented May 5, 2016

re: upgrade to XCode 7 removes SDK 10.10, did a clean build of everything,

Note for later: Each time you upgrade XCode ... you have to do a clean build.

@fedorov
Copy link
Member Author

fedorov commented May 5, 2016

Out of curiosity, did you look into using 10.11 SDK while targeting 10.10 deployment target ?

I did try many things, I think I tried that too.

Note for later: Each time you upgrade XCode ... you have to do a clean build.

I did quite a few clean builds before figuring this out ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants