From owner-freebsd-questions Thu May 30 19: 2:47 2002 Delivered-To: freebsd-questions@freebsd.org Received: from pioneernet.net (mail.pioneernet.net [207.115.64.224]) by hub.freebsd.org (Postfix) with ESMTP id D3EE337B409 for ; Thu, 30 May 2002 19:02:38 -0700 (PDT) Received: from chip.wiegand.org [66.114.152.128] by pioneernet.net with ESMTP (SMTPD32-6.06) id A9B7380A00A2; Thu, 30 May 2002 19:02:31 -0700 Subject: libpng - what's the secret to getting it installed? From: Chip Wiegand To: Questions FreeBSD Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.5 Date: 30 May 2002 18:02:11 -0700 Message-Id: <1022806931.177.22.camel@chip.wiegand.org> Mime-Version: 1.0 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I don't see a port for libpng, so I downloaded libpng-1.2.3.tar.gz from libpng.org. I moved it to /usr/local, then copied the makefile.freebsd to makefile. I then ran make test, and it passed. I then ran /usr/local/libpng-1.2.3/pngtest -m *.png and it passes that test also. I also ran pngtest pngnow.jpg, but that file does not exist, so I ran pngtest pngbar.jpg, and it fails, though the file does exist. Here's the errors: chip# ./pngtest pngbar.jpg Testing libpng version 1.2.3 with zlib version 1.1.3 libpng version 1.2.3 - May 21, 2002 Copyright (c) 1998-2002 Glenn Randers-Pehrson Copyright (c) 1996-1997 Andreas Dilger Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc. library (10203): libpng version 1.2.3 - May 21, 2002 (header) pngtest (10203): libpng version 1.2.3 - May 21, 2002 (header) sizeof(png_struct)=588, sizeof(png_info)=288 libpng error: Not a PNG file Testing pngbar.jpg:pngbar.jpg -> pngout.png: libpng read error Testing pngbar.jpg: FAIL libpng error: Not a PNG file Testing pngbar.jpg:pngbar.jpg -> pngout.png: libpng read error Testing pngbar.jpg: FAIL libpng error: Not a PNG file Testing pngbar.jpg:pngbar.jpg -> pngout.png: libpng read error FAIL Current memory allocation: 0 bytes Maximum memory allocation: 63092 bytes Total memory allocation: 189276 bytes Number of allocations: 42 libpng FAILS test Here is the errors when I run make install - chip# make install cd /usr/local/libpng-1.2.3 && install -C -o root -g wheel -m 444 png.h /usr/local/include/libpng cd /usr/local/libpng-1.2.3 && install -C -o root -g wheel -m 444 pngconf.h /usr/local/include/libpng install -c -o root -g wheel -m 444 libpng.a /usr/local/lib install -c -s -o root -g wheel -m 444 libpng.so.5 /usr/local/lib install: libpng.so.5: No such file or directory *** Error code 71 Stop in /usr/local/libpng-1.2.3. According to the INSTALL file there should be a file pngnow.jpg, but it does not exist, so I can't run that test properly, so I substitued pngbar.jpg (as above), and it fails. I am using FreeBSD-4.6-RC. If anyone has gotten this to work, maybe you could help me? -- Chip W www.wiegand.org chip@wiegand.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message