delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-0.8 required=5.0 tests=AWL,BAYES_50,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_BP,TW_BX,TW_IB,TW_LB,TW_LG,TW_LX,TW_YG,T_TO_NO_BRKTS_FREEMAIL |
X-Spam-Check-By: | sourceware.org |
MIME-Version: | 1.0 |
In-Reply-To: | <4D9A445C.7080804@mail.ru> |
References: | <4D9A445C DOT 7080804 AT mail DOT ru> |
Date: | Tue, 5 Apr 2011 00:46:04 +0200 |
Message-ID: | <BANLkTikMJcPtXrLH3hMTsgk-2TykvJiczQ@mail.gmail.com> |
Subject: | Re: Linking statically against GraphicsMagick: problems with libxml2 and libpng |
From: | marco atzeri <marco DOT atzeri AT gmail DOT com> |
To: | cygwin AT cygwin DOT com |
Cc: | Dmitry Katsubo <dma_k AT mail DOT ru> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
2011/4/5 Dmitry Katsubo > Dear CygWin users / developers! > > While trying to link statically my application against GraphicsMagick why not dynamic ? > under CygWin, but I suffer from few minor problems during linking. > > To discover the library list, needed for static linking, I use > "GraphicsMagick++-config --libs": > >> configure:7259: g++ -o conftest.exe -g -O2 -I/usr/include/GraphicsMagick= -L/usr/lib -static-libgcc -Wl,-static conftest.cpp -lGraphicsMagick -lGrap= hicsMagick++ =A0-lGraphicsMagick++ -lGraphicsMagick -ljbig -llcms -ltiff -l= freetype -ljasper -ljpeg -lpng -lwmflite -lXext -lSM -lICE -lX11 -lbz2 -lxm= l2 -lz -lgdi32 -lm -lpthread -lltdl -lm >&5 >> /usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: can= not find -lxml2 >> /usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: can= not find -lpng > > * The package libxml2-devel is installed, but in my opinion is missing > the libxml2.a file: > > $ ll /lib/libxml* > 1122076 May 12 =A02010 /lib/libxml2.dll.a > =A0 =A0927 May 12 =A02010 /lib/libxml2.la it seems that libxml2-devel package is missing the static option. > > * The package libpng12-devel is installed, but there is no symlink > libpng.a -> libpng12.a. So I think GraphicsMagick should be linked > either against libpng12 or libpng14: > GraphicsMagick is linked versus libpng14 $ cygcheck cygGraphicsMagick-3.dll |grep png E:\cygwin2\bin\cygpng14-14.dll > $ ll /lib/libpng* > 294592 Aug =A08 =A02010 /lib/libpng12.a > 217944 Aug =A08 =A02010 /lib/libpng12.dll.a $ cygcheck -l libpng14-devel |grep png\.a /usr/lib/libpng.a > > Does it sound reasonable? If yes, what is the best way to report these > two bugs? > > Additional info: > libxml2-devel =A0 =A0 =A0 =A0 =A0 2.7.7-1 > libpng12-devel =A0 =A0 =A0 =A0 =A01.2.44-1 > libGraphicsMagick-devel 1.3.12-2 > gcc4-g++ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A04.3.4-4 one is a missing functionality and there other is not a bug ;-) > > -- > With best regards, > Dmitry > Regards Marco -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |