Return-Path: <awaresystems.be+caf_=filtered=awaresystems.be@gmail.com>
X-Original-To: filtered@awaresystems.be
Delivered-To: filtered@awaresystems.be
Received: from mx-i.one.com (mx-i.one.com [91.198.169.56])
	by mail9.b-one.net (Postfix) with ESMTP id 5C787401F08
	for <filtered@awaresystems.be>; Wed,  1 Feb 2012 20:20:16 +0100 (CET)
X-Virus-Scanned: by one.com
Received-SPF: pass (mx-i: domain of awaresystems.be+caf_=filtered=awaresystems.be@gmail.com designates 209.85.160.48 as permitted sender)
X-Greylist: whitelisted by SQLgrey-1.8.0-rc2
Received: from mail-pw0-f48.google.com (mail-pw0-f48.google.com [209.85.160.48])
	by mx-i.one.com (Postfix) with ESMTP id C76B113FBE86
	for <filtered@awaresystems.be>; Wed,  1 Feb 2012 19:20:15 +0000 (UTC)
Received: by pbcc11 with SMTP id c11so1582323pbc.21
        for <filtered@awaresystems.be>; Wed, 01 Feb 2012 11:20:14 -0800 (PST)
Received: by 10.68.240.164 with SMTP id wb4mr184330pbc.57.1328124014393;
        Wed, 01 Feb 2012 11:20:14 -0800 (PST)
X-Forwarded-To: filtered@awaresystems.be
X-Forwarded-For: awaresystems.be@gmail.com filtered@awaresystems.be
Delivered-To: awaresystems.be@gmail.com
Received: by 10.142.51.2 with SMTP id y2cs293521wfy;
        Wed, 1 Feb 2012 11:20:13 -0800 (PST)
Received: by 10.68.195.73 with SMTP id ic9mr152890pbc.72.1328124012882;
        Wed, 01 Feb 2012 11:20:12 -0800 (PST)
Received-SPF: softfail (google.com: best guess record for domain of transitioning tiff-bounces@lists.maptools.org does not designate 91.198.169.250 as permitted sender) client-ip=91.198.169.250;
Received: by 10.130.142.13 with POP3 id p13mf703005dad.9;
        Wed, 01 Feb 2012 11:20:12 -0800 (PST)
X-Gmail-Fetch-Info: info@awaresystems.be 1 pop.awaresystems.be 110 info@awaresystems.be
X-Original-To: info@awaresystems.be
Delivered-To: info@awaresystems.be
Received: from mx-s.one.com (mx-s.one.com [91.198.169.250])
	by mail9.b-one.net (Postfix) with ESMTP id 0627E401F08
	for <info@awaresystems.be>; Wed,  1 Feb 2012 20:14:33 +0100 (CET)
X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0-rc2
Received: from lists.maptools.org (lists.maptools.org [65.39.174.144])
	by mx-s.one.com (Postfix) with ESMTP id 9261128E72ED
	for <info@awaresystems.be>; Wed,  1 Feb 2012 19:14:32 +0000 (UTC)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id E653D1ED9E3;
	Wed,  1 Feb 2012 14:13:23 -0500 (EST)
Received: from mgw-da02.nokia.com (smtp.nokia.com [147.243.128.26])
	by lists.maptools.org (Postfix) with ESMTPS id BFF841EDAB8
	for <tiff@lists.maptools.org>; Wed,  1 Feb 2012 13:49:18 -0500 (EST)
Received: from vaebh105.NOE.Nokia.com (vaebh105.europe.nokia.com
	[10.160.244.31])
	by mgw-da02.nokia.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id
	q11InBCH021118; Wed, 1 Feb 2012 20:49:13 +0200
Received: from smtp.mgd.nokia.com ([65.54.30.56]) by vaebh105.NOE.Nokia.com
	over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); 
	Wed, 1 Feb 2012 20:49:12 +0200
Received: from 008-AM1MPN1-033.mgdnok.nokia.com ([169.254.3.94]) by
	008-AM1MMR1-001.mgdnok.nokia.com ([65.54.30.56]) with mapi id
	14.01.0355.003; Wed, 1 Feb 2012 19:49:12 +0100
