libpng dependency issue

Luca Bennati lucak3 at gmail.com
Wed Feb 3 04:57:24 CST 2010


2010/2/3 Luca Bennati <lucak3 at gmail.com>


> LD_LIBRARY_PATH="../../libs/wine:$LD_LIBRARY_PATH" ../../tools/wrc/wrc
> --nostdinc -I. -I. -I../../include -I../../include  -D__WINESRC__
> -foversion.res version.rc
> ../../tools/winegcc/winegcc  -B../../tools/winebuild --sysroot=../..
> -shared ./windowscodecs.spec bmpdecode.o bmpencode.o clsfactory.o
> converter.o gifformat.o icoformat.o imgfactory.o info.o jpegformat.o main.o
> palette.o pngformat.o propertybag.o regsvr.o stream.o ungif.o
> version.res    -o windowscodecs.dll.so  -luuid -lole32 -ladvapi32
> -lkernel32  ../../libs/port/libwine_port.a
> pngformat.o: In function `PngFrameEncode_Commit':
> /home/luca/wine-git/dlls/windowscodecs/pngformat.c:987: undefined reference
> to `png_set_longjmp_fn'
> pngformat.o: In function `PngEncoder_Initialize':
> /home/luca/wine-git/dlls/windowscodecs/pngformat.c:1119: undefined
> reference to `png_set_longjmp_fn'
> pngformat.o: In function `PngFrameEncode_WritePixels':
> /home/luca/wine-git/dlls/windowscodecs/pngformat.c:861: undefined reference
> to `png_set_longjmp_fn'
> pngformat.o: In function `PngDecoder_Initialize':
> /home/luca/wine-git/dlls/windowscodecs/pngformat.c:252: undefined reference
> to `png_set_longjmp_fn'
> collect2: ld returned 1 exit status
>
> I will now investigate this new one
>

I didn't find a clear answer as code seemed ok, so i tried to issue the
command:
../../tools/winegcc/winegcc  -B../../tools/winebuild --sysroot=../.. -shared
./windowscodecs.spec bmpdecode.o bmpencode.o clsfactory.o converter.o
gifformat.o icoformat.o imgfactory.o info.o jpegformat.o main.o palette.o
pngformat.o propertybag.o regsvr.o stream.o ungif.o    version.res    -o
windowscodecs.dll.so  -luuid -lole32 -ladvapi32 -lkernel32
../../libs/port/libwine_port.a
adding a simple -lpng:
../../tools/winegcc/winegcc  -B../../tools/winebuild --sysroot=../.. -shared
./windowscodecs.spec bmpdecode.o bmpencode.o clsfactory.o converter.o
gifformat.o icoformat.o imgfactory.o info.o jpegformat.o main.o palette.o
pngformat.o propertybag.o regsvr.o stream.o ungif.o    version.res    -o
windowscodecs.dll.so  -luuid -lole32 -ladvapi32 -lkernel32 -lpng
../../libs/port/libwine_port.a
and it magically works ok

so the previous patch just has to add png to the imports in Makefile.in to
make it work
Should i send the now correct patch?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20100203/c8ddd563/attachment-0001.htm>


More information about the wine-devel mailing list