Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem with GSdx compiling pcsx2-1.0.0-r5350-sources.tar.bz2 in mageia 2
#1
Hi all,
I'm compiling pcsx2-1.0.0-r5350-sources.tar.bz2 in Mageia 2

Quote:%__cmake -DSPARSEHASH_INCLUDE_DIR=3rdparty/google/sparsehash \
-DCFLAGS="-O2 -march=native" \
-DPACKAGE_MODE=TRUE \
-DCMAKE_INSTALL_PREFIX=/usr \
-DPLUGIN_DIR=%{_libdir}/%{name} \
-DGAMEINDEX_DIR=%{_datadir}/%{name} \
-DCMAKE_BUILD_TYPE=Release
%make

gcc-c++ 4.6.3
libglew-devel 1.7.0

And I get this error with GSdx
Quote:[ 22%] Building CXX object plugins/GSdx/CMakeFiles/GSdx-static.dir/GSDeviceSDL.cpp.o
/home/gonk/rpm/BUILD/pcsx2-1.0.0-r5350-sources/plugins/GSdx/GSDeviceOGL.cpp: En el destructor ‘virtual GSDeviceOGL::~GSDeviceOGL()’:
/home/gonk/rpm/BUILD/pcsx2-1.0.0-r5350-sources/plugins/GSdx/GSDeviceOGL.cpp:92:41: error: ‘glDeleteProgramPipelines’ no se declaró en este ámbito
/home/gonk/rpm/BUILD/pcsx2-1.0.0-r5350-sources/plugins/GSdx/GSDeviceOGL.cpp: En la función miembro ‘virtual bool GSDeviceOGL::Create(GSWnd*)’:
/home/gonk/rpm/BUILD/pcsx2-1.0.0-r5350-sources/plugins/GSdx/GSDeviceOGL.cpp:201:11: error: ‘GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB’ no se declaró en este ámbito
/home/gonk/rpm/BUILD/pcsx2-1.0.0-r5350-sources/plugins/GSdx/GSDeviceOGL.cpp:208:38: error: ‘glGenProgramPipelines’ no se declaró en este ámbito
/home/gonk/rpm/BUILD/pcsx2-1.0.0-r5350-sources/plugins/GSdx/GSDeviceOGL.cpp:209:34: error: ‘glBindProgramPipeline’ no se declaró en este ámbito
/home/gonk/rpm/BUILD/pcsx2-1.0.0-r5350-sources/plugins/GSdx/GSDeviceOGL.cpp: En la función miembro ‘void GSDeviceOGL::VSSetShader(GLuint)’:
/home/gonk/rpm/BUILD/pcsx2-1.0.0-r5350-sources/plugins/GSdx/GSDeviceOGL.cpp:1083:34: error: ‘GL_VERTEX_SHADER_BIT’ no se declaró en este ámbito
/home/gonk/rpm/BUILD/pcsx2-1.0.0-r5350-sources/plugins/GSdx/GSDeviceOGL.cpp:1083:58: error: ‘glUseProgramStages’ no se declaró en este ámbito
/home/gonk/rpm/BUILD/pcsx2-1.0.0-r5350-sources/plugins/GSdx/GSDeviceOGL.cpp: En la función miembro ‘void GSDeviceOGL::GSSetShader(GLuint)’:
/home/gonk/rpm/BUILD/pcsx2-1.0.0-r5350-sources/plugins/GSdx/GSDeviceOGL.cpp:1092:34: error: ‘GL_GEOMETRY_SHADER_BIT’ no se declaró en este ámbito
/home/gonk/rpm/BUILD/pcsx2-1.0.0-r5350-sources/plugins/GSdx/GSDeviceOGL.cpp:1092:60: error: ‘glUseProgramStages’ no se declaró en este ámbito
/home/gonk/rpm/BUILD/pcsx2-1.0.0-r5350-sources/plugins/GSdx/GSDeviceOGL.cpp: En la función miembro ‘void GSDeviceOGL:TongueSSetShader(GLuint)’:
/home/gonk/rpm/BUILD/pcsx2-1.0.0-r5350-sources/plugins/GSdx/GSDeviceOGL.cpp:1133:34: error: ‘GL_FRAGMENT_SHADER_BIT’ no se declaró en este ámbito
/home/gonk/rpm/BUILD/pcsx2-1.0.0-r5350-sources/plugins/GSdx/GSDeviceOGL.cpp:1133:60: error: ‘glUseProgramStages’ no se declaró en este ámbito
/home/gonk/rpm/BUILD/pcsx2-1.0.0-r5350-sources/plugins/GSdx/GSDeviceOGL.cpp: En la función miembro ‘GLuint GSDeviceOGL::glCreateShaderProgramv_AMD_BUG_WORKAROUND(GLenum, GLsizei, const char**)’:
/home/gonk/rpm/BUILD/pcsx2-1.0.0-r5350-sources/plugins/GSdx/GSDeviceOGL.cpp:1254:33: error: ‘GL_PROGRAM_SEPARABLE’ no se declaró en este ámbito
/home/gonk/rpm/BUILD/pcsx2-1.0.0-r5350-sources/plugins/GSdx/GSDeviceOGL.cpp:1254:62: error: ‘glProgramParameteri’ no se declaró en este ámbito
/home/gonk/rpm/BUILD/pcsx2-1.0.0-r5350-sources/plugins/GSdx/GSDeviceOGL.cpp: En la función miembro ‘void GSDeviceOGL::CheckDebugLog()’:
/home/gonk/rpm/BUILD/pcsx2-1.0.0-r5350-sources/plugins/GSdx/GSDeviceOGL.cpp:1391:122: error: ‘glGetDebugMessageLogARB’ no se declaró en este ámbito
/home/gonk/rpm/BUILD/pcsx2-1.0.0-r5350-sources/plugins/GSdx/GSDeviceOGL.cpp: En la función miembro static ‘static void GSDeviceOGL:LaughebugOutputToFile(unsigned int, unsigned int, unsigned int, unsigned int, const char*)’:
/home/gonk/rpm/BUILD/pcsx2-1.0.0-r5350-sources/plugins/GSdx/GSDeviceOGL.cpp:1417:13: error: ‘GL_DEBUG_TYPE_ERROR_ARB’ no se declaró en este ámbito
/home/gonk/rpm/BUILD/pcsx2-1.0.0-r5350-sources/plugins/GSdx/GSDeviceOGL.cpp:1419:18: error: ‘GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_ARB’ no se declaró en este ámbito
/home/gonk/rpm/BUILD/pcsx2-1.0.0-r5350-sources/plugins/GSdx/GSDeviceOGL.cpp:1421:18: error: ‘GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_ARB’ no se declaró en este ámbito
/home/gonk/rpm/BUILD/pcsx2-1.0.0-r5350-sources/plugins/GSdx/GSDeviceOGL.cpp:1423:18: error: ‘GL_DEBUG_TYPE_PORTABILITY_ARB’ no se declaró en este ámbito
/home/gonk/rpm/BUILD/pcsx2-1.0.0-r5350-sources/plugins/GSdx/GSDeviceOGL.cpp:1425:18: error: ‘GL_DEBUG_TYPE_PERFORMANCE_ARB’ no se declaró en este ámbito
/home/gonk/rpm/BUILD/pcsx2-1.0.0-r5350-sources/plugins/GSdx/GSDeviceOGL.cpp:1427:18: error: ‘GL_DEBUG_TYPE_OTHER_ARB’ no se declaró en este ámbito
/home/gonk/rpm/BUILD/pcsx2-1.0.0-r5350-sources/plugins/GSdx/GSDeviceOGL.cpp:1432:17: error: ‘GL_DEBUG_SEVERITY_HIGH_ARB’ no se declaró en este ámbito
/home/gonk/rpm/BUILD/pcsx2-1.0.0-r5350-sources/plugins/GSdx/GSDeviceOGL.cpp:1436:22: error: ‘GL_DEBUG_SEVERITY_MEDIUM_ARB’ no se declaró en este ámbito
/home/gonk/rpm/BUILD/pcsx2-1.0.0-r5350-sources/plugins/GSdx/GSDeviceOGL.cpp:1438:22: error: ‘GL_DEBUG_SEVERITY_LOW_ARB’ no se declaró en este ámbito
make[2]: *** [plugins/GSdx/CMakeFiles/GSdx-static.dir/GSDeviceOGL.cpp.o] Error 1
make[2]: *** Se espera a que terminen otras tareas....
make[1]: *** [plugins/GSdx/CMakeFiles/GSdx-static.dir/all] Error 2
make: *** [all] Error 2



