PDA

View Full Version : Duke on Fedora


Mr.Fibbles
08-01-2005, 07:25 PM
I know that this has been discussed here before but none of the other threads have answers for my problem.
I have the duke3d source code and and build source code.
here is the terminal input:
[username@localhost ~]$ unzip jfduke3d_src_20050531.zip
[username@localhost ~]$ unzip jfbuild_src_20050531.zip
[username@localhost ~]$ mv jfbuild_src_20050531 build
[username@localhost ~]$ mv jfduke3d_src_20050531 duke3d
[username@localhost ~]$ cd duke3d
[username@localhost duke3d]$ make

it all works fine until i get the last line. There is an insane number of errors as output and it does not compile. and by insane i mean that i had to make a log file to be able to look at it because the terminal cuts off halfway through.
I did try to compile build first but that to no avail even though there was a much shorter list of errors when i did that.
Any one have any idea what to do to make this work?

TerminX
08-01-2005, 07:39 PM
You know, posting "help me" and then saying you got a lot of errors without posting a single one of them really doesn't work.

Mr.Fibbles
08-01-2005, 08:39 PM
true. . .
like i said it was alot, insanely alot, mostly about syntax errors in files.
the end of the duke3d errors, notice the ">log" that makes the log file and hides the majority of the errors in the terminal.

[username@localhost duke3d]$ make >log
/bin/sh: pkg-config: command not found
mkdir: cannot create directory `eobj/': File exists
make: [eobj/libengine.a] Error 1 (ignored)
/bin/sh: pkg-config: command not found
make[1]: sdl-config: Command not found
make[1]: Entering directory `/home/thad/build'
make[1]: *** [/home/thad/duke3d/eobj/engine.o] Error 1
make: *** [eobj/libengine.a] Error 2





mkdir eobj/
make -C ../build/ "OBJ=/home/thad/duke3d/eobj/" "CFLAGS=-DSUPERBUILD -DPOLYMOST -DUSE_OPENGL -DDYNAMIC_OPENGL" enginelib
gcc -DSUPERBUILD -DPOLYMOST -DUSE_OPENGL -DDYNAMIC_OPENGL -ggdb -W -Wall -Werror-implicit-function-declaration -Wno-char-subscripts -Wno-unused -march=pentium -funsigned-char -fno-strict-aliasing -DNO_GCC_BUILTINS -Iinclude/ -I../jfaud/inc -DLINUX=1 -DRENDERTYPESDL=1 -DDYNAMIC_OPENGL -c src/engine.c -o /home/username/duke3d/eobj/engine.o 2>&1
In file included from src/engine.c:28:
include/glbuild.h:6:19: error: GL/gl.h: No such file or directory
In file included from include/glbuild.h:11,
from src/engine.c:28:
include/glext.h:2674: error: syntax error before ‘red’
include/glext.h:2675: error: syntax error before ‘mode’
include/glext.h:2676: error: syntax error before ‘mode’
include/glext.h:2677: error: syntax error before ‘target’
. . . . . . .
In file included from src/engine.c:28:
include/glbuild.h:19: error: syntax error before ‘red’
include/glbuild.h:20: error: syntax error before ‘mask’
include/glbuild.h:22: error: syntax error before ‘func’
include/glbuild.h:23: error: syntax error before ‘sfactor’
include/glbuild.h:24: error: syntax error before ‘mode’
include/glbuild.h:25: error: syntax error before ‘mode’
include/glbuild.h:26: error: syntax error before ‘factor’
include/glbuild.h:27: error: syntax error before ‘cap’
include/glbuild.h:28: error: syntax error before ‘cap’
include/glbuild.h:29: error: syntax error before ‘pname’
include/glbuild.h:30: error: syntax error before ‘pname’
include/glbuild.h:31: error: syntax error before ‘mask’
include/glbuild.h:33: error: syntax error before ‘*’ token
include/glbuild.h:33: warning: type defaults to ‘int’ in declaration of ‘GLenum’
include/glbuild.h:33: error: ‘GLenum’ declared as function returning a function
include/glbuild.h:34: error: syntax error before ‘*’ token
include/glbuild.h:34: error: syntax error before ‘name’
include/glbuild.h:34: warning: type defaults to ‘int’ in declaration of ‘bglGetString’
include/glbuild.h:34: warning: data definition has no type or storage class
include/glbuild.h:35: error: syntax error before ‘target’
. . . . . .
In file included from src/engine.c:699:
src/polymost.c:71: error: function ‘polymosttext’ is initialized like a variable
src/polymost.c:108: error: ‘GL_NEAREST’ undeclared here (not in a function)
src/polymost.c:108: warning: missing initializer
src/polymost.c:108: warning: (near initialization for ‘glfiltermodes[0].min’)
src/polymost.c:109: error: ‘GL_LINEAR’ undeclared here (not in a function)
src/polymost.c:109: warning: missing initializer
. . . . . . .
In file included from src/polymost.c:240,
from src/engine.c:699:
src/mdsprite.c: In function ‘mdloadskin’:
src/mdsprite.c:452: error: ‘GL_RGBA’ undeclared (first use in this function)
src/mdsprite.c:452: error: (Each undeclared identifier is reported only once
src/mdsprite.c:452: error: for each function it appears in.)
src/mdsprite.c:523: error: ‘GL_TEXTURE_2D’ undeclared (first use in this function)
src/mdsprite.c:524: error: ‘GL_TEXTURE_MAG_FILTER’ undeclared (first use in this function)
src/mdsprite.c:525: error: ‘GL_TEXTURE_MIN_FILTER’ undeclared (first use in this function)
. . . . . . . .
In file included from src/engine.c:699:
src/polymost.c: In function ‘gltexapplyprops’:
src/polymost.c:409: error: ‘GL_TEXTURE_2D’ undeclared (first use in this function)
src/polymost.c:410: error: ‘GL_TEXTURE_MAG_FILTER’ undeclared (first use in this function)
src/polymost.c:411: error: ‘GL_TEXTURE_MIN_FILTER’ undeclared (first use in this function)
src/polymost.c: In function ‘polymost_glreset’:
src/polymost.c:481: warning: the address of ‘polymosttext’, will always evaluate as ‘true’
src/polymost.c:482: error: invalid lvalue in assignment
. . . . . . .
src/engine.c: In function ‘setbrightness’:
src/engine.c:8527: warning: pointer targets in passing argument 3 of ‘setpalette’ differ in signedness
src/engine.c: In function ‘setpalettefade’:
src/engine.c:8566: warning: pointer targets in passing argument 3 of ‘setpalette’ differ in signedness
src/engine.c: In function ‘clearview’:
src/engine.c:8597: error: ‘GL_COLOR_BUFFER_BIT’ undeclared (first use in this function)
src/engine.c: In function ‘clearallviews’:
src/engine.c:8629: error: ‘GL_COLOR_BUFFER_BIT’ undeclared (first use in this function)
src/engine.c: In function ‘plotpixel’:
src/engine.c:8653: error: ‘GL_POINTS’ undeclared (first use in this function)
src/engine.c:8655: warning: passing argument 1 of ‘bglVertex2i’ makes pointer from integer without a cast
src/engine.c:8655: warning: passing argument 2 of ‘bglVertex2i’ makes pointer from integer without a cast
src/engine.c: In function ‘drawline256’:
. . . . . . . .



