zdoom2.3.1 is broken on freebsd7.1 running on wine-1.1.18,1

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
Chris
Posts: 2983
Joined: Thu Jul 17, 2003 12:07 am
Graphics Processor: ATI/AMD with Vulkan/Metal Support

Re: zdoom2.3.1 is broken on freebsd7.1 running on wine-1.1.18,1

Post by Chris »

The instructions here: http://zdoom.org/wiki/Compile_ZDoom_on_Linux should work. Just make sure you have the required packages from whatever is used to install them, skip the part about getting FMOD, and extract/apply the OpenAL patch after getting the SVN sources.
User avatar
morbidtwatt
Posts: 136
Joined: Fri Aug 15, 2003 7:56 am
Location: frederick md
Contact:

Re: zdoom2.3.1 is broken on freebsd7.1 running on wine-1.1.18,1

Post by morbidtwatt »

ah i got a problem

# cmake -DCMAKE_BUILD_TYPE=Release ..
-- Using system zlib
-- Using system jpeg library
-- /usr/include
-- /home/morbidtwatt/Desktop/zdoomsrc/trunk/bzip2
-- /home/morbidtwatt/Desktop/zdoomsrc/trunk/lzma/C
-- checking for modules 'alure;openal'
-- found alure, version 1.0.72
-- found openal, version 0.0.8
-- Could not find FMOD include files
-- Selected assembler: /usr/local/bin/nasm
CMake Error: The following variables are used in this project, but they ar
e set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMak
e files:
FMOD_INCLUDE_DIR
used as include directory in directory /home/morbidtwatt/Desktop/zdooms
rc/trunk/src
used as include directory in directory /home/morbidtwatt/Desktop/zdooms
rc/trunk/output_sdl
FMOD_LIBRARY
linked by target "zdoom" in directory /home/morbidtwatt/Desktop/zdooms
rc/trunk/src

-- Configuring incomplete, errors occurred!
User avatar
morbidtwatt
Posts: 136
Joined: Fri Aug 15, 2003 7:56 am
Location: frederick md
Contact:

Re: zdoom2.3.1 is broken on freebsd7.1 running on wine-1.1.18,1

Post by morbidtwatt »

i reapplied the patch agin and then ran cmake, but this time i get this.

# cmake -DCMAKE_BUILD_TYPE=Release ..
-- Configuring done
-- Generating done
-- Build files have been written to: /home/morbidtwatt/Desktop/zdoomsrc/trunk

now i went to my trunk directory skipping that one step show to where fmod is and i proceed with make




# make
[100%] Building C object CMakeFiles/output_sdl.dir/output_sdl.o
/home/morbidtwatt/Desktop/zdoomsrc/output_sdl.c:2:18: error: fmod.h: No such file or directory
/home/morbidtwatt/Desktop/zdoomsrc/output_sdl.c:3:25: error: fmod_output.h: No such file or directory
/home/morbidtwatt/Desktop/zdoomsrc/output_sdl.c:4:17: error: SDL.h: No such file or directory
/home/morbidtwatt/Desktop/zdoomsrc/output_sdl.c:17: error: expected specifier-qualifier-list before 'FMOD
_OUTPUT_STATE'
/home/morbidtwatt/Desktop/zdoomsrc/output_sdl.c:23: error: expected '=', ',', ';', 'asm' or '__attribute_
_' before 'Format_SDLtoFMOD'
/home/morbidtwatt/Desktop/zdoomsrc/output_sdl.c:32: error: expected '=', ',', ';', 'asm' or '__attribute_
_' before 'Format_FMODtoSDL'
/home/morbidtwatt/Desktop/zdoomsrc/output_sdl.c:42: error: expected '=', ',', ';', 'asm' or '__attribute_
_' before 'AudioCallback'
/home/morbidtwatt/Desktop/zdoomsrc/output_sdl.c:66: error: expected '=', ',', ';', 'asm' or '__attribute_
_' before 'F_CALLBACK'
/home/morbidtwatt/Desktop/zdoomsrc/output_sdl.c:76: error: expected '=', ',', ';', 'asm' or '__attribute_
_' before 'F_CALLBACK'
/home/morbidtwatt/Desktop/zdoomsrc/output_sdl.c:86: error: expected '=', ',', ';', 'asm' or '__attribute_
_' before 'F_CALLBACK'
/home/morbidtwatt/Desktop/zdoomsrc/output_sdl.c:96: error: expected '=', ',', ';', 'asm' or '__attribute_
_' before 'F_CALLBACK'
/home/morbidtwatt/Desktop/zdoomsrc/output_sdl.c:164: error: expected '=', ',', ';', 'asm' or '__attribute
__' before 'F_CALLBACK'
/home/morbidtwatt/Desktop/zdoomsrc/output_sdl.c:178: error: expected '=', ',', ';', 'asm' or '__attribute
__' before 'F_CALLBACK'
/home/morbidtwatt/Desktop/zdoomsrc/output_sdl.c:183: error: expected '=', ',', ';', 'asm' or '__attribute
__' before 'F_CALLBACK'
/home/morbidtwatt/Desktop/zdoomsrc/output_sdl.c:195: error: expected '=', ',', ';', 'asm' or '__attribute
__' before 'Desc'
/home/morbidtwatt/Desktop/zdoomsrc/output_sdl.c:212: error: expected '=', ',', ';', 'asm' or '__attribute
__' before 'F_DLLEXPORT'
*** Error code 1

Stop in /usr/home/morbidtwatt/Desktop/zdoomsrc/trunk.
*** Error code 1

Stop in /usr/home/morbidtwatt/Desktop/zdoomsrc/trunk.
*** Error code 1

Stop in /usr/home/morbidtwatt/Desktop/zdoomsrc/trunk.

any ideas why this patch isnt working?
User avatar
Chris
Posts: 2983
Joined: Thu Jul 17, 2003 12:07 am
Graphics Processor: ATI/AMD with Vulkan/Metal Support

Re: zdoom2.3.1 is broken on freebsd7.1 running on wine-1.1.18,1

Post by Chris »

morbidtwatt wrote:any ideas why this patch isnt working?
The patch doesn't have the changes needed for the SDL output plugin. Apply the patch in this zip as well:
Attachments
oal-patch.zip
(551 Bytes) Downloaded 30 times
Lemonzest
Posts: 327
Joined: Tue Oct 12, 2004 3:19 pm
Location: On your boards, trolling your threads!!!

Re: zdoom2.3.1 is broken on freebsd7.1 running on wine-1.1.18,1

Post by Lemonzest »

When running 2.3.x on Wine under Linux i had to change vid_forceddraw to 1 or i'd get a messed up and slow screen.
User avatar
morbidtwatt
Posts: 136
Joined: Fri Aug 15, 2003 7:56 am
Location: frederick md
Contact:

Re: zdoom2.3.1 is broken on freebsd7.1 running on wine-1.1.18,1

Post by morbidtwatt »

when i applied the patch this is what i get when i go to make.

# cmake -DCMAKE_BUILD_TYPE=Release ..
-- Configuring done
-- Generating done
-- Build files have been written to: /home/morbidtwatt/Desktop/zdoomsrc/trunk
# make
[100%] Building C object CMakeFiles/output_sdl.dir/output_sdl.o
/home/morbidtwatt/Desktop/zdoomsrc/output_sdl.c:2:18: error: fmod.h: No such file or directory
/home/morbidtwatt/Desktop/zdoomsrc/output_sdl.c:3:25: error: fmod_output.h: No such file or directory
/home/morbidtwatt/Desktop/zdoomsrc/output_sdl.c:4:17: error: SDL.h: No such file or directory
/home/morbidtwatt/Desktop/zdoomsrc/output_sdl.c:17: error: expected specifier-qualifier-list before 'FMOD_OUTPUT_STATE'
/home/morbidtwatt/Desktop/zdoomsrc/output_sdl.c:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Format_SDLtoFMOD'
/home/morbidtwatt/Desktop/zdoomsrc/output_sdl.c:32: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Format_FMODtoSDL'
/home/morbidtwatt/Desktop/zdoomsrc/output_sdl.c:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AudioCallback'
/home/morbidtwatt/Desktop/zdoomsrc/output_sdl.c:66: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'F_CALLBACK'
/home/morbidtwatt/Desktop/zdoomsrc/output_sdl.c:76: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'F_CALLBACK'
/home/morbidtwatt/Desktop/zdoomsrc/output_sdl.c:86: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'F_CALLBACK'
/home/morbidtwatt/Desktop/zdoomsrc/output_sdl.c:96: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'F_CALLBACK'
/home/morbidtwatt/Desktop/zdoomsrc/output_sdl.c:164: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'F_CALLBACK'
/home/morbidtwatt/Desktop/zdoomsrc/output_sdl.c:178: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'F_CALLBACK'
/home/morbidtwatt/Desktop/zdoomsrc/output_sdl.c:183: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'F_CALLBACK'
/home/morbidtwatt/Desktop/zdoomsrc/output_sdl.c:195: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Desc'
/home/morbidtwatt/Desktop/zdoomsrc/output_sdl.c:212: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'F_DLLEXPORT'
*** Error code 1

