I know its not been updated in years, but this is still a must have for me. I just upgraded to fedora 24 (64bit) and Im trying to compile it from source because the rpms Ive found are either broke or dont work right.
Im following these instructions.. wget ftp://ftp.cis.upenn.edu/pub/xv/xv-3.10a.tar.gz wget http://prdownloads.sourceforge.net/png-mng/xv-3.10a-jumbo-patches-20050501.t... wget http://www.ulich.org/hints/resources/xv-3.10a-jumbo20050501-1.diff.gz tar xvzf xv-3.10a.tar.gz tar xvzf xv-3.10a-jumbo-patches-20050501.tar.gz gzip -d xv-3.10a-jumbo20050501-1.diff.gz cd xv-3.10a patch -p1 < ../xv-3.10a-jumbo-fix-patch-20050410.txt patch -p1 < ../xv-3.10a-jumbo-enh-patch-20050501.txt patch -p1 < ../xv-3.10a-jumbo20050501-1.diff make
and Ive gotten as far as ... [jason@badman xv-3.10a]$ make gcc -O3 -Wall -DDOPNG -I/usr/include -I/usr/include -DDOJPEG -I/usr/include -DDOTIFF -DUSE_TILED_TIFF_BOTLEFT_FIX -I/usr/include -DDOPDS -DUSLEEP -DLINUX -L/usr/X11R6/lib -DMGCSFXDIR="/usr/X11R6//lib/" -DSYSCONFDIR="/etc" -DXVEXECPATH="/usr/X11R6//lib/" -c xvpng.c xvpng.c: In function ‘CreatePNGW’: xvpng.c:97:56: error: ‘Z_NO_COMPRESSION’ undeclared (first use in this function) DCreate(&cDial, pngW, 12, 25, DWIDE, DHIGH, (double)Z_NO_COMPRESSION, ^~~~~~~~~~~~~~~~ xvpng.c:97:56: note: each undeclared identifier is reported only once for each function it appears in xvpng.c:98:19: error: ‘Z_BEST_COMPRESSION’ undeclared (first use in this function) (double)Z_BEST_COMPRESSION, COMPRESSION, 1.0, 3.0, ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/pngconf.h:50:0, from /usr/include/png.h:371, from xvpng.c:31: xvpng.c: In function ‘WritePNG’: xvpng.c:427:21: error: dereferencing pointer to incomplete type ‘png_struct {aka struct png_struct_def}’ if (setjmp(png_ptr->jmpbuf)) { ^ xvpng.c:453:11: error: dereferencing pointer to incomplete type ‘png_info {aka struct png_info_def}’ info_ptr->width = w; ^~ xvpng.c: In function ‘png_xv_error’: xvpng.c:1054:18: error: dereferencing pointer to incomplete type ‘png_struct {aka struct png_struct_def}’ longjmp(png_ptr->jmpbuf, 1); ^~ xvpng.c: In function ‘VersionInfoPNG’: xvpng.c:1078:5: error: ‘ZLIB_VERSION’ undeclared (first use in this function) ZLIB_VERSION, zlib_version); ^~~~~~~~~~~~ xvpng.c:1078:19: error: ‘zlib_version’ undeclared (first use in this function) ZLIB_VERSION, zlib_version); ^~~~~~~~~~~~ Makefile:319: recipe for target 'xvpng.o' failed make: *** [xvpng.o] Error 1 [jason@badman xv-3.10a]$
I have all the zlibs I can find installed.. [jason@badman xv-3.10a]$ rpm -qa | grep zlib zlib-1.2.8-10.fc24.i686 zlib-devel-1.2.8-10.fc24.x86_64 zlib-1.2.8-10.fc24.x86_64
any ideas?
-db
On Sat, 25 Jun 2016, dirt bag wrote:
[snip] gcc -O3 -Wall -DDOPNG -I/usr/include -I/usr/include -DDOJPEG -I/usr/include -DDOTIFF -DUSE_TILED_TIFF_BOTLEFT_FIX -I/usr/include -DDOPDS -DUSLEEP -DLINUX -L/usr/X11R6/lib -DMGCSFXDIR="/usr/X11R6//lib/" -DSYSCONFDIR="/etc" -DXVEXECPATH="/usr/X11R6//lib/" -c xvpng.c xvpng.c: In function ‘CreatePNGW’: [snip]k xvpng.c:97:56: error: ‘Z_NO_COMPRESSION’ undeclared (first use in this function) [snip]
Man, xv. A blast from the past. I used to love that program.
A quick look around the net suggests that libpng versions above 1.5 don't link to zlib.h, even if you have it installed -- so programs that programs that think it does will crump. You have to manually add the include.
See, for instance:
https://trac.osgeo.org/mapserver/ticket/4033 https://github.com/PixarAnimationStudios/OpenSubdiv/issues/261 https://sourceforge.net/p/pngnq/bugs/13/
billo
ok thanks for the info, I modified my xvpng.c to include zlib.h but wasnt sure which other files to modify. anyway, now I get
[jason@badman xv-3.10a]$ make gcc -O3 -Wall -DDOPNG -I/usr/include -I/usr/include -DDOJPEG -I/usr/include -DDOTIFF -DUSE_TILED_TIFF_BOTLEFT_FIX -I/usr/include -DDOPDS -DUSLEEP -DLINUX -L/usr/X11R6/lib -DMGCSFXDIR="/usr/X11R6//lib/" -DSYSCONFDIR="/etc" -DXVEXECPATH="/usr/X11R6//lib/" -c xvpng.c In file included from /usr/include/pngconf.h:50:0, from /usr/include/png.h:371, from xvpng.c:32: xvpng.c: In function ‘WritePNG’: xvpng.c:428:21: error: dereferencing pointer to incomplete type ‘png_struct {aka struct png_struct_def}’ if (setjmp(png_ptr->jmpbuf)) { ^ xvpng.c:454:11: error: dereferencing pointer to incomplete type ‘png_info {aka struct png_info_def}’ info_ptr->width = w; ^~ xvpng.c: In function ‘png_xv_error’: xvpng.c:1055:18: error: dereferencing pointer to incomplete type ‘png_struct {aka struct png_struct_def}’ longjmp(png_ptr->jmpbuf, 1); ^~ Makefile:319: recipe for target 'xvpng.o' failed make: *** [xvpng.o] Error 1 [jason@badman xv-3.10a]$ vi xvpng.c [jason@badman xv-3.10a]$ make gcc -O3 -Wall -DDOPNG -I/usr/include -I/usr/include -DDOJPEG -I/usr/include -DDOTIFF -DUSE_TILED_TIFF_BOTLEFT_FIX -I/usr/include -DDOPDS -DUSLEEP -DLINUX -L/usr/X11R6/lib -DMGCSFXDIR="/usr/X11R6//lib/" -DSYSCONFDIR="/etc" -DXVEXECPATH="/usr/X11R6//lib/" -c xvpng.c In file included from /usr/include/pngconf.h:50:0, from /usr/include/png.h:371, from xvpng.c:32: xvpng.c: In function ‘WritePNG’: xvpng.c:428:21: error: dereferencing pointer to incomplete type ‘png_struct {aka struct png_struct_def}’ if (setjmp(png_ptr->jmpbuf)) { ^ xvpng.c:454:11: error: dereferencing pointer to incomplete type ‘png_info {aka struct png_info_def}’ info_ptr->width = w; ^~ xvpng.c: In function ‘png_xv_error’: xvpng.c:1055:18: error: dereferencing pointer to incomplete type ‘png_struct {aka struct png_struct_def}’ longjmp(png_ptr->jmpbuf, 1); ^~ Makefile:319: recipe for target 'xvpng.o' failed make: *** [xvpng.o] Error 1 [jason@badman xv-3.10a]$
which I guess is making progress..
-db
There's a macports patch here:
https://trac.macports.org/browser/trunk/dports/graphics/xv/files/patch-libpn...
that works for me.
users@lists.stg.fedoraproject.org