you asked for it. . . . mostly it appears that a few of the files are not liked at all by either the compiler or fedora
what i can see is that: glext.h, glbuild.h, polymost.c, mdsprite.c, engine.c are not read correctly.

build errors

[username@localhost build]$ make
/bin/sh: pkg-config: command not found
make: sdl-config: Command not found
gcc -DSUPERBUILD -DPOLYMOST -DUSE_OPENGL -DDYNAMIC_OPENGL -ggdb -W -Wall -Werror-implicit-function-declaration -Wno-char-subscripts -Wno-unused -march=pentium -funsigned-char -fno-strict-aliasing -DNO_GCC_BUILTINS -Iinclude/ -I../jfaud/inc -DLINUX=1 -DRENDERTYPESDL=1 -DDYNAMIC_OPENGL -c src/game.c -o obj.gnu/game.o 2>&1
src/game.c: In function ‘waitforeverybody’:
src/game.c:6092: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘long int’
src/game.c:6097: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘long int’
src/game.c:6103: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘long int’
make: sdl-config: Command not found
gcc -DSUPERBUILD -DPOLYMOST -DUSE_OPENGL -DDYNAMIC_OPENGL -ggdb -W -Wall -Werror-implicit-function-declaration -Wno-char-subscripts -Wno-unused -march=pentium -funsigned-char -fno-strict-aliasing -DNO_GCC_BUILTINS -Iinclude/ -I../jfaud/inc -DLINUX=1 -DRENDERTYPESDL=1 -DDYNAMIC_OPENGL -c src/sound.c -o obj.gnu/sound.o 2>&1
src/sound.c:5:18: error: fmod.h: No such file or directory
src/sound.c:6:25: error: fmod_errors.h: No such file or directory
src/sound.c:29: error: syntax error before ‘*’ token
src/sound.c:29: warning: type defaults to ‘int’ in declaration of ‘samples’
src/sound.c:29: warning: data definition has no type or storage class
src/sound.c:38: error: syntax error before ‘f_open’
src/sound.c:39: warning: return type defaults to ‘int’
src/sound.c:43: error: syntax error before ‘f_close’
src/sound.c:44: warning: return type defaults to ‘int’
src/sound.c: In function ‘f_close’:
src/sound.c:46: warning: control reaches end of non-void function
src/sound.c: At top level:
src/sound.c:48: error: syntax error before ‘f_read’
src/sound.c:49: warning: return type defaults to ‘int’
src/sound.c:53: error: syntax error before ‘f_seek’
src/sound.c:54: warning: return type defaults to ‘int’
src/sound.c:58: error: syntax error before ‘f_tell’
src/sound.c:59: warning: return type defaults to ‘int’
src/sound.c: In function ‘initsb’:
src/sound.c:78: error: ‘FMOD_VERSION’ undeclared (first use in this function)
src/sound.c:78: error: (Each undeclared identifier is reported only once
src/sound.c:78: error: for each function it appears in.)
src/sound.c:79: error: implicit declaration of function
. . . . . .
src/sound.c: In function ‘musicoff’:
src/sound.c:349: error: implicit declaration of function ‘FSOUND_Stream_Stop’
make: *** [obj.gnu/sound.o] Error 1




