[ Return to Articles | Show Comments | Submit Comment ]
Article #979: FLTK project template for Xcode 3.2.1
Created at 12:57 Mar 09, 2010 by michel
Hi,
I'd like to tell how to use the FLTK project template for Xcode 3.2.1 regarding this article : http://www.fltk.org/articles.php?L975
I assume you are running snow leopard (10.6.2 in my case) and Xcode 3.2.1
//----- Download source files from this website (1.3.x should be fine)
http://www.fltk.org/software.php?VERSION=1.3.x-r7216&FILE=fltk/snapshots/fltk-1.3.x-r7216.tar.bz2
//----- Move the downloaded folder somewhere
(/Developer is OK).
//----- Open the terminal and go to the previously mentioned folder and follow the instructions given in the README file :
macbook-pro-de-michel:~ michel$ cd /Developer/fltk-1.3.x-r7216/
macbook-pro-de-michel:fltk-1.3.x-r7216 michel$ ./configure
macbook-pro-de-michel:fltk-1.3.x-r7216 michel$ make
macbook-pro-de-michel:fltk-1.3.x-r7216 michel$ make install
It takes some time to compile, then the files will be installed (by default) in /usr/local/ in subfolders bin, include/FL and share
the examples should be working, try them.
//----- Modify outdated project templates given for Xcode 3.1
Open the file /Developer/fltk-1.3.x-r7216/ide/Xcode3.1/Project\ Templates/FLTK/___PROJECTNAME___.xcodeproj
In the tree, right click yourProjectName > Frameworks > Linked Frameworks (should have only one child Carbon.framework) select Add > Existing Frameworks ... and select the Cocoa.framework
Close Xcode
//----- Copy the new project template into the developer directory’s Library/Xcode/ folder
macbook-pro-de-michel:~ michel$ cp /Developer/fltk-1.3.x-r7216/ide/Xcode3.1/Project\ Templates/FLTK /Developer/Library/Xcode/Project\ Templates/Other
//----- Relaunch Xcode and test
Create a new project and choose the FLTK template that is under the "other" section and under the section you provided before.
Build and run and you're good to go
Thanks for matt for his guidance here (email support !).
[ Listing ]
[ Submit Comment ]From matt, 07:15 Mar 10, 2010 (score=3)
The template is fixed in SVN now. The snapshot should be out by the end of the week. Adding Cocoa is no longer required.
[ Reply ] |