Having problems compiling PCSX2 on RHEL 6.2
#1
I have all the dependencies set, compiling starts fine but soon I get this errors

Quote:[ 51%] Building CXX object plugins/GSdx/CMakeFiles/GSdx-0.1.16.dir/GS.cpp.o
In file included from /home/user/bin/pcsx2_5293/plugins/GSdx/GSUtil.h:24,
from /home/user/bin/pcsx2_5293/plugins/GSdx/GS.cpp:24:
/home/user/bin/pcsx2_5293/plugins/GSdx/GS.h: In member function ‘bool GIFRegTEX0::IsRepeating()’:
/home/user/bin/pcsx2_5293/plugins/GSdx/GS.h:810: warning: comparison between signed and unsigned integer expressions
/home/user/bin/pcsx2_5293/plugins/GSdx/GS.cpp: In function ‘void GSReplay(char*, int)’:
/home/user/bin/pcsx2_5293/plugins/GSdx/GS.cpp:1414: error: template argument for ‘template<class _Alloc> class std::allocator’ uses local type ‘GSReplay(char*, int):Tongueacket*’
/home/user/bin/pcsx2_5293/plugins/GSdx/GS.cpp:1414: error: trying to instantiate ‘template<class _Alloc> class std::allocator’
/home/user/bin/pcsx2_5293/plugins/GSdx/GS.cpp:1414: error: template argument 2 is invalid
/home/user/bin/pcsx2_5293/plugins/GSdx/GS.cpp:1414: error: invalid type in declaration before ‘;’ token
/home/user/bin/pcsx2_5293/plugins/GSdx/GS.cpp:1470: error: request for member ‘push_back’ in ‘packets’, which is of non-class type ‘int’
/home/user/bin/pcsx2_5293/plugins/GSdx/GS.cpp:1482: error: request for member ‘begin’ in ‘packets’, which is of non-class type ‘int’
/home/user/bin/pcsx2_5293/plugins/GSdx/GS.cpp:1482: error: unable to deduce ‘auto’ from ‘<expression error>’
/home/user/bin/pcsx2_5293/plugins/GSdx/GS.cpp:1482: error: request for member ‘end’ in ‘packets’, which is of non-class type ‘int’
/home/user/bin/pcsx2_5293/plugins/GSdx/GS.cpp:1531: error: request for member ‘begin’ in ‘packets’, which is of non-class type ‘int’
/home/user/bin/pcsx2_5293/plugins/GSdx/GS.cpp:1531: error: unable to deduce ‘auto’ from ‘<expression error>’
/home/user/bin/pcsx2_5293/plugins/GSdx/GS.cpp:1531: error: request for member ‘end’ in ‘packets’, which is of non-class type ‘int’
/home/user/bin/pcsx2_5293/plugins/GSdx/GS.cpp:1536: error: request for member ‘clear’ in ‘packets’, which is of non-class type ‘int’
/home/user/bin/pcsx2_5293/plugins/GSdx/GS.cpp:1408: warning: unused variable ‘start’
/home/user/bin/pcsx2_5293/plugins/GSdx/GS.cpp: At global scope:
/home/user/bin/pcsx2_5293/plugins/GSdx/GS.cpp:69: warning: ‘s_isgsopen2’ defined but not used
make[2]: *** [plugins/GSdx/CMakeFiles/GSdx-0.1.16.dir/GS.cpp.o] Error 1
make[1]: *** [plugins/GSdx/CMakeFiles/GSdx-0.1.16.dir/all] Error 2
make: *** [all] Error 2

Not a programmer so not sure what's the problem here, can anyone help?
This is build 5293, but I was getting the same error with previous builds aswell.
Reply

Sponsored links

#2
which version of gcc do you have?
Reply
#3
(06-14-2012, 08:46 AM)gregory Wrote: which version of gcc do you have?

4.4.6-3
Reply
#4
Hm, so what's the verdict on this, do I need newer version of gcc? Which is not really an option for my system, but at least I'll know what's wrong.

I edited part out of GS.cpp that was causing errors, but soon I get errors while building GSDeviceOGL.cpp.o, again don't know whether they're gcc version related or something else.

