<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6001.18203" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Well...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Have you checked your path to your include files
?</FONT></DIV>
<DIV><FONT face=Arial size=2>Could I see the part of the code where the errors
occured ?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thx</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Benoît Andrieu<BR><A
href="mailto:bea@ixsea.com">bea@ixsea.com</A><BR><A
href="mailto:benoit.andrieu@gmail.com">benoit.andrieu@gmail.com</A><BR></FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=isajmeri@rediffmail.com href="mailto:isajmeri@rediffmail.com">Ajmeri
Iqbal</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=bea@ixsea.com
href="mailto:bea@ixsea.com">bea@ixsea.com</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Cc:</B> <A title=gdal-dev@lists.osgeo.org
href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, March 30, 2009 3:22
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re :Re: Re :Re: Re :Re:
[gdal-dev] How to use GDAL Library</DIV>
<DIV><BR></DIV>Hi,<BR><BR>Thanks Benoît Andrieubea for your reply.<BR>you are
right, there is no need any cpp file. but when i build the
same code given in GDAL tutorial with QT Creator popups the
following error.<BR><BR><SPAN style="COLOR: #ff0000">g++ -enable-stdcall-fixup
-Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc
-Wl,-subsystem,console -mthreads -Wl -o debugImageRW.exe debug/main.o
-L"d:Qt2009.01qtlib" gdal_i.lib -lQtCored4</SPAN>
<P style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><SPAN
style="COLOR: #ff0000">mingw32-make[1]: Leaving directory
`D:/QT_Projects/ImageRW'</SPAN></P>
<P style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><SPAN
style="COLOR: #ff0000">mingw32-make: Leaving directory
`D:/QT_Projects/ImageRW'</SPAN></P>
<P style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><SPAN
style="COLOR: #ff0000">debug/main.o: In function `main':</SPAN></P>
<P style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><SPAN
style="COLOR: #ff0000">D:/QT_Projects/ImageRW/main.cpp:34: undefined reference
to `GDALDataset::GetRasterCount()'</SPAN></P>
<P style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><SPAN
style="COLOR: #ff0000">D:/QT_Projects/ImageRW/main.cpp:34: undefined reference
to `GDALDataset::GetRasterYSize()'</SPAN></P>
<P style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><SPAN
style="COLOR: #ff0000">D:/QT_Projects/ImageRW/main.cpp:34: undefined reference
to `GDALDataset::GetRasterXSize()'</SPAN></P>
<P style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><SPAN
style="COLOR: #ff0000">collect2: ld returned 1 exit status</SPAN></P>
<P style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><SPAN
style="COLOR: #ff0000">mingw32-make[1]: *** [debugImageRW.exe] Error
1</SPAN></P>
<P style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><SPAN
style="COLOR: #ff0000">mingw32-make: *** [debug] Error 2</SPAN></P>
<P style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0"><SPAN
style="FONT-WEIGHT: 600; COLOR: #ff0000">Exited with code
2.<BR><BR></SPAN><BR><FONT color=#000000>but the same code i builded with VC++
2005, its working fine.<BR></FONT><BR>unfortunatly
i want to link GDAL library in QT.<BR><BR>the bellow is my QT
.pro file setting<BR><BR>QT -= gui</P>
<P style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0">TARGET =
ImageRW</P>
<P style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0">CONFIG +=
console</P>
<P style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0">CONFIG -=
app_bundle</P>
<P style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0">TEMPLATE =
app</P>
<P style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0">SOURCES +=
main.cpp</P>
<P style="MARGIN: 0px; TEXT-INDENT: 0px; -qt-block-indent: 0">LIBS +=
gdal_i.lib<BR><BR>thanks in advance.<BR><BR><BR><BR>On Mon, 30 Mar 2009
14:42:07 +0200 Benoît Andrieu wrote<BR><BR><BR><BR><BR><BR><BR><BR>Hi
!<BR> <BR>You won't need any cpp files.<BR>Personally, I am using the
FWTools package which <BR>bundles dll, libs and headers
files.<BR> <BR>You just have to compile using gdal_priv.h<BR>Then link to
gdal_i.lib<BR>Then provide with your runtime all the dlls <BR>which
gdal_fw.dll is depending to.<BR>You will find which dlls it is depending to by
<BR>using Dependency Walker
(http://www.dependencywalker.com/).<BR> <BR>Then your runtime will be
able to use all of the <BR>image formats drivers that GDAL was compiled to
support.<BR> <BR>I hope this will
help.<BR> <BR>Regards,<BR> <BR>Benoît
Andrieubea@ixsea.combenoit.andrieu@gmail.com<BR><BR>----- Original Message
----- <BR>From: <BR>Ajmeri <BR>Iqbal <BR>To: bea@ixsea.com <BR>Cc:
gdal-dev@lists.osgeo.org <BR>Sent: Monday, March 30, 2009 11:06
<BR>AM<BR>Subject: Re :Re: Re :Re: [gdal-dev] How <BR>to use GDAL
Library<BR><BR>Hi,Actually i m working on Generic image reading/writing and
<BR>display on viewer with all of its information, so i think i need all
listed <BR>library. but dont know how to use them in my code.<BR>i have
downloded gdal_i.lib, gdal.dll and its include .h files..h files <BR>contains
only the prototype function to link with library but i could not find <BR>its
.cpp file which may containt implementation function of that linking
<BR>function of .h files.<BR>can u please give me broad idea or step by step
procedure about how do i <BR>link these library to c++ code.<BR>thanks in
advanceRegards,IqbalOn Fri, 27 Mar 2009 18:54:01 <BR>+0100 Benoît Andrieu
wroteHi, I <BR>am using FWTools 2.2.9So I am releasing my softwares with
most of the <BR>dlls (you can use depends to find
which). The linking is <BR>done with
<BR>:gdal_i.libgeos_i.libgeotiff_i.liblibtiff_i.libproj_i.lib But <BR>yo
may want to use more or less <BR>libraries... Regards, Benoît
<BR>Andrieubea@ixsea.combenoit.andrieu@gmail.com----- Original Message
<BR>----- From: Ajmeri Iqbal To: bea@ixsea.com Cc:
<BR>gdal-dev@lists.osgeo.org Sent: Friday, March 27, 2009 3:11 <BR>PMSubject:
Re :Re: [gdal-dev] How to use GDAL LibraryHi Benoît <BR>Andrieu,Thanks for
reply.i already saw that tutorial,but the problame is <BR>how to and which
library to be linked using QT(most probably same way of <BR>C/C++).coz there
is a three library named gdal16.dll, gdal_i.lib and <BR>gdal.lib.On Fri, 27
Mar 2009 11:33:42 +0100 Benoît Andrieu <BR>wroteHi, If you want to use
GDAL in C / C++, take a look at the <BR>tutorial at
http://www.gdal.org/gdal_tutorial.html.It is really <BR>straightforward, I
used this for the integration of GDAL in our modules <BR>and it worked
fine. Regards, Benoît
<BR>Andrieubea@ixsea.combenoit.andrieu@gmail.com----- Original Message
<BR>----- From: Ajmeri Iqbal To: gdal-dev@lists.osgeo.org Sent: Friday,
<BR>March 27, 2009 11:06 AMSubject: [gdal-dev] How to use GDAL LibraryDear
<BR>all,I want to use GDAL library in my project using QT.How could i use this
<BR>library for Reading and writing the Raster images (i.e.
<BR>JPEG,JPEG200,TIFF,GeoTiff,BMP,PNG,GIF, etc)please help me.Thanks in
<BR>advance_______________________________________________gdal-dev mailing
<BR>listgdal-dev@lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/gdal-dev<BR><BR><BR><BR><BR><BR></P><BR>
<TABLE style="FONT-SIZE: 11px; LINE-HEIGHT: 15px; FONT-FAMILY: Verdana"
height=57 cellSpacing=0 cellPadding=0 width=644 border=0>
<TBODY>
<TR>
<TD><A
href="http://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.com/signatureline.htm@Middle?"
target=_blank><IMG
src="http://sigads.rediff.com/RealMedia/ads/adstream_nx.ads/www.rediffmail.com/signatureline.htm@Middle"></A></TD></TR></TBODY></TABLE></BLOCKQUOTE></BODY></HTML>