Pages: [1]
|
|
|
Author
|
Topic: Can't compile on Linux. (Read 3479 times)
|
GekkoGeck0
Zebranky food
Offline
Gender:
Posts: 11
|
I'm running on a Mandrake 9.2 system and tried compiling UQM from scratch. I successfully compiled version 0.4.0 before, but 0.5.0 is just stumping me. (I don't have lots of experience with Linux)
First, this doesn't make sense:
Put these .uqm files in the directory content/packages/ which exists in the top directory of the source tree (the dir with (among others) COPYING, src/, and build.var.in).
It doesn't exist in my archive or the extracted directories, no matter what unixinstall says. So I was sort of stumped there, but proceeded anyway, since I figured it'd compile over 0.4.0 and just use the voice/content packages I already have there.
Originally, I extracted the archive onto my Windows partition, because my Linux partition is rather full at the moment and I didn't want to run into space problems. I tried running './build.sh uqm' and got this error: ./build.sh: line 23: build/unix/build_functions: No such file or directory
So I redirected . build/unix/build_functions (as it was written in the shell script) to the actual location of the file. From that point, I got this:
./build.sh: line 37: ./Makeproject: No such file or directory
I searched for this file. It does not exist anywhere in the archive or in the extracted directories.
So I tried moving it over to my Linux partition, to see if that was the problem. As soon as I did, I got "Permission denied." whenever I would try to execute any of the shell scripts, as my original user or as root. chmod a+x allows me to run build.sh, but it halts with this:
./build.sh: line 23: /home/gecko/uqm-0.5.0/build/unix/build_functions: Permission denied
Do I have to chmod a+x every single file? Would that matter, since Makeproject doesn't even exist? Where am I going wrong here?
|
|
« Last Edit: March 20, 2006, 02:50:31 am by GekkoGeck0 »
|
Logged
|
|
|
|
|
|
Novus
Enlightened
Offline
Gender:
Posts: 1938
Fot or not?
|
Put these .uqm files in the directory content/packages/ which exists in the top directory of the source tree (the dir with (among others) COPYING, src/, and build.var.in).
It doesn't exist in my archive or the extracted directories, no matter what unixinstall says. So I was sort of stumped there, but proceeded anyway, since I figured it'd compile over 0.4.0 and just use the voice/content packages I already have there.
content exists, content/packages doesn't, so you'll have to create it. I'm not sure whether the docs or the source achive is wrong.
So I tried moving it over to my Linux partition, to see if that was the problem. As soon as I did, I got "Permission denied." whenever I would try to execute any of the shell scripts, as my original user or as root. chmod a+x allows me to run build.sh, but it halts with this:
./build.sh: line 23: /home/gecko/uqm-0.5.0/build/unix/build_functions: Permission denied
Do I have to chmod a+x every single file? Would that matter, since Makeproject doesn't even exist? Where am I going wrong here?
You're running build/unix/build.sh instead of build.sh, aren't you? build.sh has execute permissions and calls build/unix/build.sh as an argument to sh, so it doesn't have to be executable. Run ./build.sh uqm in the main UQM directory, not in build/unix.
|
|
|
Logged
|
|
|
|
GekkoGeck0
Zebranky food
Offline
Gender:
Posts: 11
|
content exists, content/packages doesn't, so you'll have to create it. I'm not sure whether the docs or the source achive is wrong. Alright, I'm starting to think that I got a bad copy, because /content does not exist anywhere in the archive I have, period.
You're running build/unix/build.sh instead of build.sh, aren't you? build.sh has execute permissions and calls build/unix/build.sh as an argument to sh, so it doesn't have to be executable. Run ./build.sh uqm in the main UQM directory, not in build/unix. Indeed I am, because build.sh does not exist in the main UQM directory, in my copy of the archive.
I am going to try to download it again today, check all the different mirrors, see if I can get a real copy this time.
|
|
|
Logged
|
|
|
|
|
Novus
Enlightened
Offline
Gender:
Posts: 1938
Fot or not?
|
The last files in the tar archive are the content directory and the files in the main source directory; the exact files that you claim are missing. Either tar failed halfway in unpacking (out of disk space, like meep-eep suggested) or the download was cut off. Either way, you should have received an error message from tar or gzip (unless you are using some badly written wrapper around them).
|
|
|
Logged
|
|
|
|
GekkoGeck0
Zebranky food
Offline
Gender:
Posts: 11
|
The last files in the tar archive are the content directory and the files in the main source directory; the exact files that you claim are missing. Either tar failed halfway in unpacking (out of disk space, like meep-eep suggested) or the download was cut off. Either way, you should have received an error message from tar or gzip (unless you are using some badly written wrapper around them). It is possible that the file was corrupted and that I did not get an error message. I don't think Ark gives an error message (I'm using KDE).
I still find it odd because I did have enough free disk space on my /home partition, and I had re-downloaded the archive 3 times just to make sure it was good. All three copies were screwed up.
I finally got a good copy, and realizing that I needed a new version of SDL just to run it and that I was about to wander into dependency hell trying to resolve that, I installed Mandriva 2006 yesterday. I was on Mandrake 9.2 prior to this.
So far so good, except now I'm getting these errors:
src/sc2code/sis.c:975: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness src/sc2code/sis.c:1011: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness
There's lots of those.
This was in the beginning of the process:
/usr/include/SDL/SDL_opengl.h:45:58: error: GL/glu.h: No such file or directory
And this is where it aborted:
CC obj/release/src/sc2code/libs/graphics/sdl/3do_funcs.c.o gcc: : No such file or directory gcc: no input files make: *** [obj/release/src/sc2code/libs/graphics/sdl/3do_funcs.c.o] Error 1
This is very much over my head. I just installed SDL, SDL_image, libogg and libvorbis, fresh from the developers, so I'm not sure what's up here. Maybe something funky with Mandriva?
|
|
|
Logged
|
|
|
|
|
|
GekkoGeck0
Zebranky food
Offline
Gender:
Posts: 11
|
I installed the OpenGL libraries and everything compiled.
Thanks, guys! I really appreciate it.
Only, there's a small problem. When I try to start the program, it appears to start alright, but immediately stops, with this output:
Set the resolution to: 640x480x32 Screen scalers are using SSE/MMX-Ext/MMX code *** glibc detected *** malloc(): memory corruption (fast): 0x083db9b8 *** Aborted
|
|
« Last Edit: March 22, 2006, 10:47:51 pm by GekkoGeck0 »
|
Logged
|
|
|
|
|
|
Pages: [1]
|
|
|
|
|