Trying to compile GZDoom with Linux

Advanced OpenGL source port fork from ZDoom, picking up where ZDoomGL left off.
[Home] [Download] [Git builds (Win)] [Git builds (Mac)] [Wiki] [Repo] [Bugs&Suggestions]

Moderator: Graf Zahl

User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post by Graf Zahl »

This needs some more complex fixing. Could you just comment out the DehackedPickup stuff in gl_dynlight? I won't be able to fix that today.
Costja
Posts: 59
Joined: Thu Sep 08, 2005 20:02
Contact:

Post by Costja »

Ok. That means disabling actor lights, so I'll make patch for clean compiling later (of course I can post current changes if you need them).
Costja
Posts: 59
Joined: Thu Sep 08, 2005 20:02
Contact:

Post by Costja »

Linker errors in r113:

Code: Select all

releaseobj/m_options.o: In function `ModReplayerOptions()':
m_options.cpp:(.text+0x15ae): undefined reference to `mod_dumb'
releaseobj/m_options.o:(.data+0x1a68): undefined reference to `mod_dumb'
releaseobj/m_options.o:(.data+0x1aa0): undefined reference to `mod_samplerate'
releaseobj/m_options.o:(.data+0x1abc): undefined reference to `mod_interp'
releaseobj/m_options.o:(.data+0x1ad8): undefined reference to `mod_volramp'
releaseobj/m_options.o:(.data+0x1b10): undefined reference to `mod_autochip'
releaseobj/doom_sbar.o: In function `CreateDoomStatusBar()':
doom_sbar.cpp:(.text+0x821): undefined reference to `FMugShot::FMugShot()'
releaseobj/doom_sbar.o: In function `DDoomStatusBar::InPlaceConstructor(void*)':
doom_sbar.cpp:(.text+0x9b7): undefined reference to `FMugShot::FMugShot()'
releaseobj/doom_sbar.o: In function `DDoomStatusBar::SetMugShotState(char const*, bool, bool)':
doom_sbar.cpp:(.text._ZN14DDoomStatusBar15SetMugShotStateEPKcbb[DDoomStatusBar::SetMugShotState(char const*, bool, bool)]+0x20): undefined reference to `FMugShot::SetState(char const*, bool, bool)'
releaseobj/doom_sbar.o: In function `DDoomStatusBar::Tick()':
doom_sbar.cpp:(.text._ZN14DDoomStatusBar4TickEv[DDoomStatusBar::Tick()]+0x33): undefined reference to `FMugShot::Tick(player_t*)'
releaseobj/doom_sbar.o: In function `DDoomStatusBar::Draw(EHudState)':
doom_sbar.cpp:(.text._ZN14DDoomStatusBar4DrawE9EHudState[DDoomStatusBar::Draw(EHudState)]+0x1af): undefined reference to `FMugShot::GetFace(player_t*, char const*, int, bool, bool)'
releaseobj/sbarinfo_display.o: In function `DSBarInfo::DrawFace(char const*, int, bool, bool, int, int, int, int, int)':
sbarinfo_display.cpp:(.text+0x1286): undefined reference to `FMugShot::GetFace(player_t*, char const*, int, bool, bool)'
releaseobj/sbarinfo_display.o: In function `DSBarInfo::Tick()':
sbarinfo_display.cpp:(.text+0x1747): undefined reference to `FMugShot::Tick(player_t*)'
releaseobj/sbarinfo_display.o: In function `DSBarInfo::DSBarInfo()':
sbarinfo_display.cpp:(.text+0x4cc6): undefined reference to `FMugShot::FMugShot()'
releaseobj/sbarinfo_display.o: In function `DSBarInfo::DSBarInfo()':
sbarinfo_display.cpp:(.text+0x5036): undefined reference to `FMugShot::FMugShot()'
releaseobj/sbarinfo_display.o: In function `DSBarInfo::SetMugShotState(char const*, bool, bool)':
sbarinfo_display.cpp:(.text+0x13c0): undefined reference to `FMugShot::SetState(char const*, bool, bool)'
releaseobj/sbarinfo_parser.o: In function `SBarInfo::ParseMugShotBlock(FScanner&, FMugShotState&)':
sbarinfo_parser.cpp:(.text+0x4c4): undefined reference to `FMugShotFrame::FMugShotFrame()'
sbarinfo_parser.cpp:(.text+0x65a): undefined reference to `FMugShotFrame::~FMugShotFrame()'
sbarinfo_parser.cpp:(.text+0x6b9): undefined reference to `FMugShotFrame::~FMugShotFrame()'
releaseobj/sbarinfo_parser.o: In function `SBarInfo::ParseSBarInfo(int)':
sbarinfo_parser.cpp:(.text+0x4a20): undefined reference to `FMugShotState::FMugShotState(FName)'
sbarinfo_parser.cpp:(.text+0x4ae6): undefined reference to `FindMugShotStateIndex(FName)'
sbarinfo_parser.cpp:(.text+0x4af7): undefined reference to `MugShotStates'
sbarinfo_parser.cpp:(.text+0x4b05): undefined reference to `MugShotStates'
sbarinfo_parser.cpp:(.text+0x4b27): undefined reference to `MugShotStates'
sbarinfo_parser.cpp:(.text+0x4b33): undefined reference to `MugShotStates'
sbarinfo_parser.cpp:(.text+0x4b41): undefined reference to `MugShotStates'
releaseobj/sbarinfo_parser.o:sbarinfo_parser.cpp:(.text+0x4b46): more undefined references to `MugShotStates' follow
releaseobj/sbarinfo_parser.o: In function `SBarInfo::ParseSBarInfo(int)':
sbarinfo_parser.cpp:(.text+0x4bfc): undefined reference to `FMugShotState::~FMugShotState()'
sbarinfo_parser.cpp:(.text+0x50dc): undefined reference to `MugShotStates'
sbarinfo_parser.cpp:(.text+0x50e4): undefined reference to `FMugShotState::~FMugShotState()'
sbarinfo_parser.cpp:(.text+0x50ea): undefined reference to `MugShotStates'
sbarinfo_parser.cpp:(.text+0x50f5): undefined reference to `MugShotStates'
sbarinfo_parser.cpp:(.text+0x5101): undefined reference to `MugShotStates'
sbarinfo_parser.cpp:(.text+0x5123): undefined reference to `MugShotStates'
sbarinfo_parser.cpp:(.text+0x58fd): undefined reference to `FMugShotState::~FMugShotState()'
releaseobj/i_music.o: In function `I_RegisterSong(char const*, char*, int, int, int)':
i_music.cpp:(.text+0xa8a): undefined reference to `MOD_OpenSong(_IO_FILE*, char*, int)'
Is the problem on Linux/my side?
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post by Graf Zahl »

No. There's a file missing. Please try again.
Costja
Posts: 59
Joined: Thu Sep 08, 2005 20:02
Contact:

Post by Costja »

Managed to compile DUMB part after imporing DUMB-specific lines from zdoom makefile and copying missing music_dumb.cpp . But I still get same StatusBar/MugShot errors:

Code: Select all

releaseobj/doom_sbar.o: In function `CreateDoomStatusBar()':
doom_sbar.cpp:(.text+0x821): undefined reference to `FMugShot::FMugShot()'
releaseobj/doom_sbar.o: In function `DDoomStatusBar::InPlaceConstructor(void*)':
doom_sbar.cpp:(.text+0x9b7): undefined reference to `FMugShot::FMugShot()'
releaseobj/doom_sbar.o: In function `DDoomStatusBar::SetMugShotState(char const*, bool, bool)':
doom_sbar.cpp:(.text._ZN14DDoomStatusBar15SetMugShotStateEPKcbb[DDoomStatusBar::SetMugShotState(char const*, bool, bool)]+0x20): undefined reference to `FMugShot::SetState(char const*, bool, bool)'
releaseobj/doom_sbar.o: In function `DDoomStatusBar::Tick()':
doom_sbar.cpp:(.text._ZN14DDoomStatusBar4TickEv[DDoomStatusBar::Tick()]+0x33): undefined reference to `FMugShot::Tick(player_t*)'
releaseobj/doom_sbar.o: In function `DDoomStatusBar::Draw(EHudState)':
doom_sbar.cpp:(.text._ZN14DDoomStatusBar4DrawE9EHudState[DDoomStatusBar::Draw(EHudState)]+0x1af): undefined reference to `FMugShot::GetFace(player_t*, char const*, int, bool, bool)'
releaseobj/sbarinfo_display.o: In function `DSBarInfo::DrawFace(char const*, int, bool, bool, int, int, int, int, int)':
sbarinfo_display.cpp:(.text+0x1286): undefined reference to `FMugShot::GetFace(player_t*, char const*, int, bool, bool)'
releaseobj/sbarinfo_display.o: In function `DSBarInfo::Tick()':
sbarinfo_display.cpp:(.text+0x1747): undefined reference to `FMugShot::Tick(player_t*)'
releaseobj/sbarinfo_display.o: In function `DSBarInfo::DSBarInfo()':
sbarinfo_display.cpp:(.text+0x4cc6): undefined reference to `FMugShot::FMugShot()'
releaseobj/sbarinfo_display.o: In function `DSBarInfo::DSBarInfo()':
sbarinfo_display.cpp:(.text+0x5036): undefined reference to `FMugShot::FMugShot()'
releaseobj/sbarinfo_display.o: In function `DSBarInfo::SetMugShotState(char const*, bool, bool)':
sbarinfo_display.cpp:(.text+0x13c0): undefined reference to `FMugShot::SetState(char const*, bool, bool)'
releaseobj/sbarinfo_parser.o: In function `SBarInfo::ParseMugShotBlock(FScanner&, FMugShotState&)':
sbarinfo_parser.cpp:(.text+0x4c4): undefined reference to `FMugShotFrame::FMugShotFrame()'
sbarinfo_parser.cpp:(.text+0x65a): undefined reference to `FMugShotFrame::~FMugShotFrame()'
sbarinfo_parser.cpp:(.text+0x6b9): undefined reference to `FMugShotFrame::~FMugShotFrame()'
releaseobj/sbarinfo_parser.o: In function `SBarInfo::ParseSBarInfo(int)':
sbarinfo_parser.cpp:(.text+0x4a20): undefined reference to `FMugShotState::FMugShotState(FName)'
sbarinfo_parser.cpp:(.text+0x4ae6): undefined reference to `FindMugShotStateIndex(FName)'
sbarinfo_parser.cpp:(.text+0x4af7): undefined reference to `MugShotStates'
sbarinfo_parser.cpp:(.text+0x4b05): undefined reference to `MugShotStates'
sbarinfo_parser.cpp:(.text+0x4b27): undefined reference to `MugShotStates'
sbarinfo_parser.cpp:(.text+0x4b33): undefined reference to `MugShotStates'
sbarinfo_parser.cpp:(.text+0x4b41): undefined reference to `MugShotStates'
releaseobj/sbarinfo_parser.o:sbarinfo_parser.cpp:(.text+0x4b46): more undefined references to `MugShotStates' follow
releaseobj/sbarinfo_parser.o: In function `SBarInfo::ParseSBarInfo(int)':
sbarinfo_parser.cpp:(.text+0x4bfc): undefined reference to `FMugShotState::~FMugShotState()'
sbarinfo_parser.cpp:(.text+0x50dc): undefined reference to `MugShotStates'
sbarinfo_parser.cpp:(.text+0x50e4): undefined reference to `FMugShotState::~FMugShotState()'
sbarinfo_parser.cpp:(.text+0x50ea): undefined reference to `MugShotStates'
sbarinfo_parser.cpp:(.text+0x50f5): undefined reference to `MugShotStates'
sbarinfo_parser.cpp:(.text+0x5101): undefined reference to `MugShotStates'
sbarinfo_parser.cpp:(.text+0x5123): undefined reference to `MugShotStates'
sbarinfo_parser.cpp:(.text+0x58fd): undefined reference to `FMugShotState::~FMugShotState()'
collect2: ld returned 1 exit status
make[1]: *** [gzdoom] Error 1
make[1]: Leaving directory `/home/const/sources/gzdoom.svn/trunk'
make: *** [deps] Error 2
Costja
Posts: 59
Joined: Thu Sep 08, 2005 20:02
Contact:

