Objectness icon indicating copy to clipboard operation
Objectness copied to clipboard

Installing on Mac

Open JoostvDoorn opened this issue 9 years ago • 4 comments

I am running OS X Yosemite and I have some issues getting this code to work. Anyone figured this out?

First I got this error:

Could NOT find OpenMP (missing: OpenMP_CXX_FLAGS)

Which I fixed using the following steps:

  • installing a macports version of gcc
  • calling cmake with
cmake -DCMAKE_C_COMPILER=gcc-mp-4.7 -DCMAKE_CXX_COMPILER=gcc-mp-4.7 .

Then calling make gives the following error:

[ 65%] Building C object CMakeFiles/BING_linux.dir/LibLinear/blas/dscal.c.o
Linking CXX executable BING_linux
Undefined symbols for architecture x86_64:

JoostvDoorn avatar Jun 17 '15 18:06 JoostvDoorn

Hi, Could you use the previous version of gcc? e.g. 4.6.x. I am not sure if this is the problem of gcc. However, the code has been tested on ubuntu 14.04/12.10. It should work with mac if you set the path right.

bittnt avatar Jul 20 '15 15:07 bittnt

@bittnt Thanks for the response, in the end I ran it on Linux instead

JoostvDoorn avatar Aug 05 '15 10:08 JoostvDoorn

I can confirm there are problems with installing on a Mac, I have tested with the latest clang (which supports OpenMP) and gcc (installed with brew without-multilib) but did not succeed in either track.

phil0stine avatar Aug 20 '15 18:08 phil0stine

@phil0stine It should work with Mac, what's the error message have you got? Which mac version and which gcc or clang version have you tried?

bittnt avatar Aug 27 '15 13:08 bittnt