endlessdark
11-08-2008, 01:06 PM
Hello everybody! I'm coding a 3D image & sound application using a Nintendo's Wiimte for my university.
I've made every basic thing and it's working so now I want to improve some details and one of these is changing the box that represents the wiimote. I have downloaded a wiimote .obj model and the GLM library to load it, I'm also using OpenGL OpenAL and GLUT.
To install de GLM I've downloaded the sources, and made a ./configure,make and make install so I suppose it's installed.
Now time for the makefile. I've added -lglm to the LFLAGS section.
And finally in my code I've added these lines:
...
#include <glm.h>
...
GLMmodel *wiimodel;
...
wiimodel = glmReadOBJ("wiimote.obj");
...
I think it should work but I recieve this error
trackingdemo.o: In function `TrackingDemoInit()':
/home/myuser/Desktop/wiimote3Dsound/trackingdemo.cpp:177: undefined reference to `glmReadOBJ'
:confused:
Some points I don't understand: This error says something like the glm isn't right installed or linked?
And, if is that's the problem, why I'm not gettig an error in the GLMmodel *wiimodel declaration?
Help will be apreciated!
Thank you!
I've made every basic thing and it's working so now I want to improve some details and one of these is changing the box that represents the wiimote. I have downloaded a wiimote .obj model and the GLM library to load it, I'm also using OpenGL OpenAL and GLUT.
To install de GLM I've downloaded the sources, and made a ./configure,make and make install so I suppose it's installed.
Now time for the makefile. I've added -lglm to the LFLAGS section.
And finally in my code I've added these lines:
...
#include <glm.h>
...
GLMmodel *wiimodel;
...
wiimodel = glmReadOBJ("wiimote.obj");
...
I think it should work but I recieve this error
trackingdemo.o: In function `TrackingDemoInit()':
/home/myuser/Desktop/wiimote3Dsound/trackingdemo.cpp:177: undefined reference to `glmReadOBJ'
:confused:
Some points I don't understand: This error says something like the glm isn't right installed or linked?
And, if is that's the problem, why I'm not gettig an error in the GLMmodel *wiimodel declaration?
Help will be apreciated!
Thank you!