pyushkevich / greedy

Very fast greedy diffeomorphic registration code
GNU General Public License v3.0
59 stars 16 forks source link

Building on Yosemite #3

Closed muschellij2 closed 6 years ago

muschellij2 commented 7 years ago

TL;DR, need ccmake with:

 CMAKE_OSX_DEPLOYMENT_TARGET      10.11                                                
 CMAKE_OSX_SYSROOT                /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk

Get the following error:

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)

Tried export MACOSX_DEPLOYMENT_TARGET=10.10 no dice.

Tried setting MAKE_OSX_DEPLOYMENT_TARGET 10.11

 CMake Error at /opt/local/share/cmake-3.5/Modules/Platform/Darwin.cmake:85 (message):
   CMAKE_OSX_DEPLOYMENT_TARGET (10.11) is greater than CMAKE_OSX_SYSROOT SDK:

   Please set CMAKE_OSX_DEPLOYMENT_TARGET to 10.10 or lower.
 Call Stack (most recent call first):
   /opt/local/share/cmake-3.5/Modules/CMakeSystemSpecificInformation.cmake:36
 (include)
   CMakeLists.txt:1 (PROJECT)

So I had to set the SDK to the one for 10.11: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk

Then it seems

pyushkevich commented 7 years ago

I think on newer OSX, you can just not use CMAKE_OSX_SYSROOT, they do not provide older SDKs anymore.

At least that's what I saw on Sierra.

Paul

On Tue, Jun 6, 2017 at 11:56 AM, John Muschelli notifications@github.com wrote:

TL;DR, need ccmake with:

CMAKE_OSX_DEPLOYMENT_TARGET 10.11 CMAKE_OSX_SYSROOT /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk

  • cmake version 3.5.2
  • xcode-select version 2339.
  • OS X Yosemite- 10.10.5 (14F2411)
  • clang/clang --version Apple LLVM version 7.0.2 (clang-700.1.81) Target: x86_64-apple-darwin14.5.0 Thread model: posix
  • Homebrew 1.2.1, Homebrew/homebrew-core (git revision 703a1; last commit 2017-06-01)

Get the following error:

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)

Tried export MACOSX_DEPLOYMENT_TARGET=10.10 no dice.

Tried setting MAKE_OSX_DEPLOYMENT_TARGET 10.11

CMake Error at /opt/local/share/cmake-3.5/Modules/Platform/Darwin.cmake:85 (message): CMAKE_OSX_DEPLOYMENT_TARGET (10.11) is greater than CMAKE_OSX_SYSROOT SDK:

Please set CMAKE_OSX_DEPLOYMENT_TARGET to 10.10 or lower. Call Stack (most recent call first): /opt/local/share/cmake-3.5/Modules/CMakeSystemSpecificInformation.cmake:36 (include) CMakeLists.txt:1 (PROJECT)

So I had to set the SDK to the one for 10.11: /Applications/Xcode.app/Contents/Developer/Platforms/ MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk

Then it seems

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pyushkevich/greedy/issues/3, or mute the thread https://github.com/notifications/unsubscribe-auth/ABLyW8MsUaral527r4Uh1KSYU3uE7ThNks5sBXaagaJpZM4NxjZn .

-- Paul A. Yushkevich, Ph.D. Associate Professor Penn Image Computing and Science Laboratory Department of Radiology University of Pennsylvania