ptitSeb / friking-shark

Port of Friking Shark (remake of Flying Shark) on the OpenPandora, Odroid and most Linux. Also with AmigaOS4 support. Status: Working (using gl4es).
https://boards.openpandora.org/topic/5600375-friking-shark/
Other
11 stars 0 forks source link

Does nt compile 'png_info {aka struct png_info_def}' #18

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I have this error in copmile:

[ 59%] Building CXX object 
CMakeFiles/GameGraphics.dir/GameGraphics/OpenGLTexture.cpp.o
/home/dglent/friking-shark-read-only/GameGraphics/OpenGLTexture.cpp: In 
function ‘bool LoadPngFile(const char*, unsigned int, unsigned int*, unsigned 
int*, unsigned char**)’:
/home/dglent/friking-shark-read-only/GameGraphics/OpenGLTexture.cpp:130:23: 
σφάλμα: invalid use of incomplete type ‘png_info {aka struct 
png_info_def}’
/usr/include/png.h:742:16: error: forward declaration of ‘png_info {aka 
struct png_info_def}’
/home/dglent/friking-shark-read-only/GameGraphics/OpenGLTexture.cpp:130:68: 
σφάλμα: invalid use of incomplete type ‘png_info {aka struct 
png_info_def}’
/usr/include/png.h:742:16: error: forward declaration of ‘png_info {aka 
struct png_info_def}’
/home/dglent/friking-shark-read-only/GameGraphics/OpenGLTexture.cpp:133:21: 
σφάλμα: invalid use of incomplete type ‘png_info {aka struct 
png_info_def}’
/usr/include/png.h:742:16: error: forward declaration of ‘png_info {aka 
struct png_info_def}’
/home/dglent/friking-shark-read-only/GameGraphics/OpenGLTexture.cpp:134:22: 
σφάλμα: invalid use of incomplete type ‘png_info {aka struct 
png_info_def}’
/usr/include/png.h:742:16: error: forward declaration of ‘png_info {aka 
struct png_info_def}’
/home/dglent/friking-shark-read-only/GameGraphics/OpenGLTexture.cpp:135:34: 
σφάλμα: invalid use of incomplete type ‘png_info {aka struct 
png_info_def}’
/usr/include/png.h:742:16: error: forward declaration of ‘png_info {aka 
struct png_info_def}’
/home/dglent/friking-shark-read-only/GameGraphics/OpenGLTexture.cpp:141:53: 
σφάλμα: invalid use of incomplete type ‘png_info {aka struct 
png_info_def}’
/usr/include/png.h:742:16: error: forward declaration of ‘png_info {aka 
struct png_info_def}’
/home/dglent/friking-shark-read-only/GameGraphics/OpenGLTexture.cpp:143:35: 
σφάλμα: invalid use of incomplete type ‘png_info {aka struct 
png_info_def}’
/usr/include/png.h:742:16: error: forward declaration of ‘png_info {aka 
struct png_info_def}’
/home/dglent/friking-shark-read-only/GameGraphics/OpenGLTexture.cpp:145:42: 
σφάλμα: invalid use of incomplete type ‘png_info {aka struct 
png_info_def}’
/usr/include/png.h:742:16: error: forward declaration of ‘png_info {aka 
struct png_info_def}’
/home/dglent/friking-shark-read-only/GameGraphics/OpenGLTexture.cpp:154:59: 
σφάλμα: invalid use of incomplete type ‘png_info {aka struct 
png_info_def}’
/usr/include/png.h:742:16: error: forward declaration of ‘png_info {aka 
struct png_info_def}’
/home/dglent/friking-shark-read-only/GameGraphics/OpenGLTexture.cpp:155:62: 
σφάλμα: invalid use of incomplete type ‘png_info {aka struct 
png_info_def}’
/usr/include/png.h:742:16: error: forward declaration of ‘png_info {aka 
struct png_info_def}’
/home/dglent/friking-shark-read-only/GameGraphics/OpenGLTexture.cpp:155:78: 
σφάλμα: invalid use of incomplete type ‘png_info {aka struct 
png_info_def}’
/usr/include/png.h:742:16: σφάλμα: forward declaration of ‘png_info 
{aka struct png_info_def}’
/home/dglent/friking-shark-read-only/GameGraphics/OpenGLTexture.cpp:160:53: 
σφάλμα: invalid use of incomplete type ‘png_info {aka struct 
png_info_def}’
/usr/include/png.h:742:16: σφάλμα: forward declaration of ‘png_info 
{aka struct png_info_def}’
/home/dglent/friking-shark-read-only/GameGraphics/OpenGLTexture.cpp:160:69: 
σφάλμα: invalid use of incomplete type ‘png_info {aka struct 
png_info_def}’
/usr/include/png.h:742:16: σφάλμα: forward declaration of ‘png_info 
{aka struct png_info_def}’
/home/dglent/friking-shark-read-only/GameGraphics/OpenGLTexture.cpp:164:35: 
σφάλμα: invalid use of incomplete type ‘png_info {aka struct 
png_info_def}’
/usr/include/png.h:742:16: σφάλμα: forward declaration of ‘png_info 
{aka struct png_info_def}’
/home/dglent/friking-shark-read-only/GameGraphics/OpenGLTexture.cpp:167:62: 
σφάλμα: invalid use of incomplete type ‘png_info {aka struct 
png_info_def}’
/usr/include/png.h:742:16: σφάλμα: forward declaration of ‘png_info 
{aka struct png_info_def}’
/home/dglent/friking-shark-read-only/GameGraphics/OpenGLTexture.cpp:169:36: 
σφάλμα: invalid use of incomplete type ‘png_info {aka struct 
png_info_def}’
/usr/include/png.h:742:16: σφάλμα: forward declaration of ‘png_info 
{aka struct png_info_def}’
make[2]: *** [CMakeFiles/GameGraphics.dir/GameGraphics/OpenGLTexture.cpp.o] 
Error 1
make[1]: *** [CMakeFiles/GameGraphics.dir/all] Error 2
make: *** [all] Error 2
[dglent@localhost friking-shark-read-only]$

System: Mageia 2
Kernel: 3.3.8-desktop-2.mga2

libpng packages installed:
lib64png-devel-1.5.12-1.mga2
lib64png12_0-1.2.50-1.mga2
lib64png15_15-1.5.12-1.mga2

Original issue reported on code.google.com by dgl...@gmail.com on 23 Sep 2012 at 11:16

GoogleCodeExporter commented 8 years ago
This is a patch for another program with similar problem
http://pkgs.fedoraproject.org/cgit/nx.git/tree/nx-3.5.0-libpng15.patch?id=c8f2a9
5592d5330c9ba9726ec318879591b7274f;id2=8278f5e08f15c6d9c96a45e934207c5aeb97ce81
So the solution could be a such change, but i dont know how to do it

Original comment by dgl...@gmail.com on 23 Sep 2012 at 12:04

ptitSeb commented 8 years ago

For now, forcing lib png 14...