Installation on Ubuntu 4.10

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
User avatar
szerencsefia
Posts: 13
Joined: Fri Mar 04, 2005 3:28 pm

Installation on Ubuntu 4.10

Post by szerencsefia »

I have tried to install ZDoom on Ubuntu 4.10 by the install note. I got the next message and I don't know what is wrong. Could you help me?
---------
In file included from src/tarray.h:5,
from src/dobject.h:5,
from src/farchive.h:6,
from src/doomdef.h:29,
from src/am_map.cpp:26:
src/m_alloc.h:14:23: warning: no newline at end of file
In file included from src/am_map.cpp:27:
src/g_level.h:162:23: warning: no newline at end of file
In file included from src/actor.h:31,
from src/r_defs.h:36,
from src/r_data.h:27,
from src/r_local.h:33,
from src/p_local.h:27,
from src/am_map.cpp:31:
src/dthinker.h:121:24: warning: no newline at end of file
In file included from src/d_ticcmd.h:27,
from src/d_player.h:29,
from src/r_state.h:27,
from src/r_data.h:28,
from src/r_local.h:33,
from src/p_local.h:27,
from src/am_map.cpp:31:
src/d_protocol.h:157:26: warning: no newline at end of file
In file included from src/d_player.h:35,
from src/r_state.h:27,
from src/r_data.h:28,
from src/r_local.h:33,
from src/p_local.h:27,
from src/am_map.cpp:31:
src/d_items.h:83:23: warning: no newline at end of file
In file included from src/d_player.h:42,
from src/r_state.h:27,
from src/r_data.h:28,
from src/r_local.h:33,
from src/p_local.h:27,
from src/am_map.cpp:31:
src/d_netinf.h:39:28: warning: no newline at end of file
In file included from src/b_bot.h:11,
from src/d_player.h:45,
from src/r_state.h:27,
from src/r_data.h:28,
from src/r_local.h:33,
from src/p_local.h:27,
from src/am_map.cpp:31:
src/m_argv.h:64:22: warning: no newline at end of file
In file included from src/p_spec.h:28,
from src/p_local.h:430,
from src/am_map.cpp:31:
src/dsectoreffect.h:66:29: warning: no newline at end of file
In file included from src/am_map.cpp:32:
src/p_lnspec.h:313:24: warning: no newline at end of file
In file included from src/v_video.h:28,
from src/am_map.cpp:40:
src/m_bbox.h:66:22: warning: no newline at end of file
In file included from src/am_map.cpp:42:
src/v_text.h:47:22: warning: no newline at end of file
src/m_fixed.h: In function `void AM_activateNewScale()':
src/m_fixed.h:67: error: `asm' operand requires impossible reload
src/m_fixed.h:67: error: `asm' operand requires impossible reload
make: *** [src/linux/release/am_map.o] Error 1

Thu, E
User avatar
Chris
Posts: 3000
Joined: Thu Jul 17, 2003 12:07 am
Graphics Processor: ATI/AMD with Vulkan/Metal Support

Post by Chris »

What version of ZDoom? What version of GCC? Did you apply my latest GCC patch?
User avatar
szerencsefia
Posts: 13
Joined: Fri Mar 04, 2005 3:28 pm

Post by szerencsefia »

Chris wrote:What version of ZDoom? What version of GCC? Did you apply my latest GCC patch?
ZDoom-1.22
GCC-3.3.4
I did not patched. Where can I download it from?
E
User avatar
Chris
Posts: 3000
Joined: Thu Jul 17, 2003 12:07 am
Graphics Processor: ATI/AMD with Vulkan/Metal Support

Post by Chris »

First, get the latest ZDoom sources (2.0.96) here: http://www.zdoom.org/files/lars/96src.rar
And the patch is here: http://forum.zdoom.org/viewtopic.php?t=5084

Extract the two archives into an empty directory, then apply the patch (patch -p0 < changes.diff). Assuming you have everything else needed, just run make.
User avatar
szerencsefia
Posts: 13
Joined: Fri Mar 04, 2005 3:28 pm

Post by szerencsefia »

Chris wrote:First, get the latest ZDoom sources (2.0.96) here: http://www.zdoom.org/files/lars/96src.rar
And the patch is here: http://forum.zdoom.org/viewtopic.php?t=5084

Extract the two archives into an empty directory, then apply the patch (patch -p0 < changes.diff). Assuming you have everything else needed, just run make.
Thank you so much, I'm gonna try later.
E
User avatar
szerencsefia
Posts: 13
Joined: Fri Mar 04, 2005 3:28 pm

Post by szerencsefia »

Chris wrote: Extract the two archives into an empty directory, then apply the patch (patch -p0 < changes.diff). Assuming you have everything else needed, just run make.
I did it and this is the result:
In file included from src/oplsynth/opl_mus_player.cpp:9:
src/oplsynth/opl_mus_player.h:5:21: SDL/SDL.h: No file or directory
In file included from src/oplsynth/opl_mus_player.cpp:9:
src/oplsynth/opl_mus_player.h:35: error: syntax error before `*' token
^[OFsrc/oplsynth/opl_mus_player.cpp: In constructor `
OPLmusicBlock::OPLmusicBlock(FILE*, int, int, int)':
src/oplsynth/opl_mus_player.cpp:29: error: `ChipAccess' undeclared (first use
this function)
src/oplsynth/opl_mus_player.cpp:29: error: (Each undeclared identifier is
reported only once for each function it appears in.)
src/oplsynth/opl_mus_player.cpp:29: error: `SDL_CreateMutex' undeclared (first
use this function)
src/oplsynth/opl_mus_player.cpp: In destructor `OPLmusicBlock::~OPLmusicBlock()
':
src/oplsynth/opl_mus_player.cpp:78: error: `SDL_DestroyMutex' undeclared (first
use this function)
src/oplsynth/opl_mus_player.cpp: In member function `void
OPLmusicBlock::ResetChips()':
src/oplsynth/opl_mus_player.cpp:90: error: `SDL_mutexP' undeclared (first use
this function)
src/oplsynth/opl_mus_player.cpp:98: error: `SDL_mutexV' undeclared (first use
this function)
src/oplsynth/opl_mus_player.cpp: In member function `bool
OPLmusicBlock::ServiceStream(void*, int)':
src/oplsynth/opl_mus_player.cpp:134: error: `SDL_mutexP' undeclared (first use
this function)
src/oplsynth/opl_mus_player.cpp:191: error: `SDL_mutexV' undeclared (first use
this function)
make: *** [obj/opl_mus_player.o] Error 1
User avatar
Chris
Posts: 3000
Joined: Thu Jul 17, 2003 12:07 am
Graphics Processor: ATI/AMD with Vulkan/Metal Support

Post by Chris »

Looks like SDL isn't installed. Can you confirm if it is?
User avatar
szerencsefia
Posts: 13
Joined: Fri Mar 04, 2005 3:28 pm

Post by szerencsefia »

Chris wrote:Looks like SDL isn't installed. Can you confirm if it is?
Of course.
I have checked SDL posibilities in Synaptic and I have gotten too many targets. May you tell me what SDL shall I install?
E
User avatar
Chris
Posts: 3000
Joined: Thu Jul 17, 2003 12:07 am
Graphics Processor: ATI/AMD with Vulkan/Metal Support

Post by Chris »

User avatar
szerencsefia
Posts: 13
Joined: Fri Mar 04, 2005 3:28 pm

Post by szerencsefia »

Chris wrote:Looks like SDL isn't installed. Can you confirm if it is?
I have installed SDL-1.2.8 and later Zdoom, result:
---
/usr/src/fbo/zdoom $ make
g++ -DUSEASM=1 -MD -DSHARE_DIR="/usr/share/zdoom/" -Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -DM_TARGET_LINUX -Isrc -Isrc/sdl -Isrc/g_doom -Isrc/g_heretic -Isrc/g_hexen -Isrc/g_raven -Isrc/g_strife -Isrc/g_shared -Isrc/oplsynth -Isrc/sound -march=pentium -Wall -Wno-unused -O2 -fomit-frame-pointer -o obj/fmodsound.o -c src/sound/fmodsound.cpp
In file included from src/sound/fmodsound.cpp:46:
src/sound/fmodsound.h:5:18: fmod.h: No file or directory
In file included from src/sound/fmodsound.cpp:46:
src/sound/fmodsound.h:68: error: `FSOUND_SAMPLE' was not declared in this scope
src/sound/fmodsound.h:68: error: `sample' was not declared in this scope
src/sound/fmodsound.h:68: error: parse error before `*' token
src/sound/fmodsound.h:71: error: syntax error before `*' token
In file included from src/sound/fmodsound.cpp:53:
src/sound/sample_flac.h:1:18: fmod.h: No file or directory
src/sound/sample_flac.h:2:28: FLAC++/decoder.h: No file or directory
In file included from src/sound/fmodsound.cpp:53:
src/sound/sample_flac.h:6: error: `FLAC' is not a class or namespace
src/sound/sample_flac.h:6: error: `Decoder' is not a class or namespace
src/sound/sample_flac.h:7: error: `Stream' is not a class or namespace
src/sound/sample_flac.h:7: error: invalid base-class specification
src/sound/sample_flac.h:12: error: syntax error before `*' token
src/sound/sample_flac.h:18: error: ISO C++ forbids declaration of `
FLAC__StreamDecoderReadStatus' with no type
src/sound/sample_flac.h:18: error: invalid use of `::'
src/sound/sample_flac.h:18: error: `FLAC__StreamDecoderReadStatus' declared as
a `virtual' field
src/sound/sample_flac.h:18: error: parse error before `(' token
src/sound/sample_flac.h:19: error: ISO C++ forbids declaration of `
FLAC__StreamDecoderWriteStatus' with no type
src/sound/sample_flac.h:19: error: invalid use of `::'
src/sound/sample_flac.h:19: error: `FLAC__StreamDecoderWriteStatus' declared as
a `virtual' field
src/sound/sample_flac.h:19: error: parse error before `(' token
src/sound/sample_flac.h:20: error: parse error before `*' token
src/sound/sample_flac.h:21: error: `::FLAC__StreamDecoderErrorStatus'
undeclared (first use here)
src/sound/sample_flac.h:21: error: parse error before `)' token
src/sound/sample_flac.h:23: error: type specifier omitted for parameter `
FLAC__int32'
src/sound/sample_flac.h:23: error: parse error before `*' token
src/sound/sample_flac.h:7: warning: `class FLACSampleLoader' has virtual
functions but non-virtual destructor
src/sound/fmodsound.cpp: In function `char FModLog(char)':
src/sound/fmodsound.cpp:107: error: `FSOUND_GetError' undeclared (first use
this function)
src/sound/fmodsound.cpp:107: error: (Each undeclared identifier is reported
only once for each function it appears in.)
src/sound/fmodsound.cpp: At global scope:
src/sound/fmodsound.cpp:121: error: parse error before `*' token
src/sound/fmodsound.cpp:122: error: missing ';' before right brace
src/sound/fmodsound.cpp:125: error: ISO C++ forbids defining types within
return type
src/sound/fmodsound.cpp:125: error: semicolon missing after declaration of `
class FMODStreamCapsule'
src/sound/fmodsound.cpp: In function `int FMODStreamCapsule(void*, bool
(*)(SoundStream*, void*, int, void*))':
src/sound/fmodsound.cpp:125: error: only constructors take base initializers
src/sound/fmodsound.cpp:125: confused by earlier errors, bailing out
make: *** [obj/fmodsound.o] Error 1
---
So?
E
User avatar
Chris
Posts: 3000
Joined: Thu Jul 17, 2003 12:07 am
Graphics Processor: ATI/AMD with Vulkan/Metal Support