as for build it does not like: build.c and sound.c

I am not a programer and thus have not idea what most of this stuff means, i could upload the log files if you want.

JonoF
08-02-2005, 06:04 PM
That's a scary quantity of errors. I'm sure it goes without saying that you've got the development packages for SDL and (at the very least) Mesa installed. I'm actually surprised pkg-config isn't being found because I would have thought it was a standard component... bizarre.

Jonathon

Mr.Fibbles
08-08-2005, 03:05 PM
JonoF said:
That's a scary quantity of errors. I'm sure it goes without saying that you've got the development packages for SDL and (at the very least) Mesa installed. I'm actually surprised pkg-config isn't being found because I would have thought it was a standard component... bizarre.

Jonathon



I got SDL installed and i think it works but i have an Nvidia ard and those drivers which, according to what i have found so far, are not compatible with the Mesa stuff.


[root@localhost Mesa-6.3]# rpm -qa | grep Mesa
xorg-x11-Mesa-libGLU-6.8.2-31
xorg-x11-Mesa-libGL-6.8.2-31
[root@localhost Mesa-6.3]# rpm -qa | grep SDL
SDL-devel-1.2.8-1
SDL-1.2.8-3.2
[root@localhost Mesa-6.3]#




that is what i have as far as those two things, what am i missing? i know i am misisng something because it still does not work, it does not finish the install, the errors are significantly less but the program is not compiled completely.

TerminX
08-08-2005, 04:06 PM
You need the mesa devel packages installed at the very least. Looks like you don't have the fmod devel stuff installed either. It's weird that you have the SDL devel package installed but it still can't find sdl-config.. maybe you could try running ldconfig after installing fmod and the mesa devel, but I don't know that it'll have any effect.

Mr.Fibbles
08-08-2005, 05:14 PM
this is part of a software thing but since this is already here. . .
Mesa3D wont install either:

[root@localhost Mesa-6.3]# make install
Installing
./bin/installmesa

***** Mesa installation - You may need root privileges to do this *****

Default directory for header files is: /usr/local/include
Enter new directory or press <Enter> to accept this default.


Default directory for library files is: /usr/local/lib
Enter new directory or press <Enter> to accept this default.


About to install Mesa header files (GL/*.h) in: /usr/local/include/GL
and Mesa library files (libGL.*, etc) in: /usr/local/lib
Press <Enter> to continue, or <ctrl>-C to abort.


mkdir ${INCLUDE_DIR}
mkdir: cannot create directory `/usr/local/include': File exists
mkdir ${INCLUDE_DIR}/GL
mkdir: cannot create directory `/usr/local/include/GL': File exists
mkdir ${INCLUDE_DIR}/GLES
mkdir: cannot create directory `/usr/local/include/GLES': File exists
mkdir ${LIB_DIR}
mkdir: cannot create directory `/usr/local/lib': File exists
cp -f ${TOP}/include/GL/*.h ${INCLUDE_DIR}/GL
cp -f ${TOP}/include/GLES/*.h ${INCLUDE_DIR}/GLES
cp: cannot stat `./include/GLES/*.h': No such file or directory
cp -fd ${TOP}/lib*/lib* ${LIB_DIR}
cp: cannot stat `./lib*/lib*': No such file or directory

echo "Done."
Done.




i am pretty sure i made it correctly, as in when i made it it did not spit out a page of errors.

I have installed fmod and the devel packages now.(while typing this)

one thing i noticed when trying to compile Mesa was an error that said that there was no makedepend command.
i couldnt find what that meant or why it said that.

TerminX
08-08-2005, 05:35 PM
You aren't supposed to compile Mesa yourself, you're supposed to install the package that contains the development headers... new to this whole Linux thing, eh?

Mr.Fibbles
08-08-2005, 08:52 PM
What packages? The Mesa website has a download and instructions on compiling and installing, ive followed them and still no success.
I have searched for RPM's and other formats to install Mesa but no success. perhaps looking on the Fedora Cd's will help.

I am relatively new to linux, i have used linux before but never exclusively, ive always had Windows on the side for games etc.

TerminX
08-08-2005, 09:23 PM
You should try Ubuntu Linux. Much better than Fedora (and much easier to find what you're looking for if you play with it enough), IMO. Easier to maintain as well.

Anyway, you need to find which package in Fedora provides the file gl.h.

Mr.Fibbles
08-09-2005, 12:25 PM
I think i found it online. I think it was in one of the packages i thought i didnt need because it was for developement. The X Windows Developement packages.
It appears to me that i am in need of an update. . . . the version of the package i found does not match up with what i have, mine is out of date i believe(it has a lower number).
If I get it working Ill come back with a screen.