Page 1 of 1

[r215] Can't compile in Linux +FIX

Posted: Tue Nov 04, 2008 1:21
by Agent ME
Compiling fails with this output:
[spoiler]
[ 84%] Building CXX object src/CMakeFiles/zdoom.dir/gl/gl_walls.o
/home/chris/Desktop/gzdoom_svn/src/trunk/src/gl/gl_walls.cpp: In member function ‘void GLWall::DoMidTexture(seg_t*, bool, sector_t*, sector_t*, fixed_t, fixed_t, fixed_t, fixed_t, fixed_t, fixed_t, fixed_t, fixed_t)’:
/home/chris/Desktop/gzdoom_svn/src/trunk/src/gl/gl_walls.cpp:748: error: ‘min’ was not declared in this scope
/home/chris/Desktop/gzdoom_svn/src/trunk/src/gl/gl_walls.cpp:787: error: ‘min’ was not declared in this scope
/home/chris/Desktop/gzdoom_svn/src/trunk/src/gl/gl_walls.cpp:800: error: ‘min’ was not declared in this scope
/home/chris/Desktop/gzdoom_svn/src/trunk/src/gl/gl_walls.cpp:941: error: ‘min’ was not declared in this scope
/home/chris/Desktop/gzdoom_svn/src/trunk/src/gl/gl_walls.cpp: In member function ‘void GLWall::ClipFFloors(seg_t*, F3DFloor*, sector_t*, fixed_t, fixed_t, fixed_t, fixed_t)’:
/home/chris/Desktop/gzdoom_svn/src/trunk/src/gl/gl_walls.cpp:1175: warning: suggest parentheses around arithmetic in operand of |
make[2]: *** [src/CMakeFiles/zdoom.dir/gl/gl_walls.o] Error 1
make[1]: *** [src/CMakeFiles/zdoom.dir/all] Error 2
make: *** [all] Error 2
[/spoiler]

Also, to compile, I had to comment out two lines in src/CMakeLists.txt pointing to the gl/glsl_* files.

Posted: Tue Nov 04, 2008 2:01
by Agent ME
Fixed - the min function wasn't defined in src/gl/gl_pch.h. Also organized a few things better in that file, and the CMakeLists.txt fix is included in the diff attached. (Would just post it, but forum software does torture to tabs and spacing.)

Posted: Tue Nov 04, 2008 8:54
by Graf Zahl
fixed