gewalker/plex-linux — Issue #14: Having trouble compiling on Archlinux
Author: danielwallace
Created: 2012-02-29 04:48:18+00:00
State: open

I have been told that it would require a patch for libpng 16?
any help would be apreciated, currently i have libpng 1.5.9-1

make -C xbmc/lib/cximage-6.0
make[1]: Entering directory `/home/daniel/build/plex/src/laika-build/xbmc/lib/cximage-6.0'
make -C CxImage ARCH=x86_64-linux
make[2]: Entering directory `/home/daniel/build/plex/src/laika-build/xbmc/lib/cximage-6.0/CxImage'
g++ -MD -c -fPIC -fPIC -DPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -g -D_DEBUG -Wall -O2 -D_DLL -DXBMC -D_LINUX -D_FILE_DEFINED -D__STDC_CONSTANT_MACROS -DBIN_INSTALL_PATH="\"/usr/lib/xbmc\"" -DINSTALL_PATH="\"/usr/share/xbmc\"" -DHAS_SDL_JOYSTICK -D'GIT_REV="a4d6ec9"' -DHAVE_CONFIG_H -D_GNU_SOURCE=1 -D_REENTRANT -I/home/daniel/build/plex/src/laika-build -I/usr/include/SDL -I/usr/include/alsa -I/usr/include/dbus-1.0 -I/usr/include/freetype2 -I/usr/include/fribidi -I/usr/include/libpng15 -I/usr/include/lzo -I/usr/include/mysql -I/usr/lib/dbus-1.0/include ximaenc.cpp -o ximaenc.o
In file included from ximaenc.cpp:17:0:
ximapng.h: In static member function ‘static void CxImagePNG::user_error_fn(png_structp, png_const_charp)’:
ximapng.h:72:25: 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}’
ximapng.h:73:18: 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}’
ximaenc.cpp: In member function ‘bool CxImage::Load(const char*, DWORD, int&, int&)’:
ximaenc.cpp:512:6: warning: unused variable ‘iWidthSave’ [-Wunused-variable]
ximaenc.cpp:513:6: warning: unused variable ‘iHeightSave’ [-Wunused-variable]
ximaenc.cpp: In member function ‘bool CxImage::CheckFormat(BYTE*, DWORD, DWORD)’:
ximaenc.cpp:1114:28: warning: NULL used in arithmetic [-Wpointer-arith]
make[2]: *** [ximaenc.o] Error 1
make[2]: Leaving directory `/home/daniel/build/plex/src/laika-build/xbmc/lib/cximage-6.0/CxImage'
make[1]: *** [CxImage/cximage.a] Error 2
make[1]: Leaving directory `/home/daniel/build/plex/src/laika-build/xbmc/lib/cximage-6.0'
make: *** [imagelib] Error 2