Quel librairie pour loader les objets WaveFront (.obj)?

Quel librairie pour loader les objets WaveFront (.obj)? - C++ - Programmation

Marsh Posté le 08-04-2004 à 18:39:01    

Salut,
voila j'utilise glm.h et glm.c de Nate Robins pour tenter de loader des objets .obj dans mon jeu mais j'ai un probleme de LINK au moment de la compilation. J'ai peut etre oublie de LINKER quelque chose mais quoi?

Reply

Marsh Posté le 08-04-2004 à 18:39:01   

Reply

Marsh Posté le 22-03-2008 à 15:54:49    

Salut,
 
Je me permet de up ce sujet car j'ai (je pense) le même problème de link en utilisant glm.h. Voilà ce que me retourne CodeBlocks à la compilation :
 

Code :
  1. Linking executable: sdlgl_intro.exe
  2. Warning: resolving __imp__glEnable by linking to __imp__glEnable@4
  3. Use --enable-stdcall-fixup to disable these warnings
  4. Use --disable-stdcall-fixup to disable these fixups
  5. Warning: resolving __imp__glDisable by linking to __imp__glDisable@4
  6. Warning: resolving __imp__glBegin by linking to __imp__glBegin@4
  7. Warning: resolving __imp__glEnd by linking to __imp__glEnd@0
  8. Warning: resolving ___glutCreateMenuWithExit by linking to ___glutCreateMenuWithExit@8
  9. Warning: resolving ___glutCreateWindowWithExit by linking to ___glutCreateWindowWithExit@8
  10. Warning: resolving ___glutInitWithExit by linking to ___glutInitWithExit@12
  11. .objs\main.o:main.cpp:(.text+0x31c): undefined reference to `glmReadOBJ(char*)'
  12. .objs\main.o:main.cpp:(.text+0x343): undefined reference to `glmUnitize(_GLMmodel*)'
  13. .objs\main.o:main.cpp:(.text+0x352): undefined reference to `glmFacetNormals(_GLMmodel*)'
  14. .objs\main.o:main.cpp:(.text+0x368): undefined reference to `glmVertexNormals(_GLMmodel*, float)'
  15. .objs\glm.o:glm.c:(.text+0x53fa): undefined reference to `_imp__glMaterialfv'
  16. .objs\glm.o:glm.c:(.text+0x541c): undefined reference to `_imp__glMaterialfv'
  17. .objs\glm.o:glm.c:(.text+0x543e): undefined reference to `_imp__glMaterialfv'
  18. .objs\glm.o:glm.c:(.text+0x5460): undefined reference to `_imp__glMaterialf'
  19. .objs\glm.o:glm.c:(.text+0x547c): undefined reference to `_imp__glColor3fv'
  20. .objs\glm.o:glm.c:(.text+0x5500): undefined reference to `_imp__glNormal3fv'
  21. .objs\glm.o:glm.c:(.text+0x552b): undefined reference to `_imp__glNormal3fv'
  22. .objs\glm.o:glm.c:(.text+0x5550): undefined reference to `_imp__glTexCoord2fv'
  23. .objs\glm.o:glm.c:(.text+0x5570): undefined reference to `_imp__glVertex3fv'
  24. .objs\glm.o:glm.c:(.text+0x559b): undefined reference to `_imp__glNormal3fv'
  25. .objs\glm.o:glm.c:(.text+0x55c0): undefined reference to `_imp__glTexCoord2fv'
  26. .objs\glm.o:glm.c:(.text+0x55e1): undefined reference to `_imp__glVertex3fv'
  27. .objs\glm.o:glm.c:(.text+0x560c): undefined reference to `_imp__glNormal3fv'
  28. .objs\glm.o:glm.c:(.text+0x5631): undefined reference to `_imp__glTexCoord2fv'
  29. .objs\glm.o:glm.c:(.text+0x5652): undefined reference to `_imp__glVertex3fv'
  30. .objs\glm.o:glm.c:(.text+0x5690): undefined reference to `_imp__glGenLists'
  31. .objs\glm.o:glm.c:(.text+0x56a8): undefined reference to `_imp__glNewList'
  32. .objs\glm.o:glm.c:(.text+0x56c1): undefined reference to `_imp__glEndList'


 
Je pense pourtant avoir linké toutes les librairies nécessaires à mon projet (SDLmain,SDL,opengl32,glu32,glut et glut32), mais si il y a une librairie spéciale pour glm.h je ne la connais pas  :??:  
Voilà, si vous avez une solution à mon problème merci de m'aider !!


Message édité par Pitu45 le 22-03-2008 à 15:58:45
Reply

Marsh Posté le 23-03-2008 à 17:02:00    

UP !

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed