Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Breeder

Trouble Compiling GzDOOM on Linux Mint 64

Recommended Posts

Using Mint 64 Sarah Mate Version.

When I follow the guide and begin to compile I end up with this:

[ 31%] Building CXX object src/CMakeFiles/zdoom.dir/posix/sdl/sdlvideo.cpp.o
[ 31%] Building CXX object src/CMakeFiles/zdoom.dir/posix/sdl/sdlglvideo.cpp.o
/home/xd3l/gzdoom_build/gzdoom/src/posix/sdl/sdlglvideo.cpp:32:35: error: expected identifier before ‘false’
IMPLEMENT_ABSTRACT_CLASS(SDLGLFB, false, false, false, false)
^
/home/xd3l/gzdoom_build/gzdoom/src/posix/sdl/sdlglvideo.cpp:32:35: error: expected ‘,’ or ‘...’ before ‘false’
/home/xd3l/gzdoom_build/gzdoom/src/posix/sdl/sdlglvideo.cpp:34:1: error: expected constructor, destructor, or type conversion before ‘struct’
struct MiniModeInfo
^
/home/xd3l/gzdoom_build/gzdoom/src/posix/sdl/sdlglvideo.cpp:65:8: error: ‘MiniModeInfo’ does not name a type
static MiniModeInfo WinModes[] =
^
/home/xd3l/gzdoom_build/gzdoom/src/posix/sdl/sdlglvideo.cpp: In member function ‘virtual bool SDLGLVideo::NextMode(int*, int*, bool*)’:
/home/xd3l/gzdoom_build/gzdoom/src/posix/sdl/sdlglvideo.cpp:156:38: error: ‘WinModes’ was not declared in this scope
if ((unsigned)IteratorMode < sizeof(WinModes)/sizeof(WinModes[0]))
^
src/CMakeFiles/zdoom.dir/build.make:400: recipe for target 'src/CMakeFiles/zdoom.dir/posix/sdl/sdlglvideo.cpp.o' failed
make[2]: *** [src/CMakeFiles/zdoom.dir/posix/sdl/sdlglvideo.cpp.o] Error 1
CMakeFiles/Makefile2:788: recipe for target 'src/CMakeFiles/zdoom.dir/all' failed
make[1]: *** [src/CMakeFiles/zdoom.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

Share this post


Link to post

That file contained a definition error. The change was part of a code submission that apparently never was tested on Linux. Should be fixed now.

Share this post


Link to post
Graf Zahl said:

That file contained a definition error. The change was part of a code submission that apparently never was tested on Linux. Should be fixed now.



I just re-downloaded the source and compiled, but am still getting the error.

Share this post


Link to post

Try changing the line at (src/posix/sdl/sdlglvideo.cpp:32) to:

IMPLEMENT_CLASS(SDLGLFB, true, false)

Do you still get the error?

Share this post


Link to post

I ended up updating my system, doing a reboot then trying again.

Worked like a charm the second time without altering any of the files on my end.

Share this post


Link to post

Just tried it on a fresh Linux install and it still worked!

Thanks for fixing this!!

I notice though on one of my computers that the left mouse button only works sometimes. Yet in everything else, including the Linux Desktop, it responds just fine.

Running Alpha btw.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×