Setting OpenGL & GLFW on my new mac!

Member
Posts: 29
Joined: 2008.10
Post: #1
My new MacBook Standard has arrived along with a free ipod touch with 16 gb memory!
Wooot! Grin
I'm very excited and i'm trying to build an opengl application using glfw and XCode. I compiled glfw and created a new project in Xcode. The problem is that i receive link errors regarding some functions in glfw. Here's how the project is set up:

http://img80.imageshack.us/my.php?image=picture1uj0.png

http://img232.imageshack.u/my.php?image=picture2ix9.png
Quote this message in a reply
Member
Posts: 87
Joined: 2006.08
Post: #2
They key is the 'libglfw.a is not of the required architecture' line. I bet libglfw.a is a ppc-only library, and you're trying to build an intel product (or vise versa).

Run the command "otool -hv libglfw.a", and it'll print what architectures are available within that library.
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #3
GLFW doesn't build universal by default (there is a makefile in there that does the job, but it doesn't seem to have received much love). GLFW is currently written in Carbon so can never build for 64-bit. Either or both of those could easily cause such an error.
Quote this message in a reply
Member
Posts: 29
Joined: 2008.10
Post: #4
I figured it out what the problem was. I recompiled glfw with the other makefile that came with it namely: Makefile.macosx.gcc.universal.
Now it works! Wohoo!
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  GLFW Xcode 3 Problems Matt328 0 2,259 Nov 21, 2008 05:55 AM
Last Post: Matt328
  Setting up OpenGL with toolchain MikeTV 0 1,758 Jul 22, 2008 09:44 PM
Last Post: MikeTV
  Xcode and glfw, the return of cryptic errors BarneyBear 6 6,345 Apr 19, 2008 04:35 AM
Last Post: BarneyBear
  GLFW and Xcode Xentery 7 5,841 Mar 9, 2006 12:56 PM
Last Post: akb825
  Setting Up An OpenGL project JohnDoe555 2 2,818 Sep 30, 2005 10:39 PM
Last Post: JohnDoe555