Thanks

Cheers
Reply

Sponsored links

#2
Is your distro 32 or 64 bit. If your distro is 64 bit (or has no multiarch ability) you will need 32 bit dependencies. There are a whole bunch of dependencies to address before it will compile. Plus, it is better to use the SVN version as it is much improved with many bugfixes. See the Google Code website for more info.

http://code.google.com/p/pcsx2/

svn checkout http://pcsx2.googlecode.com/svn/trunk/ pcsx2-read-only

On a side note, I see you are trying to compile using many different flags. Perhaps it is easier to download the SVN source, cd to the pcsx-read-only directory, and do - cmake CMakeLists.txt -DCMAKE_BUILD_TYPE=Release -.
Simpler works better sometimes.
OS: Linux Mint 17.2 64 bit (occasional Antergos/Arch user)
(I am no longer a Windows user)
CPU: Intel Pentium G3258
GPU: Nvidia GTX 650 Ti



Reply
#3
System is 32 bits.
With last sources from svn , don't pass cmake
Quote:bash-4.2$ cmake CMakeLists.txt
-- Enable the stripping by default in Release build !!!
-- Enable the building of po files by default in Release build !!!
-- Could NOT find AIO (missing: AIO_LIBRARIES AIO_INCLUDE_DIR)
-- Could NOT find SparseHash_new (missing: SPARSEHASE_NEW_INCLUDE_DIR)
-- Skip build of pcsx2 core: miss some dependencies
-- check these libraries -> wxWidgets (>=2.8.10), gtk2 (>=2.16), zlib (>=1.2.4), pcsx2 common libs
-- Don't build zerospu2. It is super-seeded by spu2x
-- Configuring done
-- Generating done
-- Build files have been written to: /home/gonk/rpm/SPECS/pcsx2-read-only
I have
wxWidgets 2.8.12
gtk2 2.24.10
zlib 1.2.6

