need Xcode, GLFW and devIL help

Adamal
Unregistered
 
Post: #1
I'm trying to get some simple code compiled on Mac OS X. I've downloaded both GLFW (source) and devIL (binary package). I can compile GLFW using a make file without a problem, but I can't figure out how to get it to compile with devIL. So I've decided to move from a make file to Xcode. I created a new Carbon application in xcode and moved all my project files into xcode. I've added the AGL, OpenGL frameworks, but I can't get it to find the GLFW stuff.

I tried created a framework folder for GLFW and putting the header file in a Headers directory and the Library file under a folder called Libraries. Then I added the GLFW framework in xcode and it still doesn't see the header file. I have almost no experice with xcode so any help with this would be great.
Quote this message in a reply
Adamal
Unregistered
 
Post: #2
Ok well I got the GLFW to compile with Xcode by going to project settings and setting the header and library search paths.

The whole thing compiles successfully but when I try to run the executable I recieve the following error:

Quote:ZeroLink: unknown symbol '_ilInit'

3DSCS has exited due to signal 6 (SIGABRT).
Quote this message in a reply
Adamal
Unregistered
 
Post: #3
I also recieve the following errors when compiling without ZeroLink

Quote:/usr/bin/ld: Undefined symbols:
_glfwEnable
_glfwGetKey
_glfwGetTime
_glfwGetWindowParam
_glfwGetWindowSize
_glfwSwapBuffers
_ilBindImage
_ilDeleteImages
_ilGenImages
_ilGetError
_ilInit
_ilLoadImage
_iluErrorString
_iluInit
_ilutGLBindTexImage
_ilutInit
_ilutRenderer
_glfwCloseWindow
_glfwInit
_glfwOpenWindow
_glfwSetKeyCallback
_glfwSetMouseButtonCallback
_glfwSetMousePosCallback
_glfwSetMouseWheelCallback
_glfwSetWindowCloseCallback
_glfwSetWindowRefreshCallback
_glfwSetWindowSizeCallback
_glfwSetWindowTitle
_glfwTerminate
collect2: ld returned 1 exit status
Quote this message in a reply
Moderator
Posts: 613
Joined: 2004.09
Post: #4
I dont have much background on GLFW but you should just be able to drag and drop the headers you need into the left bar file listing then link them as your would normally do. It does appear that you are missing header files so you are on the right track

Kyle Richter
DragonForged.com
Twitter: @kylerichter
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #5
Add libGLFW.a to your project, and whatever library results from building DevIL.
Quote this message in a reply
Adamal
Unregistered
 
Post: #6
OneSadCookie Wrote:Add libGLFW.a to your project, and whatever library results from building DevIL.

That did it thanks.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  GLFW and Xcode aileron 3 4,228 Jun 5, 2007 12:48 PM
Last Post: Pouli
  GLFW problems. Runowin 2 2,858 Dec 30, 2005 07:11 PM
Last Post: Runowin