[Gdal-dev] Visual C++ projects

Lucena, Ivan ivan.lucena at pmldnet.com
Tue Oct 2 06:10:27 EDT 2007


Hi there,

For those who Edit/Build GDAL using Visual Studio.

I updated the two Visual C++ Makefile projects in GDAL, 
makegdal71.vcproj and makegdal80.vcproj.

Now they include in the tree all the sources code and header from gcore, 
alg, port, apps, frmts/*, ogr, and ogrsf_frmts/*.

Advantages of using a Makefile project:

o Uses the original makefile.vc and nmake.opt
o Auto-complete works just like a regular "Win32 DLL" project
o "Go to definition" and "Go to declaration" works too
o Interactive debugging works just the same

The current settings are:
--------------------------------------
Build:
run nmake -f makefile.vc

Rebuild:
run nmake -f makefile.vc clean
run nmake -f makefile.vc
run nmake -f makefile.vc install

Clean:
run nmake -f makefile.vc clean
--------------------------------------

But you can play with those settings the way it attends you better. For 
example, If you want to use the F7 key just to run your driver's 
makefile, you can changed the Build script to something like that:

--------------------------------------
Build:
cd $(ProjectDir)/frmts/driver
run nmake -f makefile.vc
--------------------------------------

Best regards,

Ivan



More information about the Gdal-dev mailing list