LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-15-2010, 11:23 AM   #1
rockslinux
Member
 
Registered: Jan 2010
Location: Orenburg
Distribution: Slackware
Posts: 35

Rep: Reputation: 18
Unhappy P.A.L&Slackware


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!
 
Old 04-15-2010, 11:28 AM   #2
rockslinux
Member
 
Registered: Jan 2010
Location: Orenburg
Distribution: Slackware
Posts: 35

Original Poster
Rep: Reputation: 18
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.
 
Old 04-15-2010, 01:43 PM   #3
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Did you follow the instructions here: http://www.adrianboeing.com/pal/install_generic.html including editing premake_generic.lua?
 
Old 04-15-2010, 03:23 PM   #4
rockslinux
Member
 
Registered: Jan 2010
Location: Orenburg
Distribution: Slackware
Posts: 35

Original Poster
Rep: Reputation: 18
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Xscreensaver & session-lock confusion, using XDM, KDE & Slackware. GrapefruiTgirl Linux - Desktop 1 05-15-2007 11:22 AM
Slackware guide for AMP Apache MySQL & PHP xushi Slackware 35 05-11-2006 11:18 AM
AOL UK && BT Voyager 100 && Slackware 10.2 && RP-PPPoE pitt0071 Linux - Networking 3 01-17-2006 06:10 AM
(FreeBSD && Fedora Core 4 && Slackware 10.0) Filesystem Support taylor_venable *BSD 1 07-14-2005 02:24 PM
slackware problem with aterm && mouse wheel infamous41md Linux - Newbie 3 01-01-2004 08:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration