delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/05/15/22:35:38

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <3B01E6D7.B16A7D1C@ece.gatech.edu>
Date: Tue, 15 May 2001 22:32:55 -0400
From: "Charles S. Wilson" <cwilson AT ece DOT gatech DOT edu>
X-Mailer: Mozilla 4.75 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: chavez <chavezd AT bigplanet DOT com>
CC: cygwin AT cygwin DOT com
Subject: Re: compiling QT on cygwin(latest stable version) please help
References: <00e201c0dd6c$d1af31a0$f9f82c3f AT c>


chavez wrote:
> g++ -L/usr/local/qt/lib -Wl,-rpath,/usr/local/qt/lib   -o
> /usr/local/qt/bin/uic
> uic.o ../shared/widgetdatabase.o ../shared/domtool.o
> ../integration/kdevelop/kde
> widgets.o   -lqutil -L../lib -lqt  -L/usr/X11R6/lib -I/usr/X11R6/include  -l
> SM -
> lICE -lXft -L/usr/X11R6/lib -lGLU -lGL -lXmu  -lXext -lX11 -lm

This command doesn't include "-lpng" so of course the link fails -- it's
looking for symbols from libpng but you didn't link with libpng.

> 
> >From what I can figure out the functions that it is trying to call are
> located in 'src/3rdparty/libpng/png.c'.  Has anyone come across this
> problem, or know how to fix it?  The header files include <png.h> in
> qpngio.cpp, png.h has a bunch of stuff like this( which i have no idea what
> it does, and therefore can't fix ):
> /* Return the user pointer associated with the I/O functions */
> extern PNG_EXPORT(png_voidp,png_get_io_ptr) PNGARG((png_structp png_ptr));
> /* Fatal error in PNG image of libpng - can't continue */
> extern PNG_EXPORT(void,png_error) PNGARG((png_structp png_ptr,
>    png_const_charp error));

Just a guess, but I don't think you're using any of the code in
src/3rdparty/libpng/.  The cygwin platform comes with the png libraries
already compiled and installed.  The qt configure is *most likely*
finding them (in /usr/include, /usr/lib) and building against the
headers in /usr/include.  The only problem I see is that the Makefile,
for whatever reason, forgets to add -lpng to the link command.

And no, I don't know why and I don't know how to fix it -- other than to
manually edit the Makefiles and add '-lpng' to LDFLAGS.

--Chuck

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019