need Xcode, GLFW and devIL help
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.
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.
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:
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).
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
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
Add libGLFW.a to your project, and whatever library results from building DevIL.
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| GLFW and Xcode | aileron | 3 | 3,757 |
Jun 5, 2007 12:48 PM Last Post: Pouli |
|
| GLFW problems. | Runowin | 2 | 2,452 |
Dec 30, 2005 07:11 PM Last Post: Runowin |
|

