[gdal-dev] Compiling GDAL with Visual Studio 2019

Alexis Vaisse alexis.vaisse at wysilab.com
Tue Sep 8 08:24:34 PDT 2020


  I started from a fresh copy of GDAL 3.1.3, so there should be nothing clean.

  Interestingly, I get the same kind of errors when calling nmake /f makefile.vc clean:


D:\Terrain\Extern\gdal-3.1.3>nmake /f makefile.vc clean

Microsoft (R) Program Maintenance Utility Version 14.27.29110.0
Copyright (C) Microsoft Corporation.  All rights reserved.

        call clean_main_build_output.bat
The system cannot find the path specified.

D:\Terrain\Extern\gdal-3.1.3>if exist gdal_i.lib del gdal_i.lib

D:\Terrain\Extern\gdal-3.1.3>if exist gdal301.dll del gdal301.dll

D:\Terrain\Extern\gdal-3.1.3>if exist gdal301.dll.manifest del gdal301.dll.manifest

D:\Terrain\Extern\gdal-3.1.3>if exist *.ilk del *.ilk
NMAKE : fatal error U1077: 'call' : return code '0x1'
Stop.


  Obviously there's something wrong in my configuration, but I can't find what it is.

     Alexis

-----Message d'origine-----
De : gdal-dev [mailto:gdal-dev-bounces at lists.osgeo.org] De la part de Jeff McKenna
Envoyé : mardi 8 septembre 2020 16:49
À : gdal-dev at lists.osgeo.org
Objet : Re: [gdal-dev] Compiling GDAL with Visual Studio 2019

On 2020-09-08 9:50 a.m., Alexis Vaisse wrote:
> 
>    Thanks.
>    I tried to follow your suggestion, updated nmake.opt, added the PROJ library and here is what I get:
> 
> 
> D:\Terrain\Extern\gdal-3.1.3>nmake -f makefile.vc MSVC_VER=1927 WIN64=1
> 
> Microsoft (R) Program Maintenance Utility Version 14.27.29110.0
> Copyright (C) Microsoft Corporation.  All rights reserved.
> 
>          cd port
>          nmake /nologo /f makefile.vc
>          call prev_dllbuild.bat
> The system cannot find the path specified.
> 
> D:\Terrain\Extern\gdal-3.1.3\port>IF NOT EXIST dllbuild.prev (ECHO 1 ) 1>dllbuild.prev
> 
> D:\Terrain\Extern\gdal-3.1.3\port>SET /P PREV_DLLBUILD= 0<dllbuild.prev
> 
> D:\Terrain\Extern\gdal-3.1.3\port>IF NOT "1" == "1" (ECHO 1 ) 1>dllbuild.prev
> NMAKE : fatal error U1077: 'call' : return code '0x1'
> Stop.
> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\bin\HostX64\x64\nmake.EXE"' : return code '0x2'
> Stop.

Have you first 'cleaned'?

    nmake /f makefile.vc clean
    nmake /f makefile.vc


-jeff



-- 
Jeff McKenna
MapServer Consulting and Training Services
co-founder of FOSS4G
http://gatewaygeo.com/





_______________________________________________
gdal-dev mailing list
gdal-dev at lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev



More information about the gdal-dev mailing list