| delorie.com/archives/browse.cgi | search |
| DMARC-Filter: | OpenDMARC Filter v1.4.2 delorie.com 5BTGhPW73678420 |
| Authentication-Results: | delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com |
| Authentication-Results: | delorie.com; spf=pass smtp.mailfrom=cygwin.com |
| DKIM-Filter: | OpenDKIM Filter v2.11.0 delorie.com 5BTGhPW73678420 |
| Authentication-Results: | delorie.com; |
| dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=ckmipoZN | |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| DKIM-Filter: | OpenDKIM Filter v2.11.0 sourceware.org 963AC4BA2E07 |
| DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; |
| s=default; t=1767026604; | |
| bh=zg4Z7NKrKF1yPw5ckyhFzq6Qo4DncQGuDlYCqsOCZc0=; | |
| h=Subject:Date:To:List-Id:List-Unsubscribe:List-Archive:List-Post: | |
| List-Help:List-Subscribe:From:Reply-To:From; | |
| b=ckmipoZNJh2R3GnywSGfFoyk7Ty5xIBFe4K2uGGWtYixdX3a83EjRCQ0g7aQDxREV | |
| h65ASqzt5rpbYfSvQUaFLJVhTR6ir5vBGbX0O7Ws1LpMX/PsNHEdDtlZnsLK2dj063 | |
| 2/wJox6q6xRCOkxlBBzm2jbGo9SghHnLybpBUHI4= | |
| X-Original-To: | cygwin AT cygwin DOT com |
| Delivered-To: | cygwin AT cygwin DOT com |
| DMARC-Filter: | OpenDMARC Filter v1.4.2 sourceware.org 75E5E4BA2E04 |
| ARC-Filter: | OpenARC Filter v1.0.0 sourceware.org 75E5E4BA2E04 |
| ARC-Seal: | i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1767026555; cv=none; |
| b=hvYx1fTMGo4ACp2KGtoNFwM4g1GPBW7ldKpoJkKrmn5Ci3ZixHDtHTzWm5WFKetwh+KPHq1c9DhDvnOpft1O9SLYNJewa+bRD+qjc+2xDFyInn8PAtgOI1HjjBSRyEOlstDFhXMScdHA7bv92iEbJYEQMElACJ9R9B8F5IyUvxc= | |
| ARC-Message-Signature: | i=1; a=rsa-sha256; d=sourceware.org; s=key; |
| t=1767026555; c=relaxed/simple; | |
| bh=0cz+hDlhi33xAldZkVh5Lqxe9IQjOL2wLewev4LhiGI=; | |
| h=From:Mime-Version:Subject:Message-Id:Date:To; | |
| b=ijeUSD1wVKA53BUZx0obI6js1ojPdbW84Dyhvi9eCJWcF/luDy1Z/CupOl1itqnMRLbmz34khs1e/Vntq9eKTASi41yR5cMCvXiRizw3q5Pn2X9YycA8xvRtq1x4hfQca4IS/SVtqAdoULfxunkt9CQpeL0G35TgG7wrmEIVQ28= | |
| ARC-Authentication-Results: | i=1; server2.sourceware.org |
| DKIM-Filter: | OpenDKIM Filter v2.11.0 sourceware.org 75E5E4BA2E04 |
| Mime-Version: | 1.0 (Mac OS X Mail 16.0 \(3826.700.81.1.3\)) |
| Subject: | Failure to link with libjpeg.a using cmake configuration |
| Message-Id: | <AAE47C2C-22AE-4EB9-B5DB-209C99B4D239@codelibre.net> |
| Date: | Mon, 29 Dec 2025 16:42:22 +0000 |
| To: | cygwin AT cygwin DOT com |
| X-Mailer: | Apple Mail (2.3826.700.81.1.3) |
| X-BeenThere: | cygwin AT cygwin DOT com |
| X-Mailman-Version: | 2.1.30 |
| List-Id: | General Cygwin discussions and problem reports <cygwin.cygwin.com> |
| List-Archive: | <https://cygwin.com/pipermail/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-request AT cygwin DOT com?subject=help> |
| List-Subscribe: | <https://cygwin.com/mailman/listinfo/cygwin>, |
| <mailto:cygwin-request AT cygwin DOT com?subject=subscribe> | |
| From: | Roger Leigh via Cygwin <cygwin AT cygwin DOT com> |
| Reply-To: | Roger Leigh <rleigh AT codelibre DOT net> |
| Sender: | "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com> |
| X-MIME-Autoconverted: | from base64 to 8bit by delorie.com id 5BTGhPW73678420 |
Hi,
I’m trying to test libtiff on Cygwin, and I’m running into a failure. It’s finding and linking on all platforms with the exception of Cygwin (including MinGW64 and MSVC). For example:
https://gitlab.com/libtiff/libtiff/-/pipelines/2236584193
-- Found ZLIB: /usr/lib/libz.dll.a (found version "1.3.1")
-- Found Deflate: /usr/lib/libdeflate.dll.a (found version "1.25")
CMake Error at /usr/lib/cmake/libjpeg-turbo/libjpeg-turboTargets.cmake:99 (message):
The imported target "libjpeg-turbo::jpeg" references the file
"/usr/lib/libjpeg.dll.a"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
"/usr/lib/cmake/libjpeg-turbo/libjpeg-turboTargets.cmake"
but not all the files it references.
Call Stack (most recent call first):
/usr/lib/cmake/libjpeg-turbo/libjpeg-turboConfig.cmake:37 (include)
cmake/JPEGCodec.cmake:36 (find_package)
It is entirely correct. The file that’s mentioned in the installed CMake config file does not exist.
$ find lib -name '*jpeg*'
lib/cmake/libjpeg-turbo
lib/cmake/libjpeg-turbo/libjpeg-turboConfig.cmake
lib/cmake/libjpeg-turbo/libjpeg-turboConfigVersion.cmake
lib/cmake/libjpeg-turbo/libjpeg-turboTargets-relwithdebinfo.cmake
lib/cmake/libjpeg-turbo/libjpeg-turboTargets.cmake
lib/gdk-pixbuf-2.0/2.10.0/loaders/cygpixbufloader-jpeg.dll
lib/libopenjpeg.dll.a
lib/libturbojpeg.dll.a
lib/openjpeg-1.5
lib/pkgconfig/libopenjpeg.pc
lib/pkgconfig/libopenjpeg1.pc
lib/pkgconfig/libturbojpeg.pc
$ find bin -name '*jpeg*'
bin/cygjpeg-8.dll
bin/cygopenjpeg-1.dll
bin/cygturbojpeg-0.dll
So the DLL exists, but the import library does not. Everything else is present and correct as far as I can tell, but something is not right here. The import library is missing.
$ grep '\.a' lib/cmake/libjpeg-turbo/*
lib/cmake/libjpeg-turbo/libjpeg-turboTargets-relwithdebinfo.cmake: IMPORTED_IMPLIB_RELWITHDEBINFO "${_IMPORT_PREFIX}/lib/libjpeg.dll.a"
lib/cmake/libjpeg-turbo/libjpeg-turboTargets-relwithdebinfo.cmake:list(APPEND _cmake_import_check_files_for_libjpeg-turbo::jpeg "${_IMPORT_PREFIX}/lib/libjpeg.dll.a" "${_IMPORT_PREFIX}/bin/cygjpeg-8.dll" )
lib/cmake/libjpeg-turbo/libjpeg-turboTargets-relwithdebinfo.cmake: IMPORTED_IMPLIB_RELWITHDEBINFO "${_IMPORT_PREFIX}/lib/libturbojpeg.dll.a"
lib/cmake/libjpeg-turbo/libjpeg-turboTargets-relwithdebinfo.cmake:list(APPEND _cmake_import_check_files_for_libjpeg-turbo::turbojpeg "${_IMPORT_PREFIX}/lib/libturbojpeg.dll.a" "${_IMPORT_PREFIX}/bin/cygturbojpeg-0.dll" )
Because it’s referenced in the configuration, and has the DLL, and everything but this file is installed, this looks like a packaging error hence reporting it here as a bug.
Kind regards,
Roger
--
Problem reports: https://cygwin.com/problems.html
FAQ: https://cygwin.com/faq/
Documentation: https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |