[gdal-dev] gdal 1.5.1 vc8 project compile error

ivan.lucena at pmldnet.com ivan.lucena at pmldnet.com
Fri Mar 28 18:40:32 EDT 2008


Hi Gennady,

Hum, That is the funnies thing.

If I commit the .vcproj on SVN using CRLF between the lines, once somebody check it out the LF are gone and the same error will happen. I changed it to && (actually &&) with the hope that would take care of the problem. Now the && are disappearing. I don't know what to do. :(

In fact, what if we have just one very small .vcproj with "makegdal_gen 8.0 > $(ProjectPath)" on "Build"? :) That sounds crazy but it might work. Let me try, first I will replace the  && by new lines on the XML then I will press F7:

I've got a message saying that the project was changed outside the environment. Reload? "Yes!"

It works! :) 

Thanks Gennady.

Happy programming for you too!

Ivan







>  -------Original Message-------
>  From: Gennady Khokhorin <gok at aerometric-ak.com>
>  Subject: RE: [gdal-dev] gdal 1.5.1 vc8 project compile error
>  Sent: Mar 28 '08 20:33
>  
>  Hi, Ivan.
>  Did create it with makegdal_gen, the same result.
>  Went to the studio' makegdal/PropertyPage/NMake/Build Command Line
>  and did separate line in error message for 2.
>  As a result in makegdal80.vcproj (line 45) got such separation symbols:
>  BuildCommandLine="cd $(ProjectDir)
nmake -f makefile.vc"
>  It could be win specific coding issue.
>  Now building is fine. Probably you want to update it in
>  makegdal_get.bat.
>  
>  I'm with vc8.0.50727 + winXP(sp2)
>  
>  Happy programming!
>  gok
>  
>  
>  -----Original Message-----
>  From: ivan.lucena at pmldnet.com [mailto:ivan.lucena at pmldnet.com]
>  Sent: Friday, March 28, 2008 10:26 AM
>  To: Gennady Khokhorin; gdal-dev at lists.osgeo.org
>  Subject: Re: [gdal-dev] gdal 1.5.1 vc8 project compile error
>  
>  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