On 27.02.2010, at 06:50, Matt T. wrote:

> I'm using FLTK on Mac OS X 10.6 "Snow Leopard" as part of a programming 
> class. Apparently SL broke FLTK 1.1 because it renders with all sorts of 
> errors. 1.3r7100 renders a lot better, but still not without errors.

Please download a newer snapshot.

> Anyway, I noticed that one problem with FLTK was that it can only be compiled 
> in 32bit mode. This means my own apps that use it must also be 32bit to link 
> to it (correct me if I'm wrong here.) I also noticed that the latest snapshot 
> (r7149) said that it includes an Xcode project that will compile a universal 
> binary for x86-32, x86-64 and PPC.

Yes, that is correct. The current snapshot includes new IDE files in 
ide/Xcode3/ (the ones in ide/Xcode3.1 are now outdated and will eventually be 
removed). 

> I'm very interested in getting a 64bit/universal version of FLTK, for the 
> main reason that I won't have to limit my own software to 32bit. So I opened 
> up the Xcode project and, after some messing with plist files (the current 
> snapshot has some plists misnamed or downright missing,) I got it to compile 
> in "release" mode.

Is that with ide/Xcode3 or with ide/Xcode3.1 ? There should be no plist files 
missing with the first one.

> But I'm used to the terminal and the usual ./configure/make/make install 
> procedure. How do I install the files Xcode built for use system-wide? I want 
> to be able to just make tell gcc that my headers are in /opt/local/include 
> and let 'er rip.

Just do "sudo make install" and the include files and libraries should be 
installed correctly. The commandline however is currently limited to 32 bit. 
This should not be an issue if your application uses less than 4GB of RAM.

> So how do I install the Xcode built files, etc. to have a working FLTK 
> install? Or am I misunderstanding what the Xcode project is for, and the 
> whole 64bit thing?

The Xcode project generates frameworks as universal binaries. The command line 
tools generate traditional Unix libraries in 32 bit for the CPU of your machine 
(Intel or PPC) (also check out 'fltk-config'). 64bits are only useful if your 
application may need more than 4GB of RAM. Otherwise it is a waste of space and 
possibly even slower.

- Matthias
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to