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

Build error on Arch Linux (libpng15) #6

Open
GoogleCodeExporter opened this issue Mar 15, 2015 · 0 comments
Open

Build error on Arch Linux (libpng15) #6

GoogleCodeExporter opened this issue Mar 15, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

libpng 1.5.9-1

$ scons
[...]
g++ -o build/src/plugins/png.o -c -O3 -s -isystem/usr/include/libpng15 
-isystem/usr/include/SDL -fopenmp -isystem/usr/include/ImageMagick 
-D_GNU_SOURCE=1 -D_REENTRANT -Ibuild/src -Isrc src/plugins/png.cpp
src/plugins/png.cpp: In function 'void readPNGMemory(png_structp, png_bytep, 
png_size_t)':
src/plugins/png.cpp:35:59: error: invalid use of incomplete type 'png_struct 
{aka struct png_struct_def}'
/usr/include/libpng15/png.h:855:16: error: forward declaration of 'png_struct 
{aka struct png_struct_def}'
src/plugins/png.cpp: In static member function 'static bool 
PNG::get_size(void*, int, Size&)':
src/plugins/png.cpp:55:7: error: invalid use of incomplete type 'png_struct 
{aka struct png_struct_def}'
/usr/include/libpng15/png.h:855:16: error: forward declaration of 'png_struct 
{aka struct png_struct_def}'
src/plugins/png.cpp: In static member function 'static bool PNG::get_size(const 
string&, Size&)':
src/plugins/png.cpp:96:9: error: invalid use of incomplete type 'png_struct 
{aka struct png_struct_def}'
/usr/include/libpng15/png.h:855:16: error: forward declaration of 'png_struct 
{aka struct png_struct_def}'
src/plugins/png.cpp: In static member function 'static SoftwareSurfacePtr 
PNG::load_from_file(const string&)':
src/plugins/png.cpp:133:9: error: invalid use of incomplete type 'png_struct 
{aka struct png_struct_def}'
/usr/include/libpng15/png.h:855:16: error: forward declaration of 'png_struct 
{aka struct png_struct_def}'
src/plugins/png.cpp: In static member function 'static SoftwareSurfacePtr 
PNG::load_from_mem(const uint8_t*, int)':
src/plugins/png.cpp:207:7: error: invalid use of incomplete type 'png_struct 
{aka struct png_struct_def}'
/usr/include/libpng15/png.h:855:16: error: forward declaration of 'png_struct 
{aka struct png_struct_def}'
src/plugins/png.cpp: In static member function 'static void PNG::save(const 
SoftwareSurfacePtr&, const string&)':
src/plugins/png.cpp:281:9: error: invalid use of incomplete type 'png_struct 
{aka struct png_struct_def}'
/usr/include/libpng15/png.h:855:16: error: forward declaration of 'png_struct 
{aka struct png_struct_def}'
src/plugins/png.cpp: In function 'void writePNGMemory(png_structp, png_bytep, 
png_size_t)':
src/plugins/png.cpp:323:61: error: invalid use of incomplete type 'png_struct 
{aka struct png_struct_def}'
/usr/include/libpng15/png.h:855:16: error: forward declaration of 'png_struct 
{aka struct png_struct_def}'
src/plugins/png.cpp: In static member function 'static BlobPtr PNG::save(const 
SoftwareSurfacePtr&)':
src/plugins/png.cpp:335:7: error: invalid use of incomplete type 'png_struct 
{aka struct png_struct_def}'
/usr/include/libpng15/png.h:855:16: error: forward declaration of 'png_struct 
{aka struct png_struct_def}'
scons: *** [build/src/plugins/png.o] Error 1
scons: building terminated because of errors.

Please tell me if I should add info to this report.

Original issue reported on code.google.com by qubodup on 20 Mar 2012 at 5:04

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