Post by Costja »

Ok, r115 compiles successfully. Here's my patch
Attachments
patch_r115.dif.zip
Patch for r115
(859 Bytes) Downloaded 191 times
Costja
Posts: 59
Joined: Thu Sep 08, 2005 20:02
Contact:

Post by Costja »

BTW, will it help to automate/ease linux updates if I adapt current ZDoom Makefile.linux for using instead of current GZDoom one?
stevenaaus
Posts: 35
Joined: Fri Sep 21, 2007 2:09
Location: Australia
Contact:

Stumped

Post by stevenaaus »

I'd really like to keep tabs on this occasionally and help out with bug reports... but i can't figure out what is happening here. The version numbers for the patches don't seem to allign with the gzdoom source releases (patch_r115.dif) from download page (http://grafzahl.drdteam.org/index.php?page=topic&id=230) or http://grafzahl.drdteam.org/, and you have to read this whole forum, just to try to begin to test it out. Sorry to bug yous.. but when you're happy with some version, a nice web page would be appreciated. This is the google #1 hit for linux gzdoom. Is there another page already ?
User avatar
Gez
Developer
Developer
Posts: 1399
Joined: Mon Oct 22, 2007 16:47

Post by Gez »

The patch is for r115; which isn't the current revision and doesn't correspond to one of the official releases. Read the informations on the ZDoom SVN repository and apply them to the GZDoom repository instead. You can select to update to revision 115 to apply the patch.
stevenaaus
Posts: 35
Joined: Fri Sep 21, 2007 2:09
Location: Australia
Contact:

