Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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" X-Mailer: Mozilla 4.75 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: chavez CC: cygwin AT cygwin DOT com Subject: Re: compiling QT on cygwin(latest stable version) please help References: <00e201c0dd6c$d1af31a0$f9f82c3f AT c> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 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