Hello,
When I try to compile PeopsOpenGLGpu 178 I got this:
$ unzip ../PeopsOpenGLGpu178Sources.zip $ cd src $ cd src_plugin $ make gcc -fPIC -c -Wall -m32 -mcpu=pentium -O3 -ffast-math -fomit-frame-pointer gpu.c gcc: warning: ‘-mcpu=’ is deprecated; use ‘-mtune=’ or ‘-march=’ instead In file included from gpu.c:27:0: stdafx.h:59:20: fatal error: gl_ext.h: No such file or directory compilation terminated. make: *** [gpu.o] Error 1
So I try to find the "gl_ext.g" file:
$ find /usr/include -name "gl_ext.h"
But nothing here.
I have this:
$ find /usr/include -name "glext.h"
/usr/include/GL/glext.h
Maybe it can do the job.
So, I edit the Makefile file:
$ gvim Makefile
Then I replace the line:
INCLUDE =
by:
INCLUDE = -I/usr/include/GL
I edit the stdafx.h file:
$ gvim stdafx.h
Then I replace the line:
#include "gl_ext.h"
by:
#include "glext.h"
Finally, I do make:
$ make
But I got this error:
$ make gcc -fPIC -c -Wall -m32 -mcpu=pentium -O3 -ffast-math -fomit-frame-pointer -I/usr/include/GL gpu.c gcc: warning: ‘-mcpu=’ is deprecated; use ‘-mtune=’ or ‘-march=’ instead In file included from gpu.c:39:0: externals.h:258:1: error: unknown type name ‘PFNGLBLENDEQU’ externals.h:259:1: error: unknown type name ‘PFNGLCOLORTABLEEXT’ In file included from /usr/include/X11/extensions/xf86vmode.h:37:0, from gpu.c:709: /usr/include/X11/Xmd.h:143:16: error: two or more data types in declaration specifiers /usr/include/X11/Xmd.h:143:16: error: two or more data types in declaration specifiers gpu.c: In function ‘sysdep_create_display’: gpu.c:873:23: warning: pointer targets in passing argument 6 of ‘XCreateImage’ differ in signedness [-Wpointer-sign] In file included from /usr/include/GL/glx.h:38:0, from stdafx.h:50, from gpu.c:27: /usr/include/X11/Xlib.h:1449:16: note: expected ‘char *’ but argument is of type ‘unsigned char *’ gpu.c: In function ‘SetScanLines’: gpu.c:1191:64: error: ‘COMBINE_EXT’ undeclared (first use in this function) gpu.c:1191:64: note: each undeclared identifier is reported only once for each function it appears in gpu.c: In function ‘BlurBackBuffer’: gpu.c:1289:62: error: ‘COMBINE_EXT’ undeclared (first use in this function) gpu.c: In function ‘UnBlurBackBuffer’: gpu.c:1349:62: error: ‘COMBINE_EXT’ undeclared (first use in this function) make: *** [gpu.o] Error 1
So I don't know how to compile this.
I am on Slackware 14.0.
I am using mesa-8.0.4.
I have an intel embedded graphic card:
$ lspci | grep VGA 00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
I have no problem with other video games (Quake 3 Arena, America's Army 2, Counter-Strike 1.6, ...).
Have you any idea why I can't compile ?
Thank you.
Best regards.
I ran into numerous problems building this package today, but finally got it to build. Getting the GPU package required similar steps adjusting the makefile paths.
The steps I had to take to get it to build:
Rename "GL_EXT.H" to "gl_ext.h" (problem you are running into)
Remove all occurrences of "-m" options in Makefile (to build 64 bit)
Remove the BOOL #define in externals.h, and sub all occurrences of "BOOL" with "bool" in source
Fix the Makefile OBJ path for a shared library from "/usr/X11R6/lib/libXxf86vm.a" to "/usr/lib/x86_64-linux-gnu/libXxf86vm.so", as well as adjust include and library paths for most dependencies.
To biuld the cfg tools, I had to replace GTK_WINDOWS_DIALOG with GTK_WINDOW_TOPLEVEL, it seems the former is deprecated, at least with the version of GTK I compiled with (gtk+-2.0).
The plugins load but cause the game to crash / halt before bios screen exits, likely due to my 'fixes'. I'd love to use the precompiled binaries but the only ones I have found are 32 bit and do not load into pcsxr.