thegrandpoobah / voronoi

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

Compile in OSX #25

Closed taiya closed 9 years ago

taiya commented 9 years ago

remove VoronoiDiagramGenerator:: in VoronoiDiagramGenerator.h from the methods already in the class.

Also, this is a bit sad:

~/build/voronoi: make
/usr/local/bin/g++-4.8  -fopenmp -O2 -L/usr/local/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
~/build/voronoi: ./voronoi_stippler -s 16000 -I corpus/klaymen.png -O test.svg
voronoi_stippler(77937) malloc: *** error for object 0x10365c570: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Abort trap: 6
thegrandpoobah commented 9 years ago

Thanks for the bug report!

The VoronoiDiagramGenerator:: thing is captured in issue #23 already.

As for the malloc thing, is that a crasher issue or does it successfully generate the svg image and then display that message?

taiya commented 9 years ago

Crasher, no SVG generated

taiya commented 9 years ago

But now I don't care as much anymore, as I am using the code from http://fernandodegoes.org/ (blue noise section)

thegrandpoobah commented 9 years ago

I don't have a Mac to play around with, but I found the following two links while investigating the issue:

https://trac.macports.org/ticket/37678 http://stackoverflow.com/questions/14367866/boostprogram-options-gives-malloc-error

I have no idea if you are using MacPorts, or if the problem described in these two articles even applies to the versions of GCC and Boost that you have installed and compiled on your machine, but its the best I can do without a physical Mac machine in my possession. Sorry about that.

thegrandpoobah commented 9 years ago

This was fixed by 8ef7a04 which now defaults to using Clang in OS X along with better documentation of the build process in the readme.md file.