Posts: 16
Threads: 2
Joined: Mar 2013
Reputation:
0
Location: Spain
04-29-2014, 09:51 PM
(This post was last modified: 05-02-2014, 11:19 PM by vincent.)
# First compilation failure
Code: In file included from plugins/GSdx/stdafx.h:204:0,
from plugins/GSdx/GLLoader.cpp:22:
plugins/GSdx/GLLoader.h:102:10: error: ‘PFNGLBLENDCOLORPROC’ does not name a type
plugins/GSdx/GLLoader.cpp:28:1: error: ‘PFNGLBLENDCOLORPROC’ does not name a type
make[2]: *** [plugins/GSdx/CMakeFiles/GSdx-0.1.16.dir/GLLoader.cpp.o] Error 1
# Second compilation failure
Code: In file included from pcsx2/CDVD/CompressedFileReader.cpp:19:0:
pcsx2/CDVD/zlib_indexed.c: In function ‘int extract(FILE*, access*, off_t, unsigned char*, int, zstate*)’:
pcsx2/CDVD/zlib_indexed.c:464:3: error: jump to label ‘extract_ret’ [-fpermissive]
pcsx2/CDVD/zlib_indexed.c:434:26: error: from here [-fpermissive]
pcsx2/CDVD/zlib_indexed.c:459:9: error: crosses initialization of ‘int isEnd’
pcsx2/CDVD/zlib_indexed.c:464:3: error: jump to label ‘extract_ret’ [-fpermissive]
pcsx2/CDVD/zlib_indexed.c:392:18: error: from here [-fpermissive]
pcsx2/CDVD/zlib_indexed.c:459:9: error: crosses initialization of ‘int isEnd’
make[2]: *** [pcsx2/CMakeFiles/pcsx2.dir/CDVD/CompressedFileReader.cpp.o] Error 1
Sponsored links
Posts: 1.909
Threads: 28
Joined: Jun 2010
Reputation:
75
04-29-2014, 10:05 PM
(This post was last modified: 04-29-2014, 10:10 PM by avih.)
Re #second issue, please try to rename zlib_indexed.c to .h, and at CompressedFileReader.cpp change the #include "zlib_indexed.c" also to .h.
Let me know if it fixes it. Thanks.
And my bad with isEnd. I'll fix it. Strange that msvc doesn't warn about it. To fix it: add to the top of extract: int isEnd = 0, and at the bottom, remove the 'int' part.
Posts: 1.909
Threads: 28
Joined: Jun 2010
Reputation:
75
04-29-2014, 10:35 PM
(This post was last modified: 04-29-2014, 10:37 PM by avih.)
Updated to .h and fixed the isEnd issue. Try to pull again please.
Posts: 16
Threads: 2
Joined: Mar 2013
Reputation:
0
Location: Spain
(04-29-2014, 10:35 PM)avih Wrote: Updated to .h and fixed the isEnd issue. Try to pull again please.
Thanks. I will try it when I arrive at home.
Any clue with the first issue? I can "fix" it by removing the plugins/GSdx directory...
Posts: 6.069
Threads: 68
Joined: May 2010
Reputation:
167
Location: Grenoble, France
Do you have a special mesa version?
Posts: 16
Threads: 2
Joined: Mar 2013
Reputation:
0
Location: Spain
(04-30-2014, 11:13 PM)gregory Wrote: Do you have a special mesa version?
No, I have MesaLib-10.0.4.
There is a similar issue here https://github.com/tpaviot/oce/issues/449
That issue has been fixed, so maybe that solution could also apply for pcsx2. Please have a look at it.
Posts: 6.069
Threads: 68
Joined: May 2010
Reputation:
167
Location: Grenoble, France
Hum what give you this command.
Code: grep -r PFNGLBLENDCOLORPROC /usr/include
Posts: 16
Threads: 2
Joined: Mar 2013
Reputation:
0
Location: Spain
(05-01-2014, 10:37 PM)gregory Wrote: Hum what give you this command.
Code: grep -r PFNGLBLENDCOLORPROC /usr/include
$ grep -r PFNGLBLENDCOLORPROC /usr/include
/usr/include/GL/glew.h:typedef void (GLAPIENTRY * PFNGLBLENDCOLORPROC) (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
/usr/include/GL/glew.h:GLEW_FUN_EXPORT PFNGLBLENDCOLORPROC __glewBlendColor;
/usr/include/SDL/SDL_opengl.h:typedef void (APIENTRYP PFNGLBLENDCOLORPROC) (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
Posts: 6.069
Threads: 68
Joined: May 2010
Reputation:
167
Location: Grenoble, France
There is a bug in your mesa opengl header file. Either you miss one of the header, either a header miss some declaration. I suggest to update your mesa version.
For reference on my system,
/usr/include/SDL2/SDL_opengl.h:typedef void (APIENTRYP PFNGLBLENDCOLORPROC) (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
/usr/include/SDL/SDL_opengl.h:typedef void (APIENTRYP PFNGLBLENDCOLORPROC) (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
/usr/include/GL/glew.h:typedef void (GLAPIENTRY * PFNGLBLENDCOLORPROC) (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
/usr/include/GL/glew.h:GLEW_FUN_EXPORT PFNGLBLENDCOLORPROC __glewBlendColor;
/usr/include/GL/glext.h:typedef void (APIENTRYP PFNGLBLENDCOLORPROC) (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
Posts: 16
Threads: 2
Joined: Mar 2013
Reputation:
0
Location: Spain
05-02-2014, 10:50 AM
(This post was last modified: 05-02-2014, 10:57 AM by vincent.)
(05-02-2014, 09:27 AM)gregory Wrote: There is a bug in your mesa opengl header file. Either you miss one of the header, either a header miss some declaration. I suggest to update your mesa version.
For reference on my system,
/usr/include/SDL2/SDL_opengl.h:typedef void (APIENTRYP PFNGLBLENDCOLORPROC) (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
/usr/include/SDL/SDL_opengl.h:typedef void (APIENTRYP PFNGLBLENDCOLORPROC) (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
/usr/include/GL/glew.h:typedef void (GLAPIENTRY * PFNGLBLENDCOLORPROC) (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
/usr/include/GL/glew.h:GLEW_FUN_EXPORT PFNGLBLENDCOLORPROC __glewBlendColor;
/usr/include/GL/glext.h:typedef void (APIENTRYP PFNGLBLENDCOLORPROC) (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
Yeah, something is missing... This is the result from inside the sources directory:
$ grep -r PFNGLBLENDCOLORPROC .
./include/GL/glext.h:typedef void (APIENTRYP PFNGLBLENDCOLORPROC) (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
|