Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Library adding errors
Miglu Offline
Newbie
*

Posts: 2
Joined: Nov 2010
Post: #1
Library adding errors
I have added a library, Cocos2D for Mac, to my project folder. I added it to Groups & Files and then I put the .a files into Link Binary With Libraries and into the Direct Dependencies. I also put the library folder's path into Library Search Paths and Header Search Paths. Then I added #import "cocos2d-iphone-0.99.5-rc1/cocos2d/cocos2d.h". Yet I get 63 linker errors of this type:
Code:
"_gluLookAt", referenced from:


      -[CCDirector setProjection:] in libcocos2d.a(CCDirector.o)


      -[CCCamera locate] in libcocos2d.a(CCCamera.o)


      -[CCGridBase set3DProjection] in libcocos2d.a(CCGrid.o)


  "_glDeleteTextures", referenced from:


      -[CCTexture2D dealloc] in libcocos2d.a(CCTexture2D.o)


      -[CCTexturePVR createGLTexture] in libcocos2d.a(CCTexturePVR.o)


      -[CCTexturePVR dealloc] in libcocos2d.a(CCTexturePVR.o)


ld: symbol(s) not found


collect2: ld returned 1 exit status
What is the problem?
2010.11.20 06:34 AM
Find all posts by this user Quote this message in a reply
backslash Offline
Member
***

Posts: 71
Joined: May 2006
Post: #2
RE: Library adding errors
gluLookAt() is a function from glu - the OpenGL Utility library - which Apple include as part of AGL. Make sure you have added the OpenGL and AGL frameworks to your target too.
2010.11.20 10:38 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Miglu Offline
Newbie
*

Posts: 2
Joined: Nov 2010
Post: #3
RE: Library adding errors
Thanks. I got the project to build. However, I can not get the application to run. When I build & run, the build succeeds, but I just get "GDB: Program Loaded" in the left corner. What is the problem?
2010.11.20 06:50 PM
Find all posts by this user Quote this message in a reply
backslash Offline
Member
***

Posts: 71
Joined: May 2006
Post: #4
RE: Library adding errors
All I can tell from that is that your program is crashing on something. Open the debugger and see what it says (look for a yellow can of bug spray in the toolbar in your project window).
2010.11.21 10:24 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)