building with macports

Help
2011-04-08
2012-09-14
  • Will Bendick

    Will Bendick - 2011-04-08

    how does one build waffles with the libraries installed thru macports?

    Building GClasses.a...

    rm -f ../../lib/GClasses.a

    umask 0;g++ -D_THREAD_SAFE -DDARWIN -I/sw/include -no-cpp-precomp -O3 -c
    GImage.cpp -o ../../obj/GClasses/opt/GImage.o

    GImage.cpp:33:18: error: png.h: No such file or directory

     
  • Mike Gashler

    Mike Gashler - 2011-04-13

    That error indicates that libpng is not installed (or at least the default
    include path does not know where to find png.h, and installing libpng will
    typically put a copy of png.h somewhere in the default include path).
    Unfortunately, I don't know how to install things in macports. Any Mac users
    out there want to chime in?

     
  • John Tangney

    John Tangney - 2012-06-30

    Kinda late response here, but maybe someone will find this helpful:

    sudo port install libpng

    To get it to build, I edited every Makefile and changed /sw/ to /opt/local/:

    find . -type f -exec fgrep -l '/sw/' {} \; | xargs edit

    Then build and install - it all ends up in /usr/local/bin,

    /usr/local/include and /usr/local/lib

    make opt

    make install

    I did not build the demo apps since MacPorts, bless its little heart, wanted
    to install every know package under the sun when I tried installing libsdl

     

Anonymous
Anonymous

Cancel  Add attachments