Saturday, October 9, 2010

Installing FLTK on Mac OS X

(Posted for my grad school class at the U. of Washington):

Hi All,

If you want to use your Mac for the Impressionist project, here are some notes of what I had to do:

(1) Download & unzip the 1.1.9 source

(2) Install 'macports' (www.macports.org) if you haven't already. Note that the FLTK docs say something about 'darwinports', which is the old name.

(3) Change path to include /opt/local/bin (where macports 'port' command is installed).

(4) install the prerequisites for FLTK:

sudo port install zlib
sudo port install libpng
sudo port install jpeg

(5) Use these configuration options for FLTK:

./configure --enable-threads --with-archflags='-arch i386'

(6) make

This should build FLTK and there are some test programs that come out in sudirectory 'test'.

2 comments:

Anonymous said...

THANK YOU

Jim Durham said...

Good set of instructions! Thanks!