thegrandpoobah / voronoi

Weighted Voronoi Stippler
http://www.saliences.com/projects/npr/stippling/index.html
MIT License
58 stars 25 forks source link

build on mac Yosemite #24

Closed sergio-daniels closed 10 years ago

sergio-daniels commented 10 years ago

Hello, I'm not able to make it on yosemite. Do you know how to build it? I tried with gcc-4.2 but somehow i think it is missing xcode 6

make g++ -fopenmp -O2 -L/Users/sergio/GitHub/voronoi/boost_1_56_0/boost/lib -o voronoi_stippler picopng/picopng.o stippler/bitmap.o stippler/stippler_api.o stippler/stippler.o stippler/VoronoiDiagramGenerator.o voronoi/parse_arguments.o voronoi/voronoi.o -lboost_program_options ld: library not found for -lgomp

thegrandpoobah commented 10 years ago

Hi,

Have you uncommented the right environment in the makefile ( https://github.com/thegrandpoobah/voronoi/blob/master/Makefile)? Lines 1,2,3 and to determine between Linux, Mac, and Windows.

If you have done that, your computer is missing OpenMP for whatever reason. I am unfamiliar with Macs, so I am not sure where that library comes from, but if you can't figure that out, you can always disable OpenMP support entirely by removing it from the Makefiles CXXFLAGS and LNKFLAGS (lines 6 and 8).

Please let me know if either of those options works for you.

Let me know if I can be of further assistance, Sahab

On 17 September 2014 17:54, sergio-daniels notifications@github.com wrote:

Hello, I'm not able to make it on yosemite. Do you know how to build it? I tried with gcc-4.2 but somehow i think it is missing xcode 6

make g++ -fopenmp -O2 -L/Users/sergio/GitHub/voronoi/boost_1_56_0/boost/lib -o voronoi_stippler picopng/picopng.o stippler/bitmap.o stippler/stippler_api.o stippler/stippler.o stippler/VoronoiDiagramGenerator.o voronoi/parse_arguments.o voronoi/voronoi.o -lboost_program_options ld: library not found for -lgomp

— Reply to this email directly or view it on GitHub https://github.com/thegrandpoobah/voronoi/issues/24.

Sahab Yazdani

sergio-daniels commented 10 years ago

Hi, yes I had it set to macos. removing the OpenMP worked. THX

thegrandpoobah commented 10 years ago

Awesome. Glad to hear it works.