On Wed, Mar 23, 2011 at 2:15 AM, Greg McInnes <[email protected]> wrote: > Hello, > > I have been trying to install blat on my linux server. I set the $MACHTYPE > to x86_64. cd kent/src/lib make, and get this error: > > [root@BatLC1 lib]# make > gcc -O -g -Wall -Werror -Wformat -Wimplicit -Wreturn-type -Wuninitialized > -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -DMACHTYPE_x86_64 > -DCOLOR32 -Wall -Werror -Wformat -Wimplicit -Wreturn-type -Wuninitialized > -I../inc -I../../inc -I../../../inc -I../../../../inc -I../../../../../inc > -o pngwrite.o -c pngwrite.c > pngwrite.c:7:87: error: png.h: No such file or directory > pngwrite.c:13: error: expected â)â before âpngâ > pngwrite.c:19: error: expected â)â before âpngâ > pngwrite.c: In function âmgSaveToPngâ: > pngwrite.c:34: error: âpng_structpâ undeclared (first use in this function) > pngwrite.c:34: error: (Each undeclared identifier is reported only once > pngwrite.c:34: error: for each function it appears in.) > pngwrite.c:34: error: expected â;â before âpngâ > pngwrite.c:37: error: âpngâ undeclared (first use in this function) > pngwrite.c:42: error: âpng_infopâ undeclared (first use in this function) > pngwrite.c:42: error: expected â;â before âinfoâ > pngwrite.c:43: error: âinfoâ undeclared (first use in this function) > cc1: warnings being treated as errors > pngwrite.c:46: error: implicit declaration of function > âpng_destroy_write_structâ > pngwrite.c:52: error: implicit declaration of function âpng_jmpbufâ > pngwrite.c:62: error: implicit declaration of function âpng_init_ioâ > pngwrite.c:64: error: implicit declaration of function âpng_set_IHDRâ > pngwrite.c:65: error: âPNG_COLOR_TYPE_RGBAâ undeclared (first use in this > function) > pngwrite.c:65: error: âPNG_INTERLACE_NONEâ undeclared (first use in this > function) > pngwrite.c:66: error: âPNG_COMPRESSION_TYPE_DEFAULTâ undeclared (first use > in this function) > pngwrite.c:66: error: âPNG_FILTER_TYPE_DEFAULTâ undeclared (first use in > this function) > pngwrite.c:91: error: âpng_byteâ undeclared (first use in this function) > pngwrite.c:91: error: ârow_pointersâ undeclared (first use in this function) > pngwrite.c:91: error: expected expression before â)â token > pngwrite.c:95: error: implicit declaration of function âpng_set_rowsâ > pngwrite.c:96: error: implicit declaration of function âpng_write_pngâ > pngwrite.c:96: error: âPNG_TRANSFORM_IDENTITYâ undeclared (first use in this > function) > make: *** [pngwrite.o] Error 1 > > > Any help is appreciated. >
Gregory, You need the libpng headers. On Fedora/Centos etc. systems, you'll need: libpng-devel or libpng-dev on Debian/Ubuntu-type systems. Adam _______________________________________________ Genome maillist - [email protected] https://lists.soe.ucsc.edu/mailman/listinfo/genome