Stop in /usr/home/morbidtwatt/Desktop/zdoomsrc/trunk.
*** Error code 1

Stop in /usr/home/morbidtwatt/Desktop/zdoomsrc/trunk.
*** Error code 1

Stop in /usr/home/morbidtwatt/Desktop/zdoomsrc/trunk.

any idea what happened?
User avatar
Chris
Posts: 2983
Joined: Thu Jul 17, 2003 12:07 am
Graphics Processor: ATI/AMD with Vulkan/Metal Support

Re: zdoom2.3.1 is broken on freebsd7.1 running on wine-1.1.18,1

Post by Chris »

morbidtwatt wrote:any idea what happened?
Either the patch didn't apply correctly, or the change wasn't picked up. You may have to delete everything in the 'release' directory and rerun cmake.
User avatar
morbidtwatt
Posts: 136
Joined: Fri Aug 15, 2003 7:56 am
Location: frederick md
Contact:

Re: zdoom2.3.1 is broken on freebsd7.1 running on wine-1.1.18,1

Post by morbidtwatt »

im getting the same error after i deleted the release directory and cmake. fmod needs to die!! btw is this an experimental patch you made? and do you know if anyone else gotten zdoom to run native on bsd?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: zdoom2.3.1 is broken on freebsd7.1 running on wine-1.1.18,1

Post by Graf Zahl »

morbidtwatt wrote:mod needs to die!!

Just because you can't manage to get it to work?
User avatar
Chris
Posts: 2983
Joined: Thu Jul 17, 2003 12:07 am
Graphics Processor: ATI/AMD with Vulkan/Metal Support

Re: zdoom2.3.1 is broken on freebsd7.1 running on wine-1.1.18,1

Post by Chris »

morbidtwatt wrote:im getting the same error after i deleted the release directory and cmake. fmod needs to die!! btw is this an experimental patch you made? and do you know if anyone else gotten zdoom to run native on bsd?
I don't know anyone that has it working natively on bsd, but I don't know anyone besides you that's tried. And the error you're getting should not be occurring if the second patch applied correctly, as it shouldn't be attempting to compile output_sdl.c.

Looking at CMake's output, though, it seems it says it's 100%, meaning I think the module it's building is the last thing to do.. ie. zdoom itself is already linked. Is there a zdoom executable in the release dir? If so, you can just run it and forget about trying to get make to work.
User avatar
morbidtwatt
Posts: 136
Joined: Fri Aug 15, 2003 7:56 am
Location: frederick md
Contact:

Re: zdoom2.3.1 is broken on freebsd7.1 running on wine-1.1.18,1

Post by morbidtwatt »

Graf Zahl wrote:
morbidtwatt wrote:mod needs to die!!

Just because you can't manage to get it to work?
Your thinking is to dramatic from the truth, you should perform some hamlet or provide a fix if you know how to replace fmod. What I was hoping this patch would do is reject fmod (killing fmod, fmod needs to die) parts to the code and solely run off openal and alure. If your an experienced coder you might want to give it a look, but if not carry on with your day.
User avatar
Chris
Posts: 2983
Joined: Thu Jul 17, 2003 12:07 am
Graphics Processor: ATI/AMD with Vulkan/Metal Support

Re: zdoom2.3.1 is broken on freebsd7.1 running on wine-1.1.18,1

Post by Chris »

