Getting FLTK to work on OSX
The computer graphics class that I will be taking requires the use of FLTK: The Fast Light Toolkit. It is a simple user interface toolkit that we will be using mostly for its widgets. I would prefer using Qt but I guess there are some licensing issues with Qt previously--the debate on whether Qt is really open source or not. Anyway, the instructions for building FLTK for OS X was pretty simple:
However, when you type "make" it tries to link the files needed for the fluid component. Fluid is:
"The Fast Light User Interface Designer, or FLUID, is a graphical editor that is used to produce FLTK source code. FLUID edits and saves its state in .fl files. These files are text, and you can (with care) edit them in a text editor, perhaps to get some special effects."
And that is where it fails. Or rather it takes too long. While linking it uses the /Developer/Tools/Rez program and it just sits there consuming processor power. This went on for the whole night.
Turns out the solution is pretty simple. I have not seen this mentioned anywhere else so it could be because I did something to mess up my own system. Change the lines above to these two:
Another problem is when you try to compile with fltk-config --compile myfile.cpp. You should also use sudo because fltk-config uses /Developer/Tools/Rex in the end to attach the resource fork to the file so that you can launch it from Finder.
For more resources on programming openGL on Panther:
Posted in development, software | no comments |