MantisBT - Zandronum
View Issue Details
0001302Zandronum[All Projects] Bugpublic2013-03-15 13:032018-09-30 20:20
skyrimguy 
Torr Samaho 
normalminoralways
closedfixed 
Linux
1.0 
1.11.1 
0001302: Zandronum linux client fails to compile with latest Mesa
While trying to compile the zandronum linux client on Ubuntu 12.10, Fedora 18, Arch Linux or Gentoo, I got the following error:


[ 33%] Building CXX object src/CMakeFiles/zdoom.dir/sdl/hardware.o
In file included from /home/ggg/zandronum_build/zandronum/src/./gl/gl_pch.h:86:0,
                 from /home/ggg/zandronum_build/zandronum/src/sdl/sdlglvideo.h:7,
                 from /home/ggg/zandronum_build/zandronum/src/sdl/hardware.cpp:49:
/home/ggg/zandronum_build/zandronum/src/./gl/r_render/r_render.h:201:2: error: ‘PFNGLMULTITEXCOORD2FPROC’ does not name a type
/home/ggg/zandronum_build/zandronum/src/./gl/r_render/r_render.h:202:2: error: ‘PFNGLMULTITEXCOORD2FVPROC’ does not name a type
make[2]: *** [src/CMakeFiles/zdoom.dir/sdl/hardware.o] Error 1
make[1]: *** [src/CMakeFiles/zdoom.dir/all] Error 2
make: *** [all] Error 2
Compile the zandronum linux client on Ubuntu 12.10, Fedora 18, Arch Linux, Gentoo or any Linux distro that has installed Mesa 9.x
Solution:

Based on this patch (I recommend you to read it):
'https://gitorious.org/vaapi/gstreamer-vaapi/commit/5db2e93d3c930fd8470cfdcd26f514d1cebc59a0/diffs [^]'

I added the following:


#if GL_GLEXT_VERSION >= 85
typedef void (*PFNGLMULTITEXCOORD2FPROC) (GLenum target, GLfloat s, GLfloat t);
typedef void (*PFNGLMULTITEXCOORD2FVPROC) (GLenum target, const GLfloat *v);
#endif


to:
zandronum/src/gl/r_render/r_render.h

and the problem is fixed.

Here is the full logs and the patched r_render.h:
No tags attached.
zip logs_&_r_render.zip (70,080) 2013-03-15 13:03
/tracker/file_download.php?file_id=950&type=bug
Issue History
2013-03-15 13:03skyrimguyNew Issue
2013-03-15 13:03skyrimguyFile Added: logs_&_r_render.zip
2013-03-15 15:43DuskNote Added: 0006131
2013-03-15 15:43DuskStatusnew => confirmed
2013-03-15 15:43DuskNote Edited: 0006131bug_revision_view_page.php?bugnote_id=6131#r3382
2013-03-17 10:54Edward-sanNote Added: 0006134
2013-05-01 20:36DuskTarget Version => 1.1
2013-05-05 19:25Torr SamahoNote Added: 0006315
2013-05-05 19:26Torr SamahoAssigned To => Torr Samaho
2013-05-05 19:26Torr SamahoStatusconfirmed => needs testing
2013-05-05 19:50DuskStatusneeds testing => resolved
2013-05-05 19:50DuskFixed in Version => 1.1
2013-05-05 19:50DuskResolutionopen => fixed
2018-09-30 20:20Blzut3Statusresolved => closed

Notes
(0006131)
Dusk   
2013-03-15 15:43   
Ah, great. I recently switched to Kubuntu and ran into this very issue. I can confirm that the fix does resolve the problem.

(0006134)
Edward-san   
2013-03-17 10:54   
see gzdoom svn r1499.
(0006315)
Torr Samaho   
2013-05-05 19:25   
Backported.