Post by Chris »

The post with the patch wrote:What you need:
  • FMOD
  • SDL
  • FLAC(++)
  • zlib
  • Unpatched .96 ZDoom source
Since you're getting errors about FMOD and FLAC, I took the liberty of highlighting what you're probably missing. :P
User avatar
szerencsefia
Posts: 13
Joined: Fri Mar 04, 2005 3:28 pm

Post by szerencsefia »

Chris wrote:
The post with the patch wrote:What you need:
  • FMOD
  • SDL
  • FLAC(++)
  • zlib
  • Unpatched .96 ZDoom source
Since you're getting errors about FMOD and FLAC, I took the liberty of highlighting what you're probably missing. :P
Sorry for my stupidity but I thought I have installed FMOD & FLAC but it looks have not.
1. I have download FMOD but in the diretory I couldn't ./configure. How is that?
2. erno@PC:/usr/src/fbo/zdoom $ sudo apt-get install flac++
Reading packages ... Done
Build depedencies ... Done
flac is already the newest version.
How shall I continue?
E
User avatar
Chris
Posts: 3000
Joined: Thu Jul 17, 2003 12:07 am
Graphics Processor: ATI/AMD with Vulkan/Metal Support

Post by Chris »

For FMOD, it's not a source distribution. FMOD is closed source, so you just install the prebuilt libs.

