The official "ZDoom on Linux" thread.

Handy guides on how to do things, written by users for users.

Moderators: GZDoom Developers, Raze Developers

Forum rules
Please don't start threads here asking for help. This forum is not for requesting guides, only for posting them. If you need help, the Editing forum is for you.
mediate

Re: The official "ZDoom on Linux" thread.

Post by mediate »

Hello. I have an error at the end of the compilation. If someone could please help me?
Running ubuntu 9.10.

Code: Select all

/home/user/trunk/src/timidity/instrum_dls.cpp: In function ‘Timidity::RIFF_Chunk* Timidity::LoadRIFF(FILE*)’:
/home/user/trunk/src/timidity/instrum_dls.cpp:143: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result
/home/user/trunk/src/timidity/instrum_dls.cpp:144: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result
[ 97%] Building CXX object src/CMakeFiles/zdoom.dir/timidity/instrum_font.o
[ 98%] Building CXX object src/CMakeFiles/zdoom.dir/timidity/instrum_sf2.o
[ 98%] Building CXX object src/CMakeFiles/zdoom.dir/timidity/mix.o
[ 98%] Building CXX object src/CMakeFiles/zdoom.dir/timidity/playmidi.o
[ 98%] Building CXX object src/CMakeFiles/zdoom.dir/timidity/resample.o
[ 98%] Building CXX object src/CMakeFiles/zdoom.dir/timidity/timidity.o
[ 99%] Building CXX object src/CMakeFiles/zdoom.dir/xlat/parse_xlat.o
[ 99%] Building CXX object src/CMakeFiles/zdoom.dir/autozend.o
make[2]: *** No rule to make target `/trunk/fmodapi42805linux/api/lib/libfmodex-4.28.05.so', needed by `zdoom'.  Stop.
make[1]: *** [src/CMakeFiles/zdoom.dir/all] Error 2
make: *** [all] Error 2
I am a complete newbie when it comes to compiling, so I have no idea what this means. if someone could please help with this? thanks.

mediate
User avatar
Skutarth
Posts: 87
Joined: Sun Aug 13, 2006 11:57 am
Location: Hell

Re: The official "ZDoom on Linux" thread.

Post by Skutarth »

mediate wrote:

Code: Select all

make[2]: *** No rule to make target `/trunk/fmodapi42805linux/api/lib/libfmodex-4.28.05.so', needed by `zdoom'.  Stop.
Looks like you're missing the FMod Ex library (it's a dependency used for sound).
User avatar
Xaser
 
 
Posts: 10772
Joined: Sun Jul 20, 2003 12:15 pm
Contact:

Re: The official "ZDoom on Linux" thread.

Post by Xaser »

That doesn't help much. FModEx already needs to be there for the process to even get that far.

At any rate, I ran into the same problem and fixed it by using FModEx version 4.26.17 instead. Placing /fmodapi2617 in trunk allowed CMake to autodetect FModEx so you can skip the "-DFMOD_LIBRARY=" part when running CMake.

Granted, I'm new to the compiling business myself, but that seemed to work. Can't say I know why. :P
User avatar
Cleveland Rock
Posts: 26
Joined: Wed Oct 25, 2006 6:36 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: Cleveland
Contact:

Re: The official "ZDoom on Linux" thread.

Post by Cleveland Rock »

Another Ubuntu 9.10 compiling nub needs help.

Code: Select all

/home/clevelandrock/trunk/src/sound/fmodsound.cpp:170: error: ‘FMOD_OUTPUTTYPE_SOUNDMANAGER’ was not declared in this scope
/home/clevelandrock/trunk/src/sound/fmodsound.cpp:174: error: too many initializers for ‘const FEnumList’
Also, I heard GZDoom doesn't compile on Linux. Is this true?
User avatar
Hirogen2
Posts: 2033
Joined: Sat Jul 19, 2003 6:15 am
Graphics Processor: Intel with Vulkan/Metal Support
Location: Central Germany
Contact:

Re: The official "ZDoom on Linux" thread.

