Complete procedure to build FLTK on Mac OS X :
Starting from a fresh install of Mac OS X on a totally empty disk partition
1) download and install Xcode (available free in the App Store)
3) Open Xcode (in Applications)
Xcode indicates "Installing components"
4) Open fltk-1.3.4-1/ide/Xcode4/FLTK.xcodeproj
Xcode proposes "Automatically create schemes" --> do that
Select target Demo
Build. --> success
Run. --> all test programs run OK.
Select target Fluid, Build, Run --> OK
5) in Terminal, cd to fltk-1.3.4-1/
Type :
./configure
It stops and proposes "Install command line developer tools" ---> click "Install"
Some software gets downloaded (needs internet access) and installed.
6) in terminal, type again:
make
Success. All test apps and fluid are built.
7) To show that the fltk-config script is working, in Terminal, cd to examples and type:
../fltk-config --use-gl --compile OpenGL3test.cxx
The OpenGL3test app is built and runs OK.