morbidtwatt wrote:What I was hoping this patch would do is reject fmod (killing fmod, fmod needs to die) parts to the code and solely run off openal and alure. If your an experienced coder you might want to give it a look, but if not carry on with your day.
He has, but he's not too thrilled with all the extra DLLs it will need on Windows to work. I can't totally blame him (a lot of DLLs do tend to make the game dir un-navigable), but I also agree.. FMOD should die :P
User avatar
morbidtwatt
Posts: 136
Joined: Fri Aug 15, 2003 7:56 am
Location: frederick md
Contact:

Re: zdoom2.3.1 is broken on freebsd7.1 running on wine-1.1.18,1

Post by morbidtwatt »

Alright here is the latest, I started all over from scratch. First i downloaded the zdoom source code and then extract it to a directory called /zdoomsrc. Inside /zdoomsrc I svn the trunk then I copied both patches chris made and extracted them inside the trunk (/zdoomsrc/trunk/) and ran "patch -p0 < oal-patch.diff". Second, i made the release directory (/zdoomsrc/trunk/release/) then ran this "cmake -DCMAKE_BUILD_TYPE=Release .." inside /zdoomsrc/trunk/release/ which gave me this new error.


# cmake -DCMAKE_BUILD_TYPE=Release ..
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found JPEG: /usr/local/lib/libjpeg.so
-- Found ZLIB: /usr/lib/libz.so
-- Using system zlib
-- Using system jpeg library
-- Looking for strdup
-- Looking for strdup - found
-- Looking for strndup
-- Looking for strndup - not found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of char
-- Check size of char - done
-- Check size of short
-- Check size of short - done
-- Check size of int
-- Check size of int - done
-- Check size of long
-- Check size of long - done
-- /usr/include
-- /home/morbidtwatt/Desktop/zdoomsrc/trunk/bzip2
-- /home/morbidtwatt/Desktop/zdoomsrc/trunk/lzma/C
-- Performing Test HAVE_NO_ARRAY_BOUNDS
-- Performing Test HAVE_NO_ARRAY_BOUNDS - Failed
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- checking for module 'gtk+-2.0'
-- found gtk+-2.0, version 2.14.7
CMake Error at src/CMakeLists.txt:187 (message):
Could not find FMOD include files


CMake Error at src/CMakeLists.txt:206 (message):
Could not find FMOD library


-- Selected assembler: /usr/local/bin/nasm
-- Looking for filelength
-- Looking for filelength - not found
-- Looking for strupr
-- Looking for strupr - not found
-- Looking for stricmp
-- Looking for stricmp - not found
-- Looking for strnicmp
-- Looking for strnicmp - not found
-- Looking for clock_gettime in rt
-- Looking for clock_gettime in rt - found
CMake Error: The following variables are used in this project, but they are set to
NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
FMOD_INCLUDE_DIR
used as include directory in directory /home/morbidtwatt/Desktop/zdoomsrc/trunk/
src
FMOD_LIBRARY
linked by target "zdoom" in directory /home/morbidtwatt/Desktop/zdoomsrc/trunk/
src

-- Configuring incomplete, errors occurred!
#
User avatar
morbidtwatt
Posts: 136
Joined: Fri Aug 15, 2003 7:56 am
Location: frederick md
Contact:

Re: zdoom2.3.1 is broken on freebsd7.1 running on wine-1.1.18,1

Post by morbidtwatt »

the second patch you gave me was i sopose to run some patch command with it like the first one you gave me?
User avatar
Chris
Posts: 2983
Joined: Thu Jul 17, 2003 12:07 am
Graphics Processor: ATI/AMD with Vulkan/Metal Support

Re: zdoom2.3.1 is broken on freebsd7.1 running on wine-1.1.18,1

Post by Chris »

First i downloaded the zdoom source code and then extract it to a directory called /zdoomsrc. Inside /zdoomsrc I svn the trunk
The SVN trunk is the source code. Delete zdoomsrc, and do this:
Download the new patch here: http://forum.zdoom.org/viewtopic.php?p=423670#p423670 and save it to your home dir. Then run:

Code: Select all

cd ~
svn checkout http://mancubus.net/svn/hosted/zdoom/zdoom/trunk zdoomsrc
cd zdoomsrc
unzip ~/oal-patches-1522.zip
patch -p0 < oal-patch.diff
mkdir release
cd release
cmake ..
make
Then you should have a 'zdoom' executable, which you run.
Post Reply

Return to “Closed Bugs [GZDoom]”