Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Won't build on ArchLinux #13

Closed
GoogleCodeExporter opened this issue Dec 15, 2015 · 7 comments
Closed

Won't build on ArchLinux #13

GoogleCodeExporter opened this issue Dec 15, 2015 · 7 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

Thanks for the report :)

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

@GoogleCodeExporter
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

Yeah, it works, thanks

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

@GoogleCodeExporter
Copy link
Author

This issue was closed by revision r669.

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

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant