[gdal-dev] [GDAL 1.5.1] How to build and run GDAL 1.5.1 on windows
Mateusz Loskot
mateusz at loskot.net
Fri Aug 8 08:31:41 EDT 2008
Cherif Oueslati wrote:
> Hello every body,
>
> I found a problem to run the GDAL 1.5.1 in a MS Visual Studio 2003
> Environment, to test the implementation of a driver that i developed.
> The error appears when i would like to run the project and indicates that it
> is impossible to begin the debug because it's impossible to start the
> "gdal15.dll".
Cherif,
This is correct, you can no *run* a DLL (if you mean this as "start the
gdal15.dll") in any version of Visual Studio.
You need to add your own test program (.exe project) and attach its
project to the solution, configure dependencies and set your test
project as startup project.
If you don't know how to do it, refer MSDN and VS documentation:
http://msdn.microsoft.com/en-us/library/0bxe8ytt.aspx
> Someone suggest to me to well define the "environment variables".
> Can you tell me how could i run gdal 1.5.1 or how to set the "environment
> variables" inside the visual studio it self.
All this is well explained in the VS documentation:
http://msdn.microsoft.com/en-us/library/aa909648.aspx
But please notice, you do need to set environment variables to be able
to fully debug and test GDAL dll, but environment variables does not the
first problem. You still need to create a project for test program (.exe
application).
Another option but IMHO more difficult if you are not experienced with
VS and debugging, as Tamas suggested, is to attach debugging session to
a process started as .exe program, for example gdalinfo or ogrinfo.
In case you don't know how to configure and use Visual Studio debugger,
I recommend to read MSDN:
http://msdn.microsoft.com/en-us/library/d0b8xh0y.aspx
Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
Charter Member of OSGeo, http://osgeo.org
More information about the gdal-dev
mailing list