meneky / friking-shark

Automatically exported from code.google.com/p/friking-shark
Other
0 stars 0 forks source link

Won't build on ArchLinux #13

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. check out svn
2. cmake .
3. make -j2

The building fails with this output:

/tmp/friking-shark-read-only/GameGraphics/OpenGLTexture.cpp: In function 
‘bool LoadPngFile(const char*, unsigned int, unsigned int*, unsigned int*, 
unsigned char**)’:
/tmp/friking-shark-read-only/GameGraphics/OpenGLTexture.cpp:128:116: erreur: 
‘png_voidp_NULL’ was not declared in this scope
/tmp/friking-shark-read-only/GameGraphics/OpenGLTexture.cpp:129:25: attention : 
‘png_info_struct::color_type’ is deprecated (declared at 
/usr/include/png.h:669) [-Wdeprecated-declarations]
/tmp/friking-shark-read-only/GameGraphics/OpenGLTexture.cpp:129:25: attention : 
‘png_info_struct::color_type’ is deprecated (declared at 
/usr/include/png.h:669) [-Wdeprecated-declarations]
/tmp/friking-shark-read-only/GameGraphics/OpenGLTexture.cpp:129:70: attention : 
‘png_info_struct::color_type’ is deprecated (declared at 
/usr/include/png.h:669) [-Wdeprecated-declarations]
/tmp/friking-shark-read-only/GameGraphics/OpenGLTexture.cpp:129:70: attention : 
‘png_info_struct::color_type’ is deprecated (declared at 
/usr/include/png.h:669) [-Wdeprecated-declarations]
/tmp/friking-shark-read-only/GameGraphics/OpenGLTexture.cpp:132:23: attention : 
‘png_info_struct::width’ is deprecated (declared at /usr/include/png.h:655) 
[-Wdeprecated-declarations]
/tmp/friking-shark-read-only/GameGraphics/OpenGLTexture.cpp:132:23: attention : 
‘png_info_struct::width’ is deprecated (declared at /usr/include/png.h:655) 
[-Wdeprecated-declarations]
/tmp/friking-shark-read-only/GameGraphics/OpenGLTexture.cpp:133:24: attention : 
‘png_info_struct::height’ is deprecated (declared at 
/usr/include/png.h:656) [-Wdeprecated-declarations]
/tmp/friking-shark-read-only/GameGraphics/OpenGLTexture.cpp:133:24: attention : 
‘png_info_struct::height’ is deprecated (declared at 
/usr/include/png.h:656) [-Wdeprecated-declarations]
/tmp/friking-shark-read-only/GameGraphics/OpenGLTexture.cpp:134:36: attention : 
‘png_info_struct::color_type’ is deprecated (declared at 
/usr/include/png.h:669) [-Wdeprecated-declarations]
/tmp/friking-shark-read-only/GameGraphics/OpenGLTexture.cpp:134:36: attention : 
‘png_info_struct::color_type’ is deprecated (declared at 
/usr/include/png.h:669) [-Wdeprecated-declarations]
/tmp/friking-shark-read-only/GameGraphics/OpenGLTexture.cpp:140:55: attention : 
‘png_info_struct::height’ is deprecated (declared at 
/usr/include/png.h:656) [-Wdeprecated-declarations]

I think ArchLinux might have some new version of a png lib that the game uses.

Original issue reported on code.google.com by come.bernigaud@gmail.com on 11 Nov 2011 at 1:06

GoogleCodeExporter commented 9 years ago
Hi, can you try this:

In OpenGLTexture.cpp, 

Can you replace png_voidp_NULL with NULL ?

and add "#define PNG_NO_PEDANTIC_WARNINGS" like this...

#include "./stdafx.h"
#include <stdint.h>
#include "OpenGLGraphics.h"
#include "OpenGLTexture.h"
#define PNG_SKIP_SETJMP_CHECK
#define PNG_NO_PEDANTIC_WARNINGS
#include <png.h>

If this works, i can commit the change inmediatelly.

Original comment by javierma...@gmail.com on 11 Nov 2011 at 1:34

GoogleCodeExporter commented 9 years ago
Thanks for the report :)

Original comment by javierma...@gmail.com on 11 Nov 2011 at 1:41

GoogleCodeExporter commented 9 years ago
Thanks, it builds!
I got this now (at launch of "GameEngine" in Demo/Bin/Release, is that what I 
should launch?): 
GameEngine: brw_eu.h:187: brw_reg: Assertion `nr < 128' failed.
Abandon

Original comment by come.bernigaud@gmail.com on 11 Nov 2011 at 2:19

GoogleCodeExporter commented 9 years ago
Ok, this is a classical problem with shaders, i have to make something to fix 
this, its an error compiling shaders on low-end cards (most of them Intel).

You can surely fix it by searching for IgnoreShaderSupport in 
Resouces/Scripts/GameGUI.cfg  and settign it to 0.

    System = "GameGUI"
    Class = "Render"
    Name = "Render"
    Data
    {
        IgnoreShaderSupport=0
        PrecompileShaders=0
    }

Sorry :(

Original comment by javierma...@gmail.com on 11 Nov 2011 at 2:35

GoogleCodeExporter commented 9 years ago
Sorry i mean, changing it to 1 

    System = "GameGUI"
    Class = "Render"
    Name = "Render"
    Data
    {
        IgnoreShaderSupport=1
        PrecompileShaders=0
    }

Original comment by javierma...@gmail.com on 11 Nov 2011 at 2:35

GoogleCodeExporter commented 9 years ago
Yeah, it works, thanks

Original comment by come.bernigaud@gmail.com on 11 Nov 2011 at 1:54

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r669.

Original comment by javierma...@gmail.com on 11 Nov 2011 at 3:02