Return-Path: <SRS0=qfpz=GH=lists.osgeo.org=tiff-bounces@osgeo.org>
Delivered-To: filtered@awaresystems.be
Received: from mx2.pub.mailpod8-cph3.one.com ([10.27.38.12])
	by mailstorage22.cst.mailpod8-cph3.one.com with LMTP
	id mHxCCDN9OWUpQgAAwT5NuQ
	(envelope-from <SRS0=qfpz=GH=lists.osgeo.org=tiff-bounces@osgeo.org>)
	for <filtered@awaresystems.be>; Wed, 25 Oct 2023 20:40:19 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=custmx.one.com; s=20201015;
	h=sender:content-type:content-transfer-encoding:reply-to:from:list-subscribe:
	 list-help:list-post:list-unsubscribe:list-id:subject:mime-version:references:
	 message-id:in-reply-to:cc:to:date:x-halone-refid:x-halone-sa:from:x-halone-sa:
	 x-halone-refid;
	bh=1GutxUBJynnnsrjJLwbQrHuXYW68QC6KGQT1yjRisls=;
	b=vs+kvwCsazOfVcIiP7dRdO85+asKQAHVleo74HSdtDMSi0QrbNlYwRWP7mNDbzN61UvUCIcLZDcN1
	 S3nBbFabcRSm7B+wV0bCPrjmaglt88SnMr2RjQtYj1qhe2ZoEMzaHvUg7iSjzHgEIYzv27PN4J6l/z
	 TzZYtFUYK0sdz6Eni9DeQAg9pS1NcPsVjsPRp1uq37q3ND9tXIlWyb7/vp4GmEXZB5hy1u2PtAfcNo
	 6RsnydLhDCyAVB5Ai0z64vHQSveHAuztC76SMIC0MKn+Mi68mu+shYz4rgdOiYFCXw4lcxqekD7Kai
	 JeKBsnOWmsiTpvvxvnhu7sn5gKffUnQ==
X-HalOne-SA: -1
X-HalOne-RefID: 155866::1698266418-D6EC2598-5089FED2/0/0
Authentication-Results: mx2.pub.mailpod8-cph3.one.com;
	spf=pass smtp.mailfrom=osgeo.org smtp.remote-ip=140.211.15.3;
	dmarc=pass header.from=lists.osgeo.org;
X-HalOne-ID: b4c409f6-7376-11ee-85ee-98039b05783e
Received: from lists.osgeo.org (osgeo6.osgeo.osuosl.org [140.211.15.3])
	by mx2.pub.mailpod8-cph3.one.com (Halon) with ESMTPS
	id b4c409f6-7376-11ee-85ee-98039b05783e;
	Wed, 25 Oct 2023 20:40:18 +0000 (UTC)
Received: from osgeo6.osgeo.osuosl.org (localhost [127.0.0.1])
	by lists.osgeo.org (Postfix) with ESMTP id 4A9536061373;
	Wed, 25 Oct 2023 13:40:15 -0700 (PDT)
X-Greylist: delayed 875 seconds by postgrey-1.36 at osgeo6;
 Wed, 25 Oct 2023 13:40:14 PDT
Received: from smtp.simplesystems.org (smtp.simplesystems.org [65.66.246.90])
 by lists.osgeo.org (Postfix) with ESMTPS id 1B10E606136B
 for <tiff@lists.osgeo.org>; Wed, 25 Oct 2023 13:40:14 -0700 (PDT)
Received: from scrappy.simplesystems.org (scrappy.simplesystems.org
 [65.66.246.73])
 by smtp.simplesystems.org (8.14.4+Sun/8.14.4) with ESMTP id 39PKPcve019293;
 Wed, 25 Oct 2023 15:25:38 -0500 (CDT)
Date: Wed, 25 Oct 2023 15:25:38 -0500 (CDT)
X-X-Sender: bfriesen@scrappy.simplesystems.org
To: Ellen Johnson <ellenj@mathworks.com>
cc: "tiff@lists.osgeo.org" <tiff@lists.osgeo.org>
In-Reply-To: <SA1PR05MB8311B7CA9129BA5F7AFC68D9D3DEA@SA1PR05MB8311.namprd05.prod.outlook.com>
Message-ID: <alpine.GSO.2.20.2310251520510.20937@scrappy.simplesystems.org>
References: <SA1PR05MB8311B7CA9129BA5F7AFC68D9D3DEA@SA1PR05MB8311.namprd05.prod.outlook.com>
User-Agent: Alpine 2.20 (GSO 67 2015-01-07)
MIME-Version: 1.0
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16
 (smtp.simplesystems.org [65.66.246.90]); Wed, 25 Oct 2023 15:25:38 -0500 (CDT)
Subject: Re: [Tiff] libtiff configure questions on linking to different jpeg
 shared library name?
X-BeenThere: tiff@lists.osgeo.org
X-Mailman-Version: 2.1.34
Precedence: list
List-Id: TIFF and libtiff discussion <tiff.lists.osgeo.org>
List-Unsubscribe: <https://lists.osgeo.org/mailman/options/tiff>,
 <mailto:tiff-request@lists.osgeo.org?subject=unsubscribe>
List-Post: <mailto:tiff@lists.osgeo.org>
List-Help: <mailto:tiff-request@lists.osgeo.org?subject=help>
List-Subscribe: <https://lists.osgeo.org/mailman/listinfo/tiff>,
 <mailto:tiff-request@lists.osgeo.org?subject=subscribe>
From: Bob Friesenhahn via Tiff <tiff@lists.osgeo.org>
Reply-To: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Errors-To: tiff-bounces@lists.osgeo.org
Sender: "Tiff" <tiff-bounces@lists.osgeo.org>

On Wed, 25 Oct 2023, Ellen Johnson via Tiff wrote:

> Hi libtiff developers!
>   We just upgraded to libtiff v4.6.0 and want to build it with our recently added libjpeg-turbo v3.0.0.

>  Unfortunately we had to symbol version libjpeg-turbo on Linux (on 
> top of its existing symbol versions) to avoid symbol collisions with 
> other libjpeg versions.  As part of this work, we slightly modified 
> the libjpeg-turbo shared library name on Linux, Mac, and Windows - 
> for example on Linux, instead of the shared library 
> libjpeg.so.62.4.0, we named it libmwjpeg.so.62.4.0.

The need to do this is most unfortunate.  I was wondering about this 
issue.

>    In our libtiff makefile, we use configure on Linux and Mac and CMake on Windows. I think I figured out the CMake option to link libtiff to our libjpeg-turbo DLL, but I'm not sure how to modify the libtiff configure scripts to get Linux and Mac to do the same.
>    I see in the libtiff main folder there's both a configure and configure.ac file, and both have commands that link to libjpeg - "-ljpeg".  I tried changing this in both files to "-lmwjpeg" instead but that didn't work.  Could you please let me know which file or files I need to modify, and whether I need to manually run autoconf or similar tools after I make the change?

You can run the 'autogen.sh' script at the top of the libtiff source 
tree.  Even better than this, is add the --enable-maintainer-mode 
option when running the configure script since then the build will 
take care of itself after you edit a file.

You will need to make sure that Autotools (Autoconf, Automake, and 
libtool) are installed on your system.

Bob
-- 
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
Public Key,     http://www.simplesystems.org/users/bfriesen/public-key.txt
_______________________________________________
Tiff mailing list
Tiff@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/tiff