As for FLAC, I'm not sure. Try to search your library directories for libFLAC++.so and libFLAC.so, and make sure they're in your library path (check /etc/ld.so.conf). Also don't forget to run ldconfig after installing new libs.
User avatar
szerencsefia
Posts: 13
Joined: Fri Mar 04, 2005 3:28 pm

Post by szerencsefia »

Chris wrote:For FMOD, it's not a source distribution. FMOD is closed source, so you just install the prebuilt libs.
I have download it. Where should I put the unpacked folders? Is there some exatly place for it?
Chris wrote:As for FLAC, I'm not sure. Try to search your library directories for libFLAC++.so and libFLAC.so, and make sure they're in your library path (check /etc/ld.so.conf). Also don't forget to run ldconfig after installing new libs.
Result of search:
libFLAC++.so.2 /usr/lib (broken)
libFLAC++.so.2.1.2 /usr/lib
---
libFLAC.so.4 /usr/lib (broken)
libFLAC.so.4.1.2 /usr/lib
Are these what we looking for? Either yes or no what is my next step?
Erno
User avatar
Chris
Posts: 3000
Joined: Thu Jul 17, 2003 12:07 am
Graphics Processor: ATI/AMD with Vulkan/Metal Support

Post by Chris »

What do you mean by (broken)? It should just be symlinks to the other .so you listed.

Try uninstalling and reinstalling FLAC and see if that fixes the problem, since it's really complaining about missing headers.
Post Reply

Return to “Closed Bugs [GZDoom]”