GZDoom Compilation Fun and Games

GZDoom Screenshot

I’d been having an issue for quite a while when trying to build GZDoom from source where the compiler would bomb out in the OpenGL section, as seen below:

[ 75%] Building CXX object src/CMakeFiles/zdoom.dir/gl/data/gl_vertexbuffer.o
/home/cory/Downloads/Source/GZDoom-1.4.0/src/gl/data/gl_vertexbuffer.cpp: In member function ‘int FVertexBuffer::CreateSubsectorVertices(subsector_t*, const secplane_t&, int)’:
/home/cory/Downloads/Source/GZDoom-1.4.0/src/gl/data/gl_vertexbuffer.cpp:143: warning: comparison between signed and unsigned integer expressions
/home/cory/Downloads/Source/GZDoom-1.4.0/src/gl/data/gl_vertexbuffer.cpp: In member function ‘void FVertexBuffer::MapVBO()’:
/home/cory/Downloads/Source/GZDoom-1.4.0/src/gl/data/gl_vertexbuffer.cpp:263: error: void value not ignored as it ought to be
make[2]: *** [src/CMakeFiles/zdoom.dir/gl/data/gl_vertexbuffer.o] Error 1
make[1]: *** [src/CMakeFiles/zdoom.dir/all] Error 2
make: *** [all] Error 2

Searching for the error didn’t turn up a whole lot of info, but eventually I came across this post on the DRD Team forum that suggested the problem was due to a dodgy glext.h file (in /usr/include/GL/). Sure enough, replacing my version of the file with one downloaded from www.opengl.com, re-ran cmake and it compiled without a problem.

This entry was posted in Uncategorized and tagged , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s