Quote:[ 53%] Building CXX object plugins/GSdx/CMakeFiles/GSdx-0.1.16.dir/GSDeviceOGL.cpp.o
In file included from /home/user/bin/pcsx/plugins/GSdx/GSVertex.h:24,
from /home/user/bin/pcsx/plugins/GSdx/GSDevice.h:26,
from /home/user/bin/pcsx/plugins/GSdx/GSDeviceOGL.h:25,
from /home/user/bin/pcsx/plugins/GSdx/GSDeviceOGL.cpp:22:
/home/user/bin/pcsx/plugins/GSdx/GS.h: In member function ‘bool GIFRegTEX0::IsRepeating()’:
/home/user/bin/pcsx/plugins/GSdx/GS.h:810: warning: comparison between signed and unsigned integer expressions
/home/user/bin/pcsx/plugins/GSdx/GSDeviceOGL.cpp: In destructor ‘virtual GSDeviceOGL::~GSDeviceOGL()’:
/home/user/bin/pcsx/plugins/GSdx/GSDeviceOGL.cpp:92: error: ‘glDeleteProgramPipelines’ was not declared in this scope
/home/user/bin/pcsx/plugins/GSdx/GSDeviceOGL.cpp: In member function ‘virtual bool GSDeviceOGL::Create(GSWnd*)’:
/home/user/bin/pcsx/plugins/GSdx/GSDeviceOGL.cpp:201: error: ‘GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB’ was not declared in this scope
/home/user/bin/pcsx/plugins/GSdx/GSDeviceOGL.cpp:208: error: ‘glGenProgramPipelines’ was not declared in this scope
/home/user/bin/pcsx/plugins/GSdx/GSDeviceOGL.cpp:209: error: ‘glBindProgramPipeline’ was not declared in this scope
/home/user/bin/pcsx/plugins/GSdx/GSDeviceOGL.cpp: In member function ‘void GSDeviceOGL::VSSetShader(GLuint)’:
/home/user/bin/pcsx/plugins/GSdx/GSDeviceOGL.cpp:1083: error: ‘GL_VERTEX_SHADER_BIT’ was not declared in this scope
/home/user/bin/pcsx/plugins/GSdx/GSDeviceOGL.cpp:1083: error: ‘glUseProgramStages’ was not declared in this scope
/home/user/bin/pcsx/plugins/GSdx/GSDeviceOGL.cpp: In member function ‘void GSDeviceOGL::GSSetShader(GLuint)’:
/home/user/bin/pcsx/plugins/GSdx/GSDeviceOGL.cpp:1092: error: ‘GL_GEOMETRY_SHADER_BIT’ was not declared in this scope
/home/user/bin/pcsx/plugins/GSdx/GSDeviceOGL.cpp:1092: error: ‘glUseProgramStages’ was not declared in this scope
/home/user/bin/pcsx/plugins/GSdx/GSDeviceOGL.cpp: In member function ‘void GSDeviceOGL:TongueSSetShader(GLuint)’:
/home/user/bin/pcsx/plugins/GSdx/GSDeviceOGL.cpp:1133: error: ‘GL_FRAGMENT_SHADER_BIT’ was not declared in this scope
/home/user/bin/pcsx/plugins/GSdx/GSDeviceOGL.cpp:1133: error: ‘glUseProgramStages’ was not declared in this scope
/home/user/bin/pcsx/plugins/GSdx/GSDeviceOGL.cpp: In member function ‘GLuint GSDeviceOGL::glCreateShaderProgramv_AMD_BUG_WORKAROUND(GLenum, GLsizei, const char**)’:
/home/user/bin/pcsx/plugins/GSdx/GSDeviceOGL.cpp:1254: error: ‘GL_PROGRAM_SEPARABLE’ was not declared in this scope
/home/user/bin/pcsx/plugins/GSdx/GSDeviceOGL.cpp:1254: error: ‘glProgramParameteri’ was not declared in this scope
/home/user/bin/pcsx/plugins/GSdx/GSDeviceOGL.cpp: In member function ‘void GSDeviceOGL::CheckDebugLog()’:
/home/user/bin/pcsx/plugins/GSdx/GSDeviceOGL.cpp:1391: error: ‘glGetDebugMessageLogARB’ was not declared in this scope
/home/user/bin/pcsx/plugins/GSdx/GSDeviceOGL.cpp: In static member function ‘static void GSDeviceOGL:LaughebugOutputToFile(unsigned int, unsigned int, unsigned int, unsigned int, const char*)’:
/home/user/bin/pcsx/plugins/GSdx/GSDeviceOGL.cpp:1417: error: ‘GL_DEBUG_TYPE_ERROR_ARB’ was not declared in this scope
/home/user/bin/pcsx/plugins/GSdx/GSDeviceOGL.cpp:1419: error: ‘GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_ARB’ was not declared in this scope
/home/user/bin/pcsx/plugins/GSdx/GSDeviceOGL.cpp:1421: error: ‘GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_ARB’ was not declared in this scope
/home/user/bin/pcsx/plugins/GSdx/GSDeviceOGL.cpp:1423: error: ‘GL_DEBUG_TYPE_PORTABILITY_ARB’ was not declared in this scope
/home/user/bin/pcsx/plugins/GSdx/GSDeviceOGL.cpp:1425: error: ‘GL_DEBUG_TYPE_PERFORMANCE_ARB’ was not declared in this scope
/home/user/bin/pcsx/plugins/GSdx/GSDeviceOGL.cpp:1427: error: ‘GL_DEBUG_TYPE_OTHER_ARB’ was not declared in this scope
/home/user/bin/pcsx/plugins/GSdx/GSDeviceOGL.cpp:1432: error: ‘GL_DEBUG_SEVERITY_HIGH_ARB’ was not declared in this scope
/home/user/bin/pcsx/plugins/GSdx/GSDeviceOGL.cpp:1436: error: ‘GL_DEBUG_SEVERITY_MEDIUM_ARB’ was not declared in this scope
/home/user/bin/pcsx/plugins/GSdx/GSDeviceOGL.cpp:1438: error: ‘GL_DEBUG_SEVERITY_LOW_ARB’ was not declared in this scope
make[2]: *** [plugins/GSdx/CMakeFiles/GSdx-0.1.16.dir/GSDeviceOGL.cpp.o] Error 1
make[1]: *** [plugins/GSdx/CMakeFiles/GSdx-0.1.16.dir/all] Error 2
make: *** [all] Error 2
Reply
#5
Well you also need libglew 1.6 (or later) on your system.
Reply
#6
(06-18-2012, 09:06 AM)gregory Wrote: Well you also need libglew 1.6 (or later) on your system.

Yes, thanks, installing libglew 1.7 helped with other error...and well I managed to compile it somehow, OpenGL software mode seems to work fine Biggrin
Reply
#7
Cool :d
Reply




Users browsing this thread: 1 Guest(s)