Trying to compile GZDoom with Linux
Moderator: Graf Zahl
- Graf Zahl
- GZDoom Developer
- Posts: 7148
- Joined: Wed Jul 20, 2005 9:48
- Location: Germany
- Contact:
-
- Posts: 59
- Joined: Thu Sep 08, 2005 20:02
- Contact:
-
- Posts: 59
- Joined: Thu Sep 08, 2005 20:02
- Contact:
Following recommendation by GuntherDW and recommendations in READMEs I removed -IFLAC and -Izlib in the makefile.linux
So now those lines are:
So now headers shipped with these libraries will be used instead of zdoom ones.
So now those lines are:
Code: Select all
CFLAGS += `pkg-config gtk+-2.0 --cflags`
CFLAGS += -DHAVE_FILELENGTH -D__forceinline=inline `sdl-config --cflags`
CFLAGS += -Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -DNEED_STRUPR
- Attachments
-
- patch27L.zip
- small update
- (446 Bytes) Downloaded 138 times
Last edited by Costja on Tue Oct 16, 2007 21:38, edited 1 time in total.
-
- Posts: 35
- Joined: Fri Sep 21, 2007 2:09
- Location: Australia
- Contact:
- Graf Zahl
- GZDoom Developer
- Posts: 7148
- Joined: Wed Jul 20, 2005 9:48
- Location: Germany
- Contact:
-
- Posts: 34
- Joined: Fri Jul 07, 2006 1:35
- Location: 66 Exeter Street
- Graf Zahl
- GZDoom Developer
- Posts: 7148
- Joined: Wed Jul 20, 2005 9:48
- Location: Germany
- Contact:
-
- Posts: 59
- Joined: Thu Sep 08, 2005 20:02
- Contact:
- Graf Zahl
- GZDoom Developer
- Posts: 7148
- Joined: Wed Jul 20, 2005 9:48
- Location: Germany
- Contact:
- TheDarkArchon
- Posts: 1000
- Joined: Wed Jul 06, 2005 11:58
- Location: What's that fucking smell
- Contact:
- Graf Zahl
- GZDoom Developer
- Posts: 7148
- Joined: Wed Jul 20, 2005 9:48
- Location: Germany
- Contact:
- TheDarkArchon
- Posts: 1000
- Joined: Wed Jul 06, 2005 11:58
- Location: What's that fucking smell
- Contact:
- Graf Zahl
- GZDoom Developer
- Posts: 7148
- Joined: Wed Jul 20, 2005 9:48
- Location: Germany
- Contact:
- Daniele C.
- Posts: 54
- Joined: Sun Oct 21, 2007 23:24
- Location: Roma
Hi, I have Gentoo Linux and I am a C programmer (I also compiled various flavoors of the origina Doom source code when I was on Windows), so I would like to help to debug the GZDoom port (I might also mantain the package at Gentoo, if you agree).
I cannot get GZDoom to compile, I had to fix a few issues before getting stuck at last:
1. the config directory is not present, so bootstrap cannot do its work
2. after having created the config directory the src/Makefile.in is missing. I copied Makefile.linux there
3. now bootstrap will do its job, but finally it cannot find libfmod. I manually edited the configure script not to link -lfmod-3.74 but -lfmod (I have the package for v3.75 installed)
In the end I got stuck:
I compiled those two objects with:
but obviously they don't work, as I now get:
That's possibly due to missing -D definitions on the gcc commandline
I have tried to remove -IFLAC and -Izlib (as suggested by the patch) but that does not work in my case - or I am not yet at the failure point that will need such changes
Thanks!
I cannot get GZDoom to compile, I had to fix a few issues before getting stuck at last:
1. the config directory is not present, so bootstrap cannot do its work
2. after having created the config directory the src/Makefile.in is missing. I copied Makefile.linux there
3. now bootstrap will do its job, but finally it cannot find libfmod. I manually edited the configure script not to link -lfmod-3.74 but -lfmod (I have the package for v3.75 installed)
In the end I got stuck:
Code: Select all
g++ -lFLAC++ -lFLAC -lz -lfmod `sdl-config --libs` -Wl,-Map=zdoom.map releaseobj/autostart.o \
\
releaseobj/autozend.o -o zdoom
g++: releaseobj/autostart.o: No such file or directory
g++: releaseobj/autozend.o: No such file or directory
Code: Select all
gcc -c src/autozend.cpp -o src/releaseobj/autozend.o
gcc -c src/autostart.cpp -o src/releaseobj/autostart.o
Code: Select all
g++ -lFLAC++ -lFLAC -lz -lfmod `sdl-config --libs` -Wl,-Map=zdoom.map releaseobj/autostart.o \
\
releaseobj/autozend.o -o zdoom
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status
I have tried to remove -IFLAC and -Izlib (as suggested by the patch) but that does not work in my case - or I am not yet at the failure point that will need such changes
Thanks!
-
- Posts: 59
- Joined: Thu Sep 08, 2005 20:02
- Contact:
Are any changes required to run ZDoom on your system? IMHO, ZDoom supports Linux more "cleanly", so its better to patch it first.
AFAIK configure script in gzdoom archive is not working. i compile GZDoom on my system without configuring it (after applying two latest patches from this thread). Makefile.linux is included from the makefile.
AFAIK configure script in gzdoom archive is not working. i compile GZDoom on my system without configuring it (after applying two latest patches from this thread). Makefile.linux is included from the makefile.