Linux installer version - corrupt files
by Chris Jones-Gill · in RTS Starter Kit · 12/01/2004 (7:44 am) · 7 replies
Hey this I feel is pretty important, and I would like to know if it has happened to any others as well...
Download the RTS installer for linux
install it
make sure there is no .garagegames hidden folders in your home dir
cd into the example dir and ./torqueDemo.bin
mine comes back with Segmentation fault and crashes
running Mandrake 10.1 Powerpack.
Right so we have established the thing is dying,
now install the 1.3 SDK
rename the RTSKit/example/common dir or delete it.
copy the common dir from the sdk into the RTSKit/example dir
make sure there is no .garagegames hidden folders in your home dir
and in the RTSKit/example in shell do ./torqueDemo.bin
and Oh look it runs
Right I have tested this to the same results in RedHat7.3, Mandrake9.1, Mandrake10 and 10.1
I have checked the files in both common dirs and most if not all the files are identical
but using kdiff the rtskit/common files are useless and kdiff just wants to replce the entire contents of the rtskit files
this is realy strange
Help???
Download the RTS installer for linux
install it
make sure there is no .garagegames hidden folders in your home dir
cd into the example dir and ./torqueDemo.bin
mine comes back with Segmentation fault and crashes
running Mandrake 10.1 Powerpack.
Right so we have established the thing is dying,
now install the 1.3 SDK
rename the RTSKit/example/common dir or delete it.
copy the common dir from the sdk into the RTSKit/example dir
make sure there is no .garagegames hidden folders in your home dir
and in the RTSKit/example in shell do ./torqueDemo.bin
and Oh look it runs
Right I have tested this to the same results in RedHat7.3, Mandrake9.1, Mandrake10 and 10.1
I have checked the files in both common dirs and most if not all the files are identical
but using kdiff the rtskit/common files are useless and kdiff just wants to replce the entire contents of the rtskit files
this is realy strange
Help???
#2
got the following output
in file RTSKit/engine/platformX86UNIX/x86UNIXWindow.cc
//------------------------------------------------------------------------------
// Silly Korean registry key checker:
//------------------------------------------------------------------------------
ConsoleFunction( isKoreanBuild, bool, 1, 1, "isKoreanBuild()" )
{
Con::printf("WARNING: isKoreanBuild() is unimplemented");
return false;
}
//------------------------------------------------------------------------------
int main(S32 argc, const char **argv)
{
// init platform state
x86UNIXState = new x86UNIXPlatformState; //////// died on this line //////////////////
// parse the command line for unix-specific params
Vector newCommandLine;
S32 returnVal = ParseCommandLine(argc, argv, newCommandLine);
if (returnVal != 0)
return returnVal;
// init lastTimeTick for TimeManager::process()
lastTimeTick = Platform::getRealMilliseconds();
which is a similar problem I had here
But I am 110% sure its not the c++ or the version of compiler, and more to the fact that the files are corrupt in some strange way, because they are still readable, and
especialy if by just by replacing the RTSKit/common directory with the SDK/common directory it all works.
which is why i posted this topic up
similar issues of not being able to run the tools/unix/mktplib.sh script, i get permmisions denied yet chmoded, chgrp & chown are correct
12/01/2004 (9:15 am)
Hi Stephen,got the following output
in file RTSKit/engine/platformX86UNIX/x86UNIXWindow.cc
//------------------------------------------------------------------------------
// Silly Korean registry key checker:
//------------------------------------------------------------------------------
ConsoleFunction( isKoreanBuild, bool, 1, 1, "isKoreanBuild()" )
{
Con::printf("WARNING: isKoreanBuild() is unimplemented");
return false;
}
//------------------------------------------------------------------------------
int main(S32 argc, const char **argv)
{
// init platform state
x86UNIXState = new x86UNIXPlatformState; //////// died on this line //////////////////
// parse the command line for unix-specific params
Vector
S32 returnVal = ParseCommandLine(argc, argv, newCommandLine);
if (returnVal != 0)
return returnVal;
// init lastTimeTick for TimeManager::process()
lastTimeTick = Platform::getRealMilliseconds();
which is a similar problem I had here
But I am 110% sure its not the c++ or the version of compiler, and more to the fact that the files are corrupt in some strange way, because they are still readable, and
especialy if by just by replacing the RTSKit/common directory with the SDK/common directory it all works.
which is why i posted this topic up
similar issues of not being able to run the tools/unix/mktplib.sh script, i get permmisions denied yet chmoded, chgrp & chown are correct
#3
12/01/2004 (12:33 pm)
See this www.garagegames.com/mg/forums/result.thread.php?qt=23494 and www.garagegames.com/mg/forums/result.thread.php?qt=23493
#4
Why should we start patching the C++ files when a sutable fix is to just replace the RTSKit/example/common dir with the one from the SDK
I have a feeling you posted this up for a sort of visual reminder one newer linux distro owners. ;-)
Please remember that the torqueDemo.bin is the one bundled with the installer
Anyway heres another strange fix ----
do what i said in the above 1st post, this time instead of taking the files from the SDK, if you have your windows box samba'd to your linux, delete all the files in linux under RTSKit/example, except the torqueDemo.bin, then copy all the files from the RTSKit/example dir in windows into the linux example dir make sure there is no hidden .garagegames folder in your home dir, and in shell cd into the example dir and then ./torqueDemo.bin strangely enough that works as well
So basicly now I have proven in 2 ways under 4 different versions of Linux, that somewhere along the way the linux version of the installer has corrupted files, now this may just be the .cs files or maybe something is wrong with an image?? but also, any of the .sh scripts in the tools/unix folder won't run even chmod, chown, chgrp are correct, different distros give different errors, permission denied, bad interpteter and even file don't exist(well like derrr i can see it ), so the only way these actualy work is if I use the one's from the SDK,
and I realy need to know if this is happening to others, and if not why just me
12/01/2004 (8:20 pm)
Benoit, sorry but that fix does not fix the problem, the debug build was on RedHat7.3 gcc 3.2 problem has nothing at all what so ever todo with building the .bin files, the output above is just for Stephen to see where it was.Why should we start patching the C++ files when a sutable fix is to just replace the RTSKit/example/common dir with the one from the SDK
I have a feeling you posted this up for a sort of visual reminder one newer linux distro owners. ;-)
Please remember that the torqueDemo.bin is the one bundled with the installer
Anyway heres another strange fix ----
do what i said in the above 1st post, this time instead of taking the files from the SDK, if you have your windows box samba'd to your linux, delete all the files in linux under RTSKit/example, except the torqueDemo.bin, then copy all the files from the RTSKit/example dir in windows into the linux example dir make sure there is no hidden .garagegames folder in your home dir, and in shell cd into the example dir and then ./torqueDemo.bin strangely enough that works as well
So basicly now I have proven in 2 ways under 4 different versions of Linux, that somewhere along the way the linux version of the installer has corrupted files, now this may just be the .cs files or maybe something is wrong with an image?? but also, any of the .sh scripts in the tools/unix folder won't run even chmod, chown, chgrp are correct, different distros give different errors, permission denied, bad interpteter and even file don't exist(well like derrr i can see it ), so the only way these actualy work is if I use the one's from the SDK,
and I realy need to know if this is happening to others, and if not why just me
#5
I have tried it on three machines here all Mandrakes installs (9.2 pacthed up to 10 using mandrake cooker(day job machine), 10 official (day job machine), 10.1 CE (home system)) and i do not get that issue. At work i will be hopefully installing Gentoo soon, will give it a try when i do.
12/02/2004 (3:01 am)
Sorry should have read through the whole thread instead of just jumping in. My bad :( need to have my coffee before posting and basicly having both eyes open and staring at the monitor :)I have tried it on three machines here all Mandrakes installs (9.2 pacthed up to 10 using mandrake cooker(day job machine), 10 official (day job machine), 10.1 CE (home system)) and i do not get that issue. At work i will be hopefully installing Gentoo soon, will give it a try when i do.
#6
12/02/2004 (4:45 am)
@Chris: Unfortunately, we are not able to duplicate this issue either on a couple of different linux platforms.
#7
Again thanks for your help
12/10/2004 (2:17 am)
Just to let you guy's know, I got a feeling it's something todo with my download of the rtskit, tried it on another internet connection straight to a box with MDK10.1, and we have the same problem, anyway, our little fix is just to do all the work in windows then transfer the lot to linux and build it that way, thanks for your time trying out the above, at least it's confirmed for me that it's not the code, and more that our linux installer we can grab from the my garage area, at some point I will ask GG to check it but it's not a real issue.Again thanks for your help
Torque 3D Owner Stephen Zepp
I know that Greg had the windows installer ported over to linux with no issues, but I don't think he's actually used the linux installer itself...