Thanks
Reply
#4
You don't need Sparsehas but you do need libAIO (or whatever it is called in your package management system). Plus, make sure you have dev- versions of libs also, if they apply.
OS: Linux Mint 17.2 64 bit (occasional Antergos/Arch user)
(I am no longer a Windows user)
CPU: Intel Pentium G3258
GPU: Nvidia GTX 650 Ti



Reply
#5
Yes, -devel version of this libs are installed. Now libaio-devel too.
But I think I need -DSPARSEHASH_INCLUDE_DIR=3rdparty/google/sparsehash
because otherwise don't create pcsx2 executable, just pcsx2_GSReplayLoader

Quote: cmake CMakeLists.txt -DSPARSEHASH_INCLUDE_DIR=3rdparty/google/sparsehash -DCMAKE_BUILD_TYPE=Release

With a litle modification over CMakeLists.txt adding
Quote:${PROJECT_SOURCE_DIR}/3rdparty

Because it don't found HashMap.h
Quote:[ 7%] Building CXX object common/src/Utilities/CMakeFiles/Utilities.dir/HashTools.cpp.o
In file included from /home/gonk/rpm/SPECS/pcsx2-read-only/common/src/Utilities/HashTools.cpp:17:0:
/home/gonk/rpm/SPECS/pcsx2-read-only/common/include/Utilities/HashMap.h:25:32: error fatal: google/type_traits.h: No such file or directory

After this litle modification, I get the same error in GSdx

