Back to the docs page

Previous      Next

Building on Mac

  1. Install Fink (a unix package manager)
  2. Install the following dependency packages:
    • g++
    • make
    • libpng3-dev
  3. Next, build the Waffles tools:
    	cd waffles/src
    	make opt
    
  4. If you want to build the demo apps, then also install these packages:
    • libsdl1.2-dev
    • freeglut3-dev
    and then do:
    	cd ../demos
    	make opt
    



Troubleshooting

I get a compiler error in GImage.cpp about png.h not found.
Is the libpng3-dev package properly installed?


I get a compiler error about sdl-config not found, or SDL/SDL.h not found.
Is the libsdl1.2-dev package properly installed?


How do I build optimized binaries?
make opt


How do I build binaries with debug symbols?
make dbg


I'm trying to link GClasses.a with my app, and I get a linker error about png stuff not being found.
You need to add "-lpng" after "GClasses.a" to your linking command. Yes, order matters on this line.


Where can I get more specific help?
You can ask a question at our forum. If you post a question and you do not get a speedy response, please email me. Sometimes the email that is supposed to notify me that there is a new forum post is incorrectly classified as spam and discarded. (That's ironic, since I'm trying to develop better ML algorithms, isn't it?) My email address is on the main page.


When I run some of the graphical apps, I get an error message about a "bad adaptive filter type" or "extra compressed data".
This appears to be caused by an old bug in the libpng3-dev package. It does not repro with newer versions. You should probably update your OS.



Previous      Next

Back to the docs page