#15 Changes to Makefile for Mac OS X

closed-out-of-date
nobody
None
5
2009-03-25
2006-06-02
Aaron
No

I've been working with a couple of other folks on
getting gwc compiled under OS X. The first issue we ran
across is with the Makefile gwc generates.

1. Need to remove the following CFLAGs:

-march=Power Macintosh
-mcpu=Power Macintosh

2. Need to add the following CFLAGs:

-DMAC_OS_X
-I/usr/include
-I/usr/X11R6/include
-I/usr/X11R6/include/freetype2
-I/usr/include/malloc
-I/Developer/Headers/FlatCarbon -bind_at_load

Is there any way these changes can be made in the
configure file? Thanks.

-Aaron

Discussion

  • Aaron
    Aaron
    2006-06-03

    Logged In: YES
    user_id=1533293

    Here is a complete list of changes I had to make to the
    Makefile generated by configure. After making these changes
    the program compiled with no errors, and I am running it
    successfully on Mac OS X 10.4 with Apple's X11 environment.
    I didn't catch these before because I couldn't get declick.c
    to compile.

    1. remove the following CFLAGs:

    -march=Power Macintosh
    -mcpu=Power Macintosh

    2. add the following CFLAGs:

    -DMAC_OS_X
    -I/usr/include
    -I/usr/X11R6/include
    -I/usr/X11R6/include/freetype2
    -I/usr/include/malloc
    -I/Developer/Headers/FlatCarbon -bind_at_load

    3. Add the following line (assumes gnome is installed in
    /opt/local, i.e. by DarwinPorts):
    export
    DYLD_LIBRARY_PATH=/opt/local/lib:/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources:/usr/lib

    4. Change the line:
    LIBDIR = ${exec_prefix}/lib
    to:
    LIBDIR = ${LD_LIBRARY_PATH}

    5. Add the following to LIBS=
    -framework CoreAudio

     
  • Jeff Welty
    Jeff Welty
    2009-03-25

    • status: open --> closed-out-of-date