Quote:[ 50%] Building CXX object plugins/GSdx/CMakeFiles/GSdx-0.1.16.dir/GSDeviceOGL.cpp.o
/home/gonk/rpm/SPECS/pcsx2-read-only/plugins/GSdx/GSDeviceOGL.cpp: In destructor 'virtual GSDeviceOGL::~GSDeviceOGL()':
/home/gonk/rpm/SPECS/pcsx2-read-only/plugins/GSdx/GSDeviceOGL.cpp:91:41: error: 'glDeleteProgramPipelines' was not declared in this scope
/home/gonk/rpm/SPECS/pcsx2-read-only/plugins/GSdx/GSDeviceOGL.cpp: In member function 'virtual bool GSDeviceOGL::Create(GSWnd*)':
/home/gonk/rpm/SPECS/pcsx2-read-only/plugins/GSdx/GSDeviceOGL.cpp:211:38: error: 'glGenProgramPipelines' was not declared in this scope
/home/gonk/rpm/SPECS/pcsx2-read-only/plugins/GSdx/GSDeviceOGL.cpp:212:34: error: 'glBindProgramPipeline' was not declared in this scope
/home/gonk/rpm/SPECS/pcsx2-read-only/plugins/GSdx/GSDeviceOGL.cpp: In member function 'void GSDeviceOGL::VSSetShader(GLuint)':
/home/gonk/rpm/SPECS/pcsx2-read-only/plugins/GSdx/GSDeviceOGL.cpp:1088:34: error: 'GL_VERTEX_SHADER_BIT' was not declared in this scope
/home/gonk/rpm/SPECS/pcsx2-read-only/plugins/GSdx/GSDeviceOGL.cpp:1088:58: error: 'glUseProgramStages' was not declared in this scope
/home/gonk/rpm/SPECS/pcsx2-read-only/plugins/GSdx/GSDeviceOGL.cpp: In member function 'void GSDeviceOGL::GSSetShader(GLuint)':
/home/gonk/rpm/SPECS/pcsx2-read-only/plugins/GSdx/GSDeviceOGL.cpp:1097:34: error: 'GL_GEOMETRY_SHADER_BIT' was not declared in this scope
/home/gonk/rpm/SPECS/pcsx2-read-only/plugins/GSdx/GSDeviceOGL.cpp:1097:60: error: 'glUseProgramStages' was not declared in this scope
/home/gonk/rpm/SPECS/pcsx2-read-only/plugins/GSdx/GSDeviceOGL.cpp: In member function 'void GSDeviceOGL:TongueSSetShader(GLuint)':
/home/gonk/rpm/SPECS/pcsx2-read-only/plugins/GSdx/GSDeviceOGL.cpp:1138:34: error: 'GL_FRAGMENT_SHADER_BIT' was not declared in this scope
/home/gonk/rpm/SPECS/pcsx2-read-only/plugins/GSdx/GSDeviceOGL.cpp:1138:60: error: 'glUseProgramStages' was not declared in this scope
/home/gonk/rpm/SPECS/pcsx2-read-only/plugins/GSdx/GSDeviceOGL.cpp: In member function 'GLuint GSDeviceOGL::glCreateShaderProgramv_AMD_BUG_WORKAROUND(GLenum, GLsizei, const char**)':
/home/gonk/rpm/SPECS/pcsx2-read-only/plugins/GSdx/GSDeviceOGL.cpp:1259:33: error: 'GL_PROGRAM_SEPARABLE' was not declared in this scope
/home/gonk/rpm/SPECS/pcsx2-read-only/plugins/GSdx/GSDeviceOGL.cpp:1259:62: error: 'glProgramParameteri' was not declared in this scope
/home/gonk/rpm/SPECS/pcsx2-read-only/plugins/GSdx/GSDeviceOGL.cpp: In member function 'void GSDeviceOGL::CompileShaderFromSource(const string&, const string&, GLenum, GLuint*, const string&)':
/home/gonk/rpm/SPECS/pcsx2-read-only/plugins/GSdx/GSDeviceOGL.cpp:1358:58: error: 'glCreateShaderProgramv' was not declared in this scope
/home/gonk/rpm/SPECS/pcsx2-read-only/plugins/GSdx/GSDeviceOGL.cpp: In member function 'void GSDeviceOGL::CheckDebugLog()':
/home/gonk/rpm/SPECS/pcsx2-read-only/plugins/GSdx/GSDeviceOGL.cpp:1408:122: error: 'glGetDebugMessageLogARB' was not declared in this scope
/home/gonk/rpm/SPECS/pcsx2-read-only/plugins/GSdx/GSDeviceOGL.cpp: In static member function 'static void GSDeviceOGL:LaughebugOutputToFile(unsigned int, unsigned int, unsigned int, unsigned int, const char*)':
/home/gonk/rpm/SPECS/pcsx2-read-only/plugins/GSdx/GSDeviceOGL.cpp:1434:13: error: 'GL_DEBUG_TYPE_ERROR_ARB' was not declared in this scope
/home/gonk/rpm/SPECS/pcsx2-read-only/plugins/GSdx/GSDeviceOGL.cpp:1436:18: error: 'GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_ARB' was not declared in this scope
/home/gonk/rpm/SPECS/pcsx2-read-only/plugins/GSdx/GSDeviceOGL.cpp:1438:18: error: 'GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_ARB' was not declared in this scope
/home/gonk/rpm/SPECS/pcsx2-read-only/plugins/GSdx/GSDeviceOGL.cpp:1440:18: error: 'GL_DEBUG_TYPE_PORTABILITY_ARB' was not declared in this scope
/home/gonk/rpm/SPECS/pcsx2-read-only/plugins/GSdx/GSDeviceOGL.cpp:1442:18: error: 'GL_DEBUG_TYPE_PERFORMANCE_ARB' was not declared in this scope
/home/gonk/rpm/SPECS/pcsx2-read-only/plugins/GSdx/GSDeviceOGL.cpp:1444:18: error: 'GL_DEBUG_TYPE_OTHER_ARB' was not declared in this scope
/home/gonk/rpm/SPECS/pcsx2-read-only/plugins/GSdx/GSDeviceOGL.cpp:1449:17: error: 'GL_DEBUG_SEVERITY_HIGH_ARB' was not declared in this scope
/home/gonk/rpm/SPECS/pcsx2-read-only/plugins/GSdx/GSDeviceOGL.cpp:1453:22: error: 'GL_DEBUG_SEVERITY_MEDIUM_ARB' was not declared in this scope
/home/gonk/rpm/SPECS/pcsx2-read-only/plugins/GSdx/GSDeviceOGL.cpp:1455:22: 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



Thanks

Cheers
Reply
#6
Solved.

Installing from repos
sparsehash-devel

And just

Quote:%__cmake -DCMAKE_BUILD_TYPE=Release

Thanks
Reply




Users browsing this thread: 1 Guest(s)