[gdal-dev] gdal 1.5.1 vc8 project compile error

ivan.lucena at pmldnet.com ivan.lucena at pmldnet.com
Fri Mar 28 14:26:06 EDT 2008


Hi Gennady,

The easiest way is to generate a new one by running:

> makegdal_gen.bat
Usage: makegdal_gen "MS Visual C++ version" > makegdalNN.vcproj
Examples:
   makegdal_gen 7.10 > makegdal71.vcproj
   makegdal_gen 8.00 > makegdal80.vcproj

The other idea is to edit the "Project/Properties/NMake/Build Command Line/ [...]" so you can add whatever extra settings your Command Prompt environment would need like setting a environment variable for example. You can also customize the "Rebuild" and "Clean" command line the same way.

The problem you have:

>  cd c:\my_Projects\packages\gdal-1.5.1\ nmake -f makefile.vc

Shows that there are two command on the same line without a new line or a "&&" to separate then. It should be:

cd c:\my_Projects\packages\gdal-1.5.1\ && nmake -f makefile.vc

or

cd c:\my_Projects\packages\gdal-1.5.1\
nmake -f makefile.vc

How did that happens? I don't know. It looks good on SVN: http://trac.osgeo.org/gdal/browser/trunk/gdal/makegdal80.vcproj#L19

Good luck,

Ivan



>  -------Original Message-------
>  From: Gennady Khokhorin <gok at aerometric-ak.com>
>  Subject: [gdal-dev] gdal 1.5.1 vc8 project compile error
>  Sent: Mar 28 '08 17:39
>  
>  Hello, gdalList!
>  Can not compile GDAL 1.5.1 using makegdal80.vcproj delivered with the
>  package.
>  Any suggestion how to fix it?
>  Below are studio output window and BuildLog.htm file contents:
>  
>  >------ Build started: Project: makegdal, Configuration: Release Win32
>  ------
>  1>Performing Makefile project actions
>  1>The system cannot find the path specified.
>  1>Project : error PRJ0019: A tool returned an error code from
>  "Performing Makefile project actions"
>  1>Build log was saved at
>  "file://c:\my_Projects\packages\gdal-1.5.1\Release\BuildLog.htm"
>  1>makegdal - 1 error(s), 0 warning(s)
>  ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
>  ==========
>  
>  
>  Build Log      Build started: Project: makegdal, Configuration:
>  Debug|Win32
>  Command Lines      Creating temporary file
>  "C:\DOCUME~1\gennady\LOCALS~1\Temp\BAT000001101408260.bat" with contents
>  [
>  @echo off
>  
>  cd c:\my_Projects\packages\gdal-1.5.1\ nmake -f makefile.vc
>  
>  if errorlevel 1 goto VCReportError
>  
>  goto VCEnd
>  
>  :VCReportError
>  
>  echo Project : error PRJ0019: A tool returned an error code from
>  "Performing Makefile project actions"
>  
>  exit 1
>  
>  :VCEnd
>  ]
>  Creating command line
>  "C:\DOCUME~1\gennady\LOCALS~1\Temp\BAT000001101408260.bat"
>  Output Window      Performing Makefile project actions
>  The system cannot find the path specified.
>  Project : error PRJ0019: A tool returned an error code from "Performing
>  Makefile project actions"
>  Results      Build log was saved at
>  "file://c:\my_Projects\packages\gdal-1.5.1\Debug\BuildLog.htm"
>  makegdal - 1 error(s), 0 warning(s)
>    
>  Regards,
>  
>  Gennady
>  _______________________________________________
>  gdal-dev mailing list
>  gdal-dev at lists.osgeo.org
>  http://lists.osgeo.org/mailman/listinfo/gdal-dev
>  


More information about the gdal-dev mailing list