DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 5BU6pDc94123192
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 5BU6pDc94123192
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=N6ppvkPn
X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 88A004BA23E7
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1767077472;
	bh=8pfdG2b2LjCZzGytATY7GaXYiEsUiLGg3XkB593Isx8=;
	h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe:
	 List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
	 From;
	b=N6ppvkPnxrdQbJs+OExRR89T7qbGPwH+aZE4wZ3UOGzDFFOHLzJ7Hyi/CHGyPWpex
	 LOJBKUaTMomvFpEqISjZAPMEnhIq8ZUyTMzaAu+e190MgXHnTyskDQEj0Ec7TzrGfm
	 VUcUgCEcb7d8TuT0j0v9ulGCt51/FyZaTcSrM05U=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9F6424BA2E25
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 9F6424BA2E25
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1767077424; cv=none;
 b=xHeXblbbo9VHx4rbT7N0v9jesselFABdOuPr3k8dji5YZ/U5G5NcuUdFeC9s0F9POvt2hrSbqMFQ5a3IaK3dXgS/KjqEid6KiaBEAdbtbPwmHh6i/e1ihMAPcF+Qe2Q8WKjzsfMx/ApwzFZJQVWg1EjUoYZ7WnH1Ai7bPNDDHTA=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
 t=1767077424; c=relaxed/simple;
 bh=2VoeJKyNr4Hg6SE1jaqzJagXif4/nuPQx/p/Y7o92q8=;
 h=Date:From:To:Subject:Message-ID:MIME-Version;
 b=f9e1c3zSKdvmmWkoaNAIwImOxKNyGPs+1gBcnALxOq6jnN98xSzg+TFHHzT1g+ev6esFwUBDmaYkhuznqPjB0NVFYqSQlupuEa9rhkiZsOOPo5ImicQbFB42Zn5g0yklVnV/5ANX63SwrGvkiGRsf8NJPxoYz1CVIEJy3P6OBKE=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9F6424BA2E25
Date: Tue, 30 Dec 2025 06:50:22 +0000
To: Marco Atzeri via Cygwin <cygwin@cygwin.com>
Subject: Pillow also wants libjpeg-devel (Was Re: Failure to link with
 libjpeg.a..
Message-ID: <aVN2LkOoxK_8Ws46@sdf.org>
Mail-Followup-To: Marco Atzeri via Cygwin <cygwin@cygwin.com>
References: <AAE47C2C-22AE-4EB9-B5DB-209C99B4D239@codelibre.net>
 <58a0f065-c873-4122-87e3-4752ac78a6c4@gmail.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <58a0f065-c873-4122-87e3-4752ac78a6c4@gmail.com>
User-Agent: Mutt/2.2.14 (2025-02-20)
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.30
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Dr Bean via Cygwin <cygwin@cygwin.com>
Reply-To: Dr Bean <drbean@freeshell.org>
Content-Type: text/plain; charset="utf-8"
Errors-To: cygwin-bounces~archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie.com@cygwin.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 5BU6pDc94123192

On Mon, 29 Dec 2025, Marco Atzeri via Cygwin wrote:

> On 29/12/2025 17:42, Roger Leigh via Cygwin wrote:
> > 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.

> install libjpeg-devel

Pillow, a dependency of the python mastodon TUI app, 
mastui also requires libjpeg-devel.

	RequiredDependencyException:

	The headers or library files could not be found for jpeg,
	a required dependency when compiling Pillow from source.


> https://cygwin.com/cgi-bin2/package-cat.cgi?file=x86_64%2Flibjpeg-devel%2Flibjpeg-devel-3.1.3-1&grep=libjpeg.dll.a



> > 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


-- 
Greg "Dr Bean" Matheson		None of the language can be explained well
http://drbean.sdf.org		until most of it has already been explained.
drbean@freeshell.org		--Norman Cohen
				

-- 
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