Post by stevenaaus »

Thanks. ... I don't really know subversion etc, but could use it if i had too. It'd just be nice to have tarballs from a kind-of stable web site where noobs could easily grab a binary or source and give it a go.

Was a little frustrated before 'cos Torment and Torture stopped working... again! After downloading the latest 70meg tutnt.pk3, got it going again. Thats the third time i've had to grab it.

Has there been any nice mods out recently besides Knee Deep and Torment ?
User avatar
Gez
Developer
Developer
Posts: 1399
Joined: Mon Oct 22, 2007 16:47

Post by Gez »

There were a few beta releases of Demon Eclipse, there was Torm's city of the damned, there was the ZPack...
Costja
Posts: 59
Joined: Thu Sep 08, 2005 20:02
Contact:

Post by Costja »

stevenaaus,
Latest SVN version should work under Linux. Even 64bit systems should be supported now. At least version that was latest on Saturday worked for me though I didn't test it with UTnT/KDiZD.
AFAIK there is no other linux gzdoom pages, create one if you want)
stevenaaus
Posts: 35
Joined: Fri Sep 21, 2007 2:09
Location: Australia
Contact:

Linux tarballs, @Graf

Post by stevenaaus »

I'd rather not try to start any other web page.
Graf : it'd be great if you could put up an extra link + a binary tarball on your download page.

http://grafzahl.drdteam.org/index.php?page=topic&id=230

I'll prepare a tarball and some doco for it if no-one else voluteers, and we'll only have to upgrade it , like, hardly never.
User avatar
Daniele C.
Posts: 54
Joined: Sun Oct 21, 2007 23:24
Location: Roma

New changes to Makefile.linux

Post by Daniele C. »

Hi all,

I am back. I have successfully compiled GZdoom on my Gentoo Linux adding some other files to Makefile.linux. Please see attachment.

I also had to install FmodEx but now everything is perfectly functional! :) Welcome back on my Linux, dear GZdoom! 8)

P.S. I have no SVN write access so I had to attach the file here, if you can give me access I would commit the changes myself next time.
User avatar
Daniele C.
Posts: 54
Joined: Sun Oct 21, 2007 23:24
Location: Roma

Post by Daniele C. »

Gez wrote:There were a few beta releases of Demon Eclipse, there was Torm's city of the damned, there was the ZPack...
A bit off-topic.

The other day I saw this nice ZPack and tried to start GZDoom. Nothing. So I got the new sources yesterday and finally successfully compiled it today!

I am now going to try it! :P
Locked

Return to “GZDoom”