Linux newbie cant run demo
by John Klima · in Torque Game Engine · 11/09/2006 (1:35 pm) · 16 replies
Hi all,
i am brand spankin new to linux, but have been working with torque for a couple years. i REALLY want to get it to run. looking at the .sh file i tried the two run options listed:
chmod +x runscript.sh
./runscript.sh
or
sh runscript.sh
and i get :
Executable torqueDemo.bin does not exist.
then i tried to just do exec ./torqueDemo.bin
and i get:
bash: /home/guest/Desktop/TorqueDemoLinux-1.4.2/torqueDemo.bin: Permission denied
bash: exec: /home/guest/Desktop/TorqueDemoLinux-1.4.2/torqueDemo.bin: cannot execute: Success
i really dont know a thing about linux and any help would be greatly appreciated. im running mandriva free 2007, i do not know if i have all the libraries that are required, but figured i'd get farther than just "does not exist" and "permission denied"
thanks!!!!
j
i am brand spankin new to linux, but have been working with torque for a couple years. i REALLY want to get it to run. looking at the .sh file i tried the two run options listed:
chmod +x runscript.sh
./runscript.sh
or
sh runscript.sh
and i get :
Executable torqueDemo.bin does not exist.
then i tried to just do exec ./torqueDemo.bin
and i get:
bash: /home/guest/Desktop/TorqueDemoLinux-1.4.2/torqueDemo.bin: Permission denied
bash: exec: /home/guest/Desktop/TorqueDemoLinux-1.4.2/torqueDemo.bin: cannot execute: Success
i really dont know a thing about linux and any help would be greatly appreciated. im running mandriva free 2007, i do not know if i have all the libraries that are required, but figured i'd get farther than just "does not exist" and "permission denied"
thanks!!!!
j
#2
okay so that worked, got me a little further along. i now have this error:
./torqueDemo.bin: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
which means that i assume i do not have this library on the machine. where to get it? what is it? is there a package somewhere that installs all the stuff you need to run the demo in linux?
not trying to compile here (yet) just want the demo to run
thanks!!!
j
11/11/2006 (8:30 am)
Thanks for the quick reply!okay so that worked, got me a little further along. i now have this error:
./torqueDemo.bin: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
which means that i assume i do not have this library on the machine. where to get it? what is it? is there a package somewhere that installs all the stuff you need to run the demo in linux?
not trying to compile here (yet) just want the demo to run
thanks!!!
j
#3
>i really dont know a thing about linux and any help would be greatly appreciated.
I don't want to bring down your linux sugar buzz, but like anything else you really need to take a step back and learn the OS before trying to do complex things with it. While running a demo isn't complex, installing compat-libstc++ requires root access which could be a really bad thing for newbies. Plus, you should understand why you need these files, where they go, what they do and how to reverse the process if something goes wrong.
11/11/2006 (8:44 am)
Google is your friend.>i really dont know a thing about linux and any help would be greatly appreciated.
I don't want to bring down your linux sugar buzz, but like anything else you really need to take a step back and learn the OS before trying to do complex things with it. While running a demo isn't complex, installing compat-libstc++ requires root access which could be a really bad thing for newbies. Plus, you should understand why you need these files, where they go, what they do and how to reverse the process if something goes wrong.
#4
i stumbled upon the package updater for c++ and noticed that libstdc++6-devel was checked, but not 5. so i installed 5 and tried to run, i now get a groovey new error:
./torqueDemo.bin: symbol lookup error: ./torqueDemo.bin: undefined symbol: X11_KeyToUnicode
thanks!!
j
11/11/2006 (8:56 am)
Umm thanks for the vote of confidence. i have root access, i just installed mandriva from a boot dvd yesterday. a demo should be a simple thing to get up and running. the point here is that i am trying to LEARN how to do this, no? and perhaps this thread could serve as a resource for someone like myself, an experienced developer who desires to get the hell away from microsoft. peace out.i stumbled upon the package updater for c++ and noticed that libstdc++6-devel was checked, but not 5. so i installed 5 and tried to run, i now get a groovey new error:
./torqueDemo.bin: symbol lookup error: ./torqueDemo.bin: undefined symbol: X11_KeyToUnicode
thanks!!
j
#5
I had the same issues with mandriva so I ditched it and went for opensuse10.1 (actualy came on a disc with my linux format mag) If you still get issues and want to try that you can download it from here
not promising you'll have more luck with suse, but I think for a new linux user it may be easy
11/11/2006 (9:58 am)
John not sure if you found this in the linux froum yet but have a look at this http://www.garagegames.com/mg/forums/result.thread.php?qt=52287I had the same issues with mandriva so I ditched it and went for opensuse10.1 (actualy came on a disc with my linux format mag) If you still get issues and want to try that you can download it from here
not promising you'll have more luck with suse, but I think for a new linux user it may be easy
#6
Well, that's great you want to move away from microsoft, also great that you already have some development experience as it will make it easier for you to make the transition. However, part of the learning process is research - something you've completely skipped - three times in the same thread.
These are not new questions, therefore this thread doesn't serve as a resource, merely restating information from other posts.
As for your problem:
undefined symbol: X11_KeyToUnicode
TGE 1.4+ and TGB has unicode support. They also use an older version of SDL than you have currently installed and linked against. If you look inside runtorque.sh you'll notice it's a way to run against the versions of libraries you include instead of what's on the end user's system. There *was* a lib directory hanging off the demo directory to take care of these little things, but I'm not sure what's out there now.
So your options are:
Install a older version of sdl.
Add libSDL-1.2.so.0 to the demo directory.
Compile a version that isn't unicode enabled.
Update the source to use your newer version of SDL.
11/11/2006 (10:09 am)
>the point here is that i am trying to LEARN how to do this, no? and perhaps this thread could serve as a resource for someone like myself, an experienced developer who desires to get the hell away from microsoft.Well, that's great you want to move away from microsoft, also great that you already have some development experience as it will make it easier for you to make the transition. However, part of the learning process is research - something you've completely skipped - three times in the same thread.
These are not new questions, therefore this thread doesn't serve as a resource, merely restating information from other posts.
As for your problem:
undefined symbol: X11_KeyToUnicode
TGE 1.4+ and TGB has unicode support. They also use an older version of SDL than you have currently installed and linked against. If you look inside runtorque.sh you'll notice it's a way to run against the versions of libraries you include instead of what's on the end user's system. There *was* a lib directory hanging off the demo directory to take care of these little things, but I'm not sure what's out there now.
So your options are:
Install a older version of sdl.
Add libSDL-1.2.so.0 to the demo directory.
Compile a version that isn't unicode enabled.
Update the source to use your newer version of SDL.
#7
Distro hoping to fix simple issues is the worst solution one could come up with.
It doesn't matter what distro you run, torque will run on it if you know what you're doing.
11/11/2006 (10:25 am)
>I had the same issues with mandriva so I ditched it and went for opensuse10.1Distro hoping to fix simple issues is the worst solution one could come up with.
It doesn't matter what distro you run, torque will run on it if you know what you're doing.
#8
garagegames.com/mg/forums/result.thread.php?qt=52962
11/11/2006 (10:33 am)
This post should help a bit. garagegames.com/mg/forums/result.thread.php?qt=52962
#9
thanks for the link stephen. perhaps u can tell me why when i do a search for "X11_KeyToUnicode" i get nothing? does the search box not fully search the forums? is there a special forum search page?
im kinda married to mandriva at the moment because some folks i'm working with in france have a lab set-up with it, and my goal is to get the torque demo running on those boxes.
and thanks NUTS! right now i just want to gather enuf info to get the demo running, essentially to demonstrate how easy it is to partition a linux boot, install the torque demo, and begin developing 3d all for free!! you see, among my many activities, i teach game design and development at the university level both in the US and europe.
i'm not complaining here, granted it is not a perfect world, but in general, game DEMOS *should* run pretty much out of the box. its not a successful demonstartion if it fails to run. minimally it would be nice if there was a readme that listed a few of the common "gotcha's." then if the intrepid explorer desires to recompile the engine, well i suppose they are on their own. thankfully there is a great community of helpful experienced people who love to lend a hand when someone is entering murky water for the first time. once i actually succeed at going from plopping the linux cd in the player, to getting the demo running, i'll be writing up a document (in both english and french) so other mere mortals such as myself can muddle through it. fortunately i have several months to achieve this aim. i hope it wont take that long.
peace and love,
j
11/11/2006 (11:25 am)
David, thanks for the info - i got the sense that i needed to place the old lib in the app dir from search results i came across on this neat website called google. a project called Nero popped up that looked shockingly like a torque app, and a linux user there was having similar problems. i'm about to investigate this option. problem is the only way i have gotten past the "torqueDemo.bin does not exist" issue is by not using the runTorque.sh. but geez david, why so cranky?thanks for the link stephen. perhaps u can tell me why when i do a search for "X11_KeyToUnicode" i get nothing? does the search box not fully search the forums? is there a special forum search page?
im kinda married to mandriva at the moment because some folks i'm working with in france have a lab set-up with it, and my goal is to get the torque demo running on those boxes.
and thanks NUTS! right now i just want to gather enuf info to get the demo running, essentially to demonstrate how easy it is to partition a linux boot, install the torque demo, and begin developing 3d all for free!! you see, among my many activities, i teach game design and development at the university level both in the US and europe.
i'm not complaining here, granted it is not a perfect world, but in general, game DEMOS *should* run pretty much out of the box. its not a successful demonstartion if it fails to run. minimally it would be nice if there was a readme that listed a few of the common "gotcha's." then if the intrepid explorer desires to recompile the engine, well i suppose they are on their own. thankfully there is a great community of helpful experienced people who love to lend a hand when someone is entering murky water for the first time. once i actually succeed at going from plopping the linux cd in the player, to getting the demo running, i'll be writing up a document (in both english and french) so other mere mortals such as myself can muddle through it. fortunately i have several months to achieve this aim. i hope it wont take that long.
peace and love,
j
#10
I am rather a newbie when it comes to the world of linux and especially game development. I have no technical background whatsoever, I actually have a Finance/Marketing degree. I prefer to use linux cause I just seem to understand a bit more, plus its hard to bork. I have found that the vast majority of people have been friendly and helpfull. As an FYI the IRC channel can be helpful as well. The funny part about using linux is that every distribution is going to be different. Not sure what the people who did the updates and compiling for the linux version use. I have been able to get TGE to run using the information from that thread in Kubuntu. The easiest so far for me to get it going was using slackware 11. Gave up trying to get it to go in Suse. I have never tried mandriva, maybe thats next :).
11/11/2006 (11:44 am)
@ JohnI am rather a newbie when it comes to the world of linux and especially game development. I have no technical background whatsoever, I actually have a Finance/Marketing degree. I prefer to use linux cause I just seem to understand a bit more, plus its hard to bork. I have found that the vast majority of people have been friendly and helpfull. As an FYI the IRC channel can be helpful as well. The funny part about using linux is that every distribution is going to be different. Not sure what the people who did the updates and compiling for the linux version use. I have been able to get TGE to run using the information from that thread in Kubuntu. The easiest so far for me to get it going was using slackware 11. Gave up trying to get it to go in Suse. I have never tried mandriva, maybe thats next :).
#11
first, i had to make sure that the libstdc++.so.5 was installed, not just .6, that was as easy as going to mandriva control center and checking the box under development, c++. i kind of swam around a bit in there checking and un-checking stuff so maybe i accidently did some other magic thing to get it to work, but i kinda doubt it.
second, although the .sh says to use chmod +x runtorque.sh i figured what the heck, i'd use the chmod a+x runtorque.sh, as was suggested above for the torqueDemo.bin (not the .sh) and lo-and-behold, up came the demo!
so, perhaps, the .sh should say "...and maybe try chmod a+x if it says you dont have permissions, or if it says it cant find torqueDemo.bin" that would have been helpful.
regretfully, on load i get an error about not having the updated openAL drivers. chances are i have the "updated, updated" drivers and i really want the not so recent vintage openAL drivers. or perhaps there is a driver problem with the audio chip on this box and not the actual openAL package. we'll see. i can indeed play the .oggs in the torque distribution via a .ogg player, so the audio card is indeed functioning.
well, that was an interesting afternoon. really easy in the end. if only there were a readme!! don't get me wrong, i'm not bitching, i got the sucker to run. i just want to point out that the easier it is to use linux, the more people will use it.
no lets see if i can get an explosion to rock my speakers...
j
11/11/2006 (1:38 pm)
Well what do you know, i got the sucker to run!first, i had to make sure that the libstdc++.so.5 was installed, not just .6, that was as easy as going to mandriva control center and checking the box under development, c++. i kind of swam around a bit in there checking and un-checking stuff so maybe i accidently did some other magic thing to get it to work, but i kinda doubt it.
second, although the .sh says to use chmod +x runtorque.sh i figured what the heck, i'd use the chmod a+x runtorque.sh, as was suggested above for the torqueDemo.bin (not the .sh) and lo-and-behold, up came the demo!
so, perhaps, the .sh should say "...and maybe try chmod a+x if it says you dont have permissions, or if it says it cant find torqueDemo.bin" that would have been helpful.
regretfully, on load i get an error about not having the updated openAL drivers. chances are i have the "updated, updated" drivers and i really want the not so recent vintage openAL drivers. or perhaps there is a driver problem with the audio chip on this box and not the actual openAL package. we'll see. i can indeed play the .oggs in the torque distribution via a .ogg player, so the audio card is indeed functioning.
well, that was an interesting afternoon. really easy in the end. if only there were a readme!! don't get me wrong, i'm not bitching, i got the sucker to run. i just want to point out that the easier it is to use linux, the more people will use it.
no lets see if i can get an explosion to rock my speakers...
j
#12
Yep. The problem here being that this is the demo for an SDK. So Ideally the demo should actually be the SDK built as it comes in the box, with no canoodling. The box it was built on is possibly uh, mine? I don't remember whose build they ended up using for the demo, but if it was mine, it would have been one of my libstdc++5 boxes.
You can shoehorn a compat library onto a libc++6 box, to make it run, but the opposite isn't true; upgrading your core C++ libraries is a pain in the ass :-)
Personally for public releases of software, I like statically against libstdc++ and dynamically against anything else, but to do that with torque requires modifying stuffs that came in the SDK, which I didn't want to do. C++ linux compatability sucks. Miserably.
You may also have luck with "sh ./runtorque.sh" instead of just "sh runtorque.sh", thanks to it's FindPath witchcraft. Similar problem to the one solved by having the shellscript in the first place.
The X11_KeyToUnicode thing sucks. There have been various fixes on this forum, none of them are that great, but they do leave you with a valid executable and working input for most locales :-)
Gary (-;
11/11/2006 (10:51 pm)
Quote:i'm not complaining here, granted it is not a perfect world, but in general, game DEMOS *should* run pretty much out of the box.
Yep. The problem here being that this is the demo for an SDK. So Ideally the demo should actually be the SDK built as it comes in the box, with no canoodling. The box it was built on is possibly uh, mine? I don't remember whose build they ended up using for the demo, but if it was mine, it would have been one of my libstdc++5 boxes.
You can shoehorn a compat library onto a libc++6 box, to make it run, but the opposite isn't true; upgrading your core C++ libraries is a pain in the ass :-)
Personally for public releases of software, I like statically against libstdc++ and dynamically against anything else, but to do that with torque requires modifying stuffs that came in the SDK, which I didn't want to do. C++ linux compatability sucks. Miserably.
Quote:so, perhaps, the .sh should say "...and maybe try chmod a+x if it says you dont have permissions, or if it says it cant find torqueDemo.bin" that would have been helpful.
You may also have luck with "sh ./runtorque.sh" instead of just "sh runtorque.sh", thanks to it's FindPath witchcraft. Similar problem to the one solved by having the shellscript in the first place.
The X11_KeyToUnicode thing sucks. There have been various fixes on this forum, none of them are that great, but they do leave you with a valid executable and working input for most locales :-)
Gary (-;
#13
I knew I saw a post somewhere about it and like you a search on here revealed nothing, so I just opened up the linux forum here and saw it listed.
I also used to love Mandrake, then when it went to mandriva it seemed to go downhill :-(
openal in the demo I found would not work on 2 distros, best thing would be to build your own version, and also heads up for when you build the engine, if you get errors with it not linking with -GLU errors then you would need to either rebuild Mesa (this old thread may help here ) or find a copy of libGLU.a place that in /usr/lib and run ldconfig as mandriva dont provide those in the Mesa rpms, i think its cos their are static libraries.
11/12/2006 (5:17 am)
@ JohnI knew I saw a post somewhere about it and like you a search on here revealed nothing, so I just opened up the linux forum here and saw it listed.
I also used to love Mandrake, then when it went to mandriva it seemed to go downhill :-(
openal in the demo I found would not work on 2 distros, best thing would be to build your own version, and also heads up for when you build the engine, if you get errors with it not linking with -GLU errors then you would need to either rebuild Mesa (this old thread may help here ) or find a copy of libGLU.a place that in /usr/lib and run ldconfig as mandriva dont provide those in the Mesa rpms, i think its cos their are static libraries.
#14
a recompile of the engine for audio support is not a happy thing, as i was hoping to be able to demonstrate that the whole system could come to life with minimal fuss. so, assuming i am going to rule out a recompile (for now at anyrate), perhaps someone could provide an exhaustive list of things to try, short of said recompile?
i hope i have not already "exhausted" that exhaustive list.
11/12/2006 (10:50 am)
Thanks guys, now my head is really swimming! when i think how long it took me to become comfortable with dynamic/static libraries, compiling, linking etc in windows, the road to this level of comfort in linux seems a long one indeed. i'll let you know how it goes. a recompile of the engine for audio support is not a happy thing, as i was hoping to be able to demonstrate that the whole system could come to life with minimal fuss. so, assuming i am going to rule out a recompile (for now at anyrate), perhaps someone could provide an exhaustive list of things to try, short of said recompile?
i hope i have not already "exhausted" that exhaustive list.
#15
If it's not included in the demo, then the demo needs to be redone.
11/12/2006 (11:28 am)
Libopenal.so need to be in your path.If it's not included in the demo, then the demo needs to be redone.
#16
so does this sound like voodoo? i swear on a stack of bibles i installed the rpm from openal.org and the sound didnt work, but when i installed the lib from the mandriva rpm, it did.
thanks again, j
11/12/2006 (1:47 pm)
Thanks david, i guess that sorta did the trick. although the openal package was indeed INSTALLED on my system, i grabbed the RPM from openAL.org, it seems that i needed to grab an RPM specifically distributed by mandriva, that i came across on rpmfind.net now that's a cool website and fantastic resource!so does this sound like voodoo? i swear on a stack of bibles i installed the rpm from openal.org and the sound didnt work, but when i installed the lib from the mandriva rpm, it did.
thanks again, j
Torque Owner NUTS!
chmod a+x torqueDemo.bin
./torqueDemo.bin
Usually works for me.