Post by Hirogen2 »

Some commits don't. But in general it does compile.
User avatar
randi
Site Admin
Posts: 7746
Joined: Wed Jul 09, 2003 10:30 pm
Contact:

Re: The official "ZDoom on Linux" thread.

Post by randi »

Cleveland Rock wrote:‘FMOD_OUTPUTTYPE_SOUNDMANAGER’ was not declared in this scope
What version of FMOD are you using?
User avatar
Cleveland Rock
Posts: 26
Joined: Wed Oct 25, 2006 6:36 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: Cleveland
Contact:

Re: The official "ZDoom on Linux" thread.

Post by Cleveland Rock »

randy wrote:What version of FMOD are you using?
4.30.00
User avatar
randi
Site Admin
Posts: 7746
Joined: Wed Jul 09, 2003 10:30 pm
Contact:

Re: The official "ZDoom on Linux" thread.

Post by randi »

Go back to something older, preferably 4.26.xx. I wasn't even aware they had gone to 4.30 now.
User avatar
Cleveland Rock
Posts: 26
Joined: Wed Oct 25, 2006 6:36 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: Cleveland
Contact:

Re: The official "ZDoom on Linux" thread.

Post by Cleveland Rock »

Thanks. 4.26.20 worked.

Edit: MIDI music does not work.
Edward-san
Posts: 1774
Joined: Sat Oct 17, 2009 9:40 am

Re: The official "ZDoom on Linux" thread.

Post by Edward-san »

Hi, it's the first time I've compiled zdoom svn revision 2376 on Ubuntu 10.04, and I've found a lot of errors during compilation (I've followed the instructions at the wiki page), I'm new to linux:
errors.txt
(10.22 KiB) Downloaded 69 times
compiling.txt
(65.18 KiB) Downloaded 61 times
[edit]added some more informations[/edit]
User avatar
Chris
Posts: 2940
Joined: Thu Jul 17, 2003 12:07 am
Graphics Processor: ATI/AMD with Vulkan/Metal Support

Re: The official "ZDoom on Linux" thread.

Post by Chris »

errors != warnings. It looks like it built fine.
Edward-san
Posts: 1774
Joined: Sat Oct 17, 2009 9:40 am

Re: The official "ZDoom on Linux" thread.

Post by Edward-san »

Indeed, the program works fine. I was impressed by those excessive lines of warnings. Are they important?
User avatar
Cleveland Rock
Posts: 26
Joined: Wed Oct 25, 2006 6:36 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: Cleveland
Contact:

Re: The official "ZDoom on Linux" thread.

Post by Cleveland Rock »

Does anybody know where timidity.cfg is on Linux? I need to edit it for MIDI music to work, apparently.

Also, I keep crashing with this error (on GZDoom r828) just seconds into playing the game:

Code: Select all

*** Fatal Error ***
Address not mapped to object (signal 11)
Address: (nil)

System: Linux Centurion 2.6.32-23-generic #37-Ubuntu SMP Fri Jun 11 07:54:58 UTC 2010 i686 GNU/Linux
GCC version: 4.4.3
Blzut3
 
 
Posts: 3144
Joined: Wed Nov 24, 2004 12:59 pm
Graphics Processor: ATI/AMD with Vulkan/Metal Support
Contact:

Re: The official "ZDoom on Linux" thread.

Post by Blzut3 »

Under Kubuntu at least it is /etc/timidity/timidity.cfg.
User avatar
Cleveland Rock
Posts: 26
Joined: Wed Oct 25, 2006 6:36 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: Cleveland
Contact:

Re: The official "ZDoom on Linux" thread.

Post by Cleveland Rock »

Thank you, Blzut3. That was indeed where timidity.cfg was located.

If anybody can decode that crash, that would be swell. I figured out that it occurs once a monster sees me. If I play with the "notarget" cheat on and don't shoot any monsters, it doesn't crash.

Edit: Never mind. I made the same stupid mistake again (using a newer version of FMOD).
Post Reply

Return to “Tutorials”