DennisOSRM/Project-OSRM — comment on commit 94bd6e22ffe761b6aed640cc5dd53a94daa8d8a3
File:  line 0
By emiltin:

ok. i get this error when building:

g++ -o ThirdParty/PngImage.o -c -DROUTED -I/usr/include/libxml2 -I/usr/local/Cellar/libstxxl/1.3.1/include -I/usr/local/Cellar/boost/1.48.0/include -I/usr/local/Cellar/pngwriter/0.5.4/include -I/usr/X11/include ThirdParty/PngImage.cc
ThirdParty/PngImage.cc: In function 'void::readPngData(::PNGStructPtrs&, unsigned char*&, int&, int&)':
ThirdParty/PngImage.cc:148: error: invalid use of incomplete type 'struct png_info_def'
/usr/X11/include/png.h:666: error: forward declaration of 'struct png_info_def'
ThirdParty/PngImage.cc:148: error: invalid use of incomplete type 'struct png_info_def'
/usr/X11/include/png.h:666: error: forward declaration of 'struct png_info_def'
ThirdParty/PngImage.cc:149: error: invalid use of incomplete type 'struct png_info_def'
/usr/X11/include/png.h:666: error: forward declaration of 'struct png_info_def'
ThirdParty/PngImage.cc:150: error: invalid use of incomplete type 'struct png_info_def'
/usr/X11/include/png.h:666: error: forward declaration of 'struct png_info_def'
ThirdParty/PngImage.cc: In member function 'bool PngImage::loadImage(const char*, bool)':
ThirdParty/PngImage.cc:212: error: invalid use of incomplete type 'struct png_struct_def'
/usr/X11/include/png.h:795: error: forward declaration of 'struct png_struct_def'
ThirdParty/PngImage.cc: In member function 'bool PngImage::loadImageFromMemory(const unsigned char*, unsigned int)':
ThirdParty/PngImage.cc:259: error: invalid use of incomplete type 'struct png_struct_def'
/usr/X11/include/png.h:795: error: forward declaration of 'struct png_struct_def'
ThirdParty/PngImage.cc: In member function 'bool PngImage::saveImage(const char*, bool) const':
ThirdParty/PngImage.cc:297: error: invalid use of incomplete type 'struct png_struct_def'
/usr/X11/include/png.h:795: error: forward declaration of 'struct png_struct_def'
scons: *** [ThirdParty/PngImage.o] Error 1
scons: building terminated because of errors.