From: Gregory J. <jef...@mr...> - 2010-11-01 12:15:44
|
Hi, I am trying to compile teem as 64 bit on macosx 10.5. I have latest teem from svn. I am using cmake 2.6.4 (or 2.8.2) and setting CMAKE_OSX_ARCHITECTURE = x86_64 using ccmake. Make completes happily, but make test fails: Running nrrdSanity directly gives the following: jefferis:bin (master)$ ./nrrdSanity ./nrrdSanity: nrrd sanity check FAILED: [nrrd] nrrdSanity: airSanity() failed: TEEM_32BIT is wrong [nrrd] nrrdSanity: (sizeof(size_t) == 8, not 4) So I grepped TEEM_32BIT and it seems like the test: # Set compiler flags for 32 or 64 bit architecture (based on the size # of a void pointer). IF(CMAKE_SIZEOF_VOID_P MATCHES 8) ADD_DEFINITIONS(-DTEEM_32BIT=0) ELSE(CMAKE_SIZEOF_VOID_P MATCHES 8) ADD_DEFINITIONS(-DTEEM_32BIT=1) ENDIF(CMAKE_SIZEOF_VOID_P MATCHES 8) Is not working on macosx 10.5 (though I think that it may work on 10.6 without incident). Does anyone have a suggestion for how to patch things? At the moment I am setting ADD_DEFINITIONS(-DTEEM_32BIT=0) manually. Incidentally I did find this thread that appears relevant: http://www.cmake.org/pipermail/cmake/2009-June/030287.html Many thanks, Greg. -- Gregory Jefferis, PhD jef...@mr... Division of Neurobiology LMB Lab: +44 (0)1223 252943 MRC Laboratory of Molecular Biology, LMB Office: +44 (0)1223 252944 Hills Road, LMB Fax: +44 (0)1223 402310 Cambridge, CB2 0QH, UK. http://www2.mrc-lmb.cam.ac.uk/group-leaders/h-to-m/g-jefferis http://www.neuroscience.cam.ac.uk/directory/profile.php?gsxej2 http://flybrain.stanford.edu |