Page 1 of 1

gzdoom git revision 2f893af linux compile error : vid_maxfps and cl_capfps not declared in this scope [FIXED]

Posted: Wed Aug 24, 2016 10:00
by delacroix
Compiling revision 2f893af of git gzdoom gives me the following errors:

[ 31%] Building CXX object src/CMakeFiles/zdoom.dir/oplsynth/fmopl.cpp.o
/home/chris/sources/gzdoom/src/posix/sdl/sdlglvideo.cpp: In member function 'void SDLGLFB::SwapBuffers()':
/home/chris/sources/gzdoom/src/posix/sdl/sdlglvideo.cpp:463:6: error: 'vid_maxfps' was not declared in this scope
if (vid_maxfps && !cl_capfps)
^
/home/chris/sources/gzdoom/src/posix/sdl/sdlglvideo.cpp:463:21: error: 'cl_capfps' was not declared in this scope
if (vid_maxfps && !cl_capfps)
^
[ 31%] Building CXX object src/CMakeFiles/zdoom.dir/oplsynth/mlopl.cpp.o
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
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:751: recipe for target 'src/CMakeFiles/zdoom.dir/all' failed
make[1]: *** [src/CMakeFiles/zdoom.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

I read on the github site that those files were changed recently, so i guess they are easy to fix

Re: gzdoom git revision 2f893af linux compile error : vid_maxfps and cl_capfps not declared in this scope

Posted: Wed Aug 24, 2016 14:46
by _mental_
I can't test at the moment but it should be fixed.

Re: gzdoom git revision 2f893af linux compile error : vid_maxfps and cl_capfps not declared in this scope [FIXED]

Posted: Wed Aug 24, 2016 14:52
by delacroix
Yes, its fixed. Thank you !

Re: gzdoom git revision 2f893af linux compile error : vid_maxfps and cl_capfps not declared in this scope [FIXED]

Posted: Wed Aug 24, 2016 16:52
by dpJudas
Sorry about the Linux compile errors. I added the feature from Windows where I can't compile the Linux version - hope that's alright.