To build FLTK on OSX, you need to install the OSX compiler separately;
it's free.
Seems the procedure for installing the compiler is a bit more complicated these
days.
Used to be you'd buy a DVD of the OS, and the "Developer Tools" were an option
on the OS DVD; you'd install the OS from the DVD, then later revisit the DVD
and install the dev tools, which would install Xcode and other dev tools (like
FileMerge) in /Developer, and would include the command line compiler
(make/g++/etc).
All that has changed over the last few OSX releases;
I'm using OSX 10.8.2 (Mountain Lion) and am confronted with installing
the latest Xcode, 4.5.x in this case:
o Both the OS and Xcode tools are downloaded from the App Store
o The /Developer directory is no longer used at all
o Installing Xcode does NOT include command line compilers;
they're a separate install step within the Xcode application's
GUI. (I hope this changes, or is made easier in the future)
To install the command line compilers seems to involve this process:
o Go to the App Store and 'Install' Xcode.
This takes a while to download and install; in my case >1 hour.
Doing this step doesn't really "install" Xcode; it installs
the Xcode Installer. You then have to go to the "LaunchPad" app
(that little rocketship in your Dock) to run the "Xcode"
Installer, and that /actually/ installs Xcode.
This also takes a while to install; don't remember how long.
o Run Xcode to bring up the GUI.
It's now in /Applications/Xcode.app
o In Xcode's main menu bar, go into:
Xcode -> Preferences -> Downloads
..and in the list is "Command Line Tools".. click the "Install"
button.
This also takes a while; it was ~170MB download, took >1 hour.
*Now* you should have the normal command line tools (make/g++/svn/etc),
and can build FLTK normally from the command line with 'make'.
I've done all this, and the FLTK 1.3.1 tar ball builds without errors.
There's at least one good thing in all of this; 'svn' is now included,
so you don't have to download and build it separately like you used to.
I'm not sure what else the install of the command line tools includes
(Is there a way to find out a list of everything it installed?)
I can tell you 'Mac Ports' is not one of them.
BTW, if there's a shorter, less involved way to install the command
line compiler (preferably that doesn't involve GUIs so it can be
automated), definitely feel free to follow up here.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk