Author Topic: Compilation error building Sandbox module under Mac OS X Mavericks  (Read 2921 times)

Offline rga218

  • Newcomer
  • Posts: 37
Hi, I'm playing around with PCL development and just tried to build the Sandbox module under Mac OS X 10.9 (Mavericks), using the default compiler provided by the Xcode 5.0.2 environment. I get the following error when doing a 'make all':

g++: error: unrecognized command line option ‘-Xarch_x86_64’
make[1]: *** [x86_64/Release/SandboxInterface.o] Error 1

The fix appears to be easy: just edit 'makefile-x86_64' by hand to remove the -Xarch_x86_64 switch, and then the module appears to compile successfully.

I attempted to regenerate the makefile using the "Makefile Generator" script but it creates a makefile that includes the switch. I presume that script needs a small tweak and then all will be fine.

Anyway, I suspect that anybody trying to build modules will just see the error and figure out what needs to get modified in the relevant makefile, but I thought I'd better report this as a bug nonetheless.

Regards,

Roberto
Roberto Abraham
Professor of Astronomy & Astrophysics
University of Toronto