hammer_faq > Hammer in 3D Slicer for mac only support x86?
Showing 1-2 of 2 posts
Display:
Results per page:
Nov 29, 2011  08:11 PM | Yang Yu
Hammer in 3D Slicer for mac only support x86?
The slicer is built in my Mac of x86_64. When I try slicer to install extend module, it could find HammerRegistration and installed. But when I restart Slicer, I can not find HammerRegistration module. I guess whether the website only provide precompiled 32-bit HammerRegistration. If so, could you please let me know whether you provide 64-bit HammerRegistration for Mac or how to get the 64-bit library from your open source codes?

Thanks,
Yang
Nov 29, 2011  10:11 PM | Yang Yu
RE: Hammer in 3D Slicer for mac only support x86?
Sorry, I wanner put this thread to Help forum, but I have no limit to do that.

I change some codes in CMakeList.txt to build shared library for HammerRegistration as following:

OPTION(BUILD_HAMMER_SHARED "Build the Hammer libraries shared." ON)

IF(BUILD_HAMMER_SHARED)
  SET(HAMMER_LIBRARY_TYPE SHARED)
ELSE(BUILD_HAMMER_SHARED)
  SET(HAMMER_LIBRARY_TYPE STATIC)
ENDIF(BUILD_HAMMER_SHARED)

ADD_LIBRARY(HammerRegistration ${HAMMER_LIBRARY_TYPE} HammerRegistrationTest.cxx)

Now I can obtain x86_64 HammerRegistration library on Mac.

Best,
Yang