From: <christopher.schmidt@nokia.com>
To: <warmerdam@pobox.com>
Thread-Topic: [Tiff] linking libtiff in ubuntu
Thread-Index: AQHM4QzECP8dI1Sb6kKjkad7ToqzvJYoSl2AgAAHJ4A=
Date: Wed, 1 Feb 2012 18:49:11 +0000
Message-ID: <4A84F89F-FB41-4DB3-8FB6-A43CD3FC5A9C@nokia.com>
References: <CAPKW8o3hKn9JXjMTBYU-+WhzEQ62OEYzTh51Pg4BayQODJFT-w@mail.gmail.com>
	<CA+YzLBfgFMMq-C2n9Uo2aOMPZzbp-LozbCutftSThdmESx3GtA@mail.gmail.com>
In-Reply-To: <CA+YzLBfgFMMq-C2n9Uo2aOMPZzbp-LozbCutftSThdmESx3GtA@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [172.16.39.199]
Content-ID: <2D7B62A13AC2D74D86D5196EC60F96DA@mgd.nokia.com>
MIME-Version: 1.0
X-OriginalArrivalTime: 01 Feb 2012 18:49:12.0801 (UTC)
	FILETIME=[309ABD10:01CCE112]
X-Nokia-AV: Clean
Cc: tiff@lists.maptools.org, tin.alegre@gmail.com
Subject: Re: [Tiff] linking libtiff in ubuntu
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: TIFF and libtiff discussion <tiff.lists.maptools.org>
List-Unsubscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=unsubscribe>
List-Archive: <http://lists.maptools.org/mailman/private/tiff>
List-Post: <mailto:tiff@lists.maptools.org>
List-Help: <mailto:tiff-request@lists.maptools.org?subject=help>
List-Subscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

Note that apt-cache search is searching the packages you *could* install,
not the packages that *are* installed. dpkg is the tool that shows
what you have. In this case, it seems like perhaps you need to 
'apt-get install libtiff4-dev' to get the development libraries on your
system...

-- Chris

On Feb 1, 2012, at 1:23 PM, ext Frank Warmerdam wrote:

> On Wed, Feb 1, 2012 at 9:41 AM, Martin Alegre <tin.alegre@gmail.com> wrote:
>> Dear all,
>> 
>> I'm wondering, which is the correct way to link the libtiff library in
>> ubuntu? I'm using g++ 4.6.0 on Ubuntu 11.04 and running the command below to
>> build the executable:
>> g++ -ggdb -ansi -std=c++0x -llibtiff ./src/color.cpp  -I./inc -o
>> ./obj/color.o
>> 
> 
> Martin,
> 
> On my system I see:
> 
> warmerdam@gdal:~$ apt-cache search libtiff
> pngtools - series of tools for PNG (Portable Network Graphics) images
> libtiff-doc - TIFF manipulation and conversion documentation
> libtiff-tools - TIFF manipulation and conversion tools
> libtiff4 - Tag Image File Format (TIFF) library
> libtiff4-dev - Tag Image File Format library (TIFF), development files
> libtiffxx0c2 - Tag Image File Format (TIFF) library -- C++ interface
> libtiff-opengl - TIFF manipulation and conversion tools
> warmerdam@gdal:~$ ls -l /usr/include/tiffio.h
> -rw-r--r-- 1 root root 20428 2011-04-20 10:42 /usr/include/tiffio.h
> 
> warmerdam@gdal:~$ cat test1.c
> #include <tiffio.h>
> 
> int main(int argc, char **argv)
> 
> {
> 	TIFF *h = TIFFOpen("utm.tif","r");
> }
> warmerdam@gdal:~$ g++ test1.c -o test1 -ltiff
> 
> So you shouldn't need to do anything special.  Of course you are
> running into problems but I'm not sure why.  Do check if tiffio.h is
> in /usr/include, /usr/include/libtiff or somewhere similar.
> 
> Best regards,
> -- 
> ---------------------------------------+--------------------------------------
> I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam@pobox.com
> light and sound - activate the windows | http://pobox.com/~warmerdam
> and watch the world go round - Rush    | Geospatial Software Developer
> _______________________________________________
> Tiff mailing list: Tiff@lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/tiff
> http://www.remotesensing.org/libtiff/

_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
