Menu

#2 Compiling on 64-bit Mac OS X Snow Leopard

open
nobody
None
5
2010-11-19
2010-11-19
OnlineCop
No

Many dependencies that are used with DUMB can be downloaded using MacPorts, including Allegro. The default install directory for MacPorts is /opt/local instead of the standard /usr/local. Also, the 64-bit version of Mac OS X Snow Leopard (10.6.x) and possibly later versions may not be able to support the library unless it is compiled as a 32-bit file (with the "-m32" flag).

In order to get this to work on my Mac, I downloaded both DUMB and the "Automake for DUMB" tools from Sourceforge. Then, I modified my ./configure options as follows:

$ ./configure CFLAGS=-m32 CXXFLAGS=-m32 CPPFLAGS=-L/opt/local/include LDFLAGS=-L/opt/local/lib --prefix=/opt/local

This compiled DUMB as a 32-bit library instead of 64-bit. It also pointed to all of the Include and Library files that MacPorts pushed up for me. DUMB would not compile correctly otherwise. And it also installed DUMB to /opt/local instead of the standard /usr/local.

I did not have to make any changes for DUMB on OS X Leopard (10.5.x). Could someone who runs 64-bit OS X Snow Leopard test this and ensure that these steps work properly to build on your platform?

Discussion


Log in to post a comment.

MongoDB Logo MongoDB