Instructions

22 views
Skip to first unread message

Xart

unread,
Nov 12, 2008, 8:44:11 PM11/12/08
to iphone-glu
Hi,

I'd appreciate it if you could elaborate on the instructions: "This
produces libGLU.a, which you can add to your iPhone project (along
with include/glu.h).". I compiled the .a file and I see the include/
glu.h folder but what is the proper way to 'add them to the iPhone
project. Should I add them as a 'Existing Framework'? And is there a
proper place to extract your files to?

Thanks in advance.

Christopher Stawarz

unread,
Nov 14, 2008, 10:49:47 AM11/14/08
to iphon...@googlegroups.com
Here's what I do:

Instead of making the default target, do a 'make install', e.g.

make ARCH=armv6 PLATFORM=iPhoneOS install

This will install the files in a subdirectory of $HOME/Developer/
Platforms that mirrors the layout of /Developer/Platforms, in this case

$HOME/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/
iPhoneOS2.1.sdk

The advantage of this is that you can make Xcode aware of the
installed files for both the simulator and the device by adding the
following under "All Configurations" in your project settings:

Header Search Paths: $(HOME)/$(SDKROOT)/include
Library Search Paths: $(HOME)/$(SDKROOT)/lib

You'll also need to link against the library, so add "-lGLU" to the
"Other Linker Flags" setting.


Chris

Xart

unread,
Nov 15, 2008, 1:30:21 PM11/15/08
to iphone-glu
Someone should invent a drink/pill that gives this wonderful feeling
of "It works!"

My opengl es app now recognizes the glu functions and gluPerspective
is working so I assume all went well :D

Thanks a lot Chris, you work is much appreciated.
Reply all
Reply to author
Forward
0 new messages