SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Good time!
Please forgive my bad English.
I am using Slackware 13.
I do not even know where to begin, and what logs / errors show: I am completely confused in the variables, etc.
I can not install PAL http://www.adrianboeing.com/pal/index.html
Like all successful, and the program to compile, but I can not verify this.
I tried premake and one Engine ODE - then I get an error segmentation, when you start paldemo.
If I use cmake, then get this:
Code:
...
[ 46%] Built target libpal
[ 52%] Built target libtest
Linking CXX executable ../bin/paldemo
CMakeFiles/paldemo.dir/test_collision.cpp.o: In function `Test_Collision::AdditionalRender()':
test_collision.cpp:(.text+0x1b77): undefined reference to `glPointSize'
test_collision.cpp:(.text+0x1b88): undefined reference to `glLineWidth'
test_collision.cpp:(.text+0x1ce2): undefined reference to `glColor3f'
test_collision.cpp:(.text+0x1cef): undefined reference to `glBegin'
test_collision.cpp:(.text+0x1d03): undefined reference to `glVertex3f'
test_collision.cpp:(.text+0x1d15): undefined reference to `glVertex3fv'
test_collision.cpp:(.text+0x1d1d): undefined reference to `glEnd'
test_collision.cpp:(.text+0x1d2a): undefined reference to `glDisable'
test_collision.cpp:(.text+0x1d37): undefined reference to `glBegin'
test_collision.cpp:(.text+0x1d4b): undefined reference to `glVertex3f'
test_collision.cpp:(.text+0x1d5d): undefined reference to `glVertex3fv'
test_collision.cpp:(.text+0x1d65): undefined reference to `glEnd'
test_collision.cpp:(.text+0x1d72): undefined reference to `glEnable'
test_collision.cpp:(.text+0x1d9a): undefined reference to `glColor3f'
test_collision.cpp:(.text+0x1da7): undefined reference to `glBegin'
test_collision.cpp:(.text+0x1db9): undefined reference to `glVertex3fv'
test_collision.cpp:(.text+0x1e03): undefined reference to `glVertex3fv'
test_collision.cpp:(.text+0x1e0b): undefined reference to `glEnd'
test_collision.cpp:(.text+0x1e3c): undefined reference to `glDisable'
test_collision.cpp:(.text+0x1ed9): undefined reference to `glColor3f'
test_collision.cpp:(.text+0x1ee6): undefined reference to `glBegin'
test_collision.cpp:(.text+0x1f08): undefined reference to `glVertex3fv'
test_collision.cpp:(.text+0x1f10): undefined reference to `glEnd'
test_collision.cpp:(.text+0x1fa4): undefined reference to `glEnable'
test_collision.cpp:(.text+0x1fb5): undefined reference to `glPointSize'
CMakeFiles/paldemo.dir/test_water.cpp.o: In function `render_water()':
test_water.cpp:(.text+0x15f8): undefined reference to `glColor3f'
test_water.cpp:(.text+0x1605): undefined reference to `glBegin'
test_water.cpp:(.text+0x1676): undefined reference to `glVertex3f'
test_water.cpp:(.text+0x16ad): undefined reference to `glEnd'
CMakeFiles/paldemo.dir/test_water.cpp.o: In function `Test_Water::AdditionalRender()':
test_water.cpp:(.text+0x1719): undefined reference to `glColor3f'
test_water.cpp:(.text+0x1726): undefined reference to `glBegin'
test_water.cpp:(.text+0x17a9): undefined reference to `glVertex3f'
test_water.cpp:(.text+0x1809): undefined reference to `glEnd'
CMakeFiles/paldemo.dir/testmain.cpp.o: In function `main':
testmain.cpp:(.text+0x67e): undefined reference to `SDL_PollEvent'
CMakeFiles/paldemo.dir/testmain.cpp.o: In function `SDLGLEngine::Wireframe(bool)':
testmain.cpp:(.text._ZN11SDLGLEngine9WireframeEb[SDLGLEngine::Wireframe(bool)]+0x20): undefined reference to `glPolygonMode'
testmain.cpp:(.text._ZN11SDLGLEngine9WireframeEb[SDLGLEngine::Wireframe(bool)]+0x37): undefined reference to `glPolygonMode'
CMakeFiles/paldemo.dir/testmain.cpp.o: In function `SDLGLEngine::Transparent(bool)':
testmain.cpp:(.text._ZN11SDLGLEngine11TransparentEb[SDLGLEngine::Transparent(bool)]+0x1a): undefined reference to `glBlendFunc'
testmain.cpp:(.text._ZN11SDLGLEngine11TransparentEb[SDLGLEngine::Transparent(bool)]+0x2a): undefined reference to `glDisable'
testmain.cpp:(.text._ZN11SDLGLEngine11TransparentEb[SDLGLEngine::Transparent(bool)]+0x3a): undefined reference to `glEnable'
testmain.cpp:(.text._ZN11SDLGLEngine11TransparentEb[SDLGLEngine::Transparent(bool)]+0x4c): undefined reference to `glDisable'
testmain.cpp:(.text._ZN11SDLGLEngine11TransparentEb[SDLGLEngine::Transparent(bool)]+0x5c): undefined reference to `glEnable'
../lib/liblibtest.a(sdlgl.cpp.o): In function `SDLGLTexture::SetActive(bool)':
sdlgl.cpp:(.text+0x5a9): undefined reference to `glEnable'
sdlgl.cpp:(.text+0x5bf): undefined reference to `glBindTexture'
sdlgl.cpp:(.text+0x5d1): undefined reference to `glDisable'
../lib/liblibtest.a(sdlgl.cpp.o): In function `SDLGLTexture::Load(char*)':
sdlgl.cpp:(.text+0x5ec): undefined reference to `SDL_RWFromFile'
sdlgl.cpp:(.text+0x5fa): undefined reference to `SDL_LoadBMP_RW'
sdlgl.cpp:(.text+0x61d): undefined reference to `glGenTextures'
sdlgl.cpp:(.text+0x625): undefined reference to `glGetError'
sdlgl.cpp:(.text+0x650): undefined reference to `glPixelStorei'
sdlgl.cpp:(.text+0x666): undefined reference to `glBindTexture'
sdlgl.cpp:(.text+0x66e): undefined reference to `glGetError'
sdlgl.cpp:(.text+0x6bc): undefined reference to `glTexImage2D'
sdlgl.cpp:(.text+0x6c4): undefined reference to `glGetError'
sdlgl.cpp:(.text+0x6f7): undefined reference to `glTexParameteri'
sdlgl.cpp:(.text+0x711): undefined reference to `glTexParameteri'
sdlgl.cpp:(.text+0x725): undefined reference to `SDL_FreeSurface'
../lib/liblibtest.a(sdlgl.cpp.o): In function `SDLGLPoints::Render()':
sdlgl.cpp:(.text+0x73e): undefined reference to `glMatrixMode'
sdlgl.cpp:(.text+0x746): undefined reference to `glPushMatrix'
sdlgl.cpp:(.text+0x755): undefined reference to `glMultMatrixf'
sdlgl.cpp:(.text+0x772): undefined reference to `glColor3f'
sdlgl.cpp:(.text+0x77f): undefined reference to `glBegin'
sdlgl.cpp:(.text+0x804): undefined reference to `glVertex3f'
sdlgl.cpp:(.text+0x81e): undefined reference to `glEnd'
sdlgl.cpp:(.text+0x823): undefined reference to `glPopMatrix'
../lib/liblibtest.a(sdlgl.cpp.o): In function `SDLGLObject::Render()':
sdlgl.cpp:(.text+0x2973): undefined reference to `glMatrixMode'
sdlgl.cpp:(.text+0x297b): undefined reference to `glPushMatrix'
sdlgl.cpp:(.text+0x298a): undefined reference to `glMultMatrixf'
sdlgl.cpp:(.text+0x29a5): undefined reference to `glInterleavedArrays'
sdlgl.cpp:(.text+0x29ad): undefined reference to `glGetError'
sdlgl.cpp:(.text+0x29cf): undefined reference to `glDrawElements'
sdlgl.cpp:(.text+0x29d7): undefined reference to `glGetError'
sdlgl.cpp:(.text+0x29df): undefined reference to `glPopMatrix'
../lib/liblibtest.a(sdlgl.cpp.o): In function `SDLGLEngine::SetViewProj2d(int, int)':
sdlgl.cpp:(.text+0x2c5b): undefined reference to `glMatrixMode'
sdlgl.cpp:(.text+0x2c63): undefined reference to `glLoadIdentity'
sdlgl.cpp:(.text+0x2c70): undefined reference to `glMatrixMode'
sdlgl.cpp:(.text+0x2c78): undefined reference to `glLoadIdentity'
sdlgl.cpp:(.text+0x2cac): undefined reference to `glScalef'
sdlgl.cpp:(.text+0x2ce3): undefined reference to `glTranslatef'
sdlgl.cpp:(.text+0x2cf5): undefined reference to `glViewport'
../lib/liblibtest.a(sdlgl.cpp.o): In function `SDLGLEngine::SetProjMatrix(float, float, float, float)':
sdlgl.cpp:(.text+0x2d0d): undefined reference to `glMatrixMode'
sdlgl.cpp:(.text+0x2d15): undefined reference to `glLoadIdentity'
sdlgl.cpp:(.text+0x2d4e): undefined reference to `gluPerspective'
../lib/liblibtest.a(sdlgl.cpp.o): In function `SDLGLEngine::Resize(int, int)':
sdlgl.cpp:(.text+0x2d69): undefined reference to `glViewport'
sdlgl.cpp:(.text+0x2d79): undefined reference to `glMatrixMode'
sdlgl.cpp:(.text+0x2d81): undefined reference to `glLoadIdentity'
sdlgl.cpp:(.text+0x2db9): undefined reference to `gluPerspective'
sdlgl.cpp:(.text+0x2dc9): undefined reference to `glMatrixMode'
sdlgl.cpp:(.text+0x2dd1): undefined reference to `glLoadIdentity'
../lib/liblibtest.a(sdlgl.cpp.o): In function `SDLGLEngine::SetViewMatrix(float, float, float, float, float, float, float, float, float)':
sdlgl.cpp:(.text+0x2de7): undefined reference to `glMatrixMode'
sdlgl.cpp:(.text+0x2def): undefined reference to `glLoadIdentity'
sdlgl.cpp:(.text+0x2e5b): undefined reference to `gluLookAt'
../lib/liblibtest.a(sdlgl.cpp.o): In function `SDLGLEngine::Flip()':
sdlgl.cpp:(.text+0x2e6b): undefined reference to `SDL_GL_SwapBuffers'
../lib/liblibtest.a(sdlgl.cpp.o): In function `SDLGLEngine::Init(int, int, int, bool)':
sdlgl.cpp:(.text+0x2e84): undefined reference to `SDL_Init'
sdlgl.cpp:(.text+0x2e9f): undefined reference to `SDL_Quit'
sdlgl.cpp:(.text+0x2ecd): undefined reference to `SDL_GL_SetAttribute'
sdlgl.cpp:(.text+0x2edc): undefined reference to `SDL_GL_SetAttribute'
sdlgl.cpp:(.text+0x2eeb): undefined reference to `SDL_GL_SetAttribute'
sdlgl.cpp:(.text+0x2efc): undefined reference to `SDL_GL_SetAttribute'
sdlgl.cpp:(.text+0x2f0b): undefined reference to `SDL_GL_SetAttribute'
../lib/liblibtest.a(sdlgl.cpp.o):sdlgl.cpp:(.text+0x2f1a): more undefined references to `SDL_GL_SetAttribute' follow
../lib/liblibtest.a(sdlgl.cpp.o): In function `SDLGLEngine::Init(int, int, int, bool)':
sdlgl.cpp:(.text+0x2f4c): undefined reference to `SDL_SetVideoMode'
sdlgl.cpp:(.text+0x2f86): undefined reference to `SDL_MapRGBA'
sdlgl.cpp:(.text+0x2f9c): undefined reference to `SDL_FillRect'
sdlgl.cpp:(.text+0x2fd0): undefined reference to `glClearColor'
sdlgl.cpp:(.text+0x2fe7): undefined reference to `glClearDepth'
sdlgl.cpp:(.text+0x2ff7): undefined reference to `glDepthFunc'
sdlgl.cpp:(.text+0x3007): undefined reference to `glEnable'
sdlgl.cpp:(.text+0x3017): undefined reference to `glShadeModel'
sdlgl.cpp:(.text+0x302c): undefined reference to `glHint'
sdlgl.cpp:(.text+0x3034): undefined reference to `glLoadIdentity'
../lib/liblibtest.a(sdlgl.cpp.o): In function `SDLGLEngine::SetTitle(char*)':
sdlgl.cpp:(.text+0x3051): undefined reference to `SDL_WM_SetCaption'
../lib/liblibtest.a(sdlgl.cpp.o): In function `SDLGLEngine::Clear()':
sdlgl.cpp:(.text+0x3069): undefined reference to `glClear'
collect2: выполнение ld завершилось с кодом возврата 1
make[2]: *** [bin/paldemo] Ошибка 1
make[1]: *** [paldemo/CMakeFiles/paldemo.dir/all] Ошибка 2
make: *** [all] Ошибка 2
the maximum that I can, to achieve this result:
Code:
../lib/liblibtest.a(sdlgl.cpp.o): In function `SDLGLEngine::SetProjMatrix(float, float, float, float)':
sdlgl.cpp:(.text+0x2d4e): undefined reference to `gluPerspective'
../lib/liblibtest.a(sdlgl.cpp.o): In function `SDLGLEngine::Resize(int, int)':
sdlgl.cpp:(.text+0x2db9): undefined reference to `gluPerspective'
../lib/liblibtest.a(sdlgl.cpp.o): In function `SDLGLEngine::SetViewMatrix(float, float, float, float, float, float, float, float, float)':
sdlgl.cpp:(.text+0x2e5b): undefined reference to `gluLookAt'
collect2: выполнение ld завершилось с кодом возврата 1
Thank you in advance for your attention and assistance!
I've got to collect now all but pal_benchmark^
CMakeFiles/palBenchmark.dir/main.cpp.o: In function `main':
main.cpp.text+0x1df1): undefined reference to `createDevice'
collect2: выполнение ld завершилось с кодом возврата 1
make[2]: *** [bin/palBenchmark] Ошибка 1
make[1]: *** [pal_benchmark/palBenchmark/CMakeFiles/palBenchmark.dir/all] Ошибка 2
make: *** [all] Ошибка 2
And I can not understand how I specify the physics engine, I have two engine: ode and bullets. I run paldemo, I am asked to select the physics engine, I choose ODE - in response to get the message:
Failed to start physics! (could not find physics engine!)
Last edited by rockslinux; 04-15-2010 at 11:30 AM.
Sorry, I do not even know how it happened two themes o_O apparently this is because of my problems with the internet (if possible, remove the second theme, although you can remove the both topic - do not have full relations to Slackware).
Yes, I deal with it - it is required "Static linking walkthrough" -./palbeginner working properly. But I still can not get to work paldemo. And I did not understand how to correctly specify the physics engine.
In any case, thanks for the help XavierP! And if possible, remove the two topics (in order not to clutter up a forum - they do not convey a message). PAL assembled and running, everything else is not relevant directly to Slackware (well, unless paldemo). Thanks again, sorry for the "madness" (apparently lack of sleep affects)!
Last edited by rockslinux; 04-15-2010 at 03:30 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.