| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
| :list-unsubscribe:list-subscribe:list-archive:list-post | |
| :list-help:sender:message-id:from:to:subject:date:content-type | |
| :content-transfer-encoding:mime-version; q=dns; s=default; b=HOY | |
| /yx9raFxqIhbqe4BvRcSfqtWlvs0xf3WW550C6qCQRIRbvOYJx4ZZYXrLt+L/2jA | |
| y1ld3UlHiS17Q6HyaG66WMJPLXa5DPPTyf85+kQX1A8nX8A5pjX77NfaTR+tSniS | |
| QVzt6Lo/SywoQkhhp13eLqbxezMLfmGNFCny+0rw= | |
| DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
| :list-unsubscribe:list-subscribe:list-archive:list-post | |
| :list-help:sender:message-id:from:to:subject:date:content-type | |
| :content-transfer-encoding:mime-version; s=default; bh=4F22+yWGK | |
| IY7KYQBGGBBTd32SFc=; b=XtNvX8P33BryV/AkxEDuEZolqIUH6sZWhJHgyEHVh | |
| 70+CdCu+tRNkExd/QiP15tlmDGfmTTFTqX6nYGMg+qx7zVpEO7D7/UQ5kGRZNwhj | |
| S69r8T6xqe/rC9S6wpSCY+UR0Xgoow/7u5JyQ+txfekkv4ORidE2/tmnsh8tgqAZ | |
| ZE= | |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.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 |
| X-Spam-SWARE-Status: | No, score=2.7 required=5.0 tests=AWL,BAYES_50,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE,RDNS_NONE,SPF_PASS autolearn=no version=3.3.1 |
| X-TMN: | [q4fvvJGtV6isQlMb+7SQpGl+9WCbvsVW] |
| Message-ID: | <BLU177-W36B3AA5D1AF5752D188714D06B0@phx.gbl> |
| From: | Bill Hammond <billsc26 AT hotmail DOT com> |
| To: | "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com> |
| Subject: | Re: Cygwin64 libjpeg-turbo missing/damaged library file |
| Date: | Sat, 27 Jul 2013 09:46:24 -0700 |
| MIME-Version: | 1.0 |
| X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id r6RGkjx7028812 |
>>I am having trouble compiling an application that uses the libjpeg libraries under cygwin64.
>>
>>My program has compiled and run under cygwin32 for a long time. I can compile and run it
>>under cygwin64 when I build and link against my own libjpeg.a. When I try and download the
>>libjpeg-turbo libraries for cygwin64, it all comes apart. The "libjpeg-turbo" package is
>>source only, and when I install "libjpeg-devel" and link against it with "-ljpeg", all the
>>jpeg function calls are undefined.
>>
>>I am using the cygwin64 installer. Is there a problem with the cygwin64 libjpeg package(s),
>>or am I not doing something right?
>
>Hi Bill,
>
>could you show your link instruction ?
>
>Have you a small test case ?
>FYI the turbo devel package is : libturbojpeg-devel
>
>Regards
>Marco
So I installed the libturbojpeg-devel package, but I also had to install the libjpeg-devel
package to get the proper include files added to /usr/include ("jconfig.h", "jerror.h" and
so on).
I can successfully link my program against my own libjpeg with:
cc -g -lm -flto imgopt.o support.o ../common/jpeg.o ../common/gifread.o
../common/gifwrite.o ../common/image.o ../common/misc.o ../common/file.o
../common/fuzzy.o ../jpeg-8c/libjpeg.a -o a.exe
When I try and link against the system libraries (same when I use -lturbojpeg):
cc -g -lm -ljpeg -flto imgopt.o support.o ../common/jpeg.o ../common/gifread.o
../common/gifwrite.o ../common/image.o ../common/misc.o ../common/file.o
../common/fuzzy.o -o a.exe
none of the libjpeg functions resolves:
/tmp/cc4EItUr.ltrans4.ltrans.o: In function `jpeg_write':
/home/proj/../common/jpeg.c:340: undefined reference to `jpeg_std_error'
/home/proj/../common/jpeg.c:340:(.text+0x102): relocation truncated to fit: R_X86_64_PC32
against undefined symbol `jpeg_std_error'
/home/proj/../common/jpeg.c:349: undefined reference to `jpeg_destroy_compress'
etc...
I thought this might be another -flto problem, but compiling and linking without it makes no
difference.
Thanks!
- B
--
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 |