[gdal-dev] Can't compile GDAL 2.4.0 with Visual 2017 - 32 bits
PROVIN
rprovin at altoa.fr
Mon Feb 25 06:44:35 PST 2019
Hello Jeff,
Thank you for your answer, I had tried that already (I usually compile GDAL
this way with NMAKE),
but I had the exact same error.
Maybe this has to do with my installation of Visual Studio ?
Remi
Hi Remi,
Personally I'd recommend using the provided nmake.opt inside GDAL's root
directory, and modifying that for your own local libraries. (note that
the cleanest way to do this is to create a new file 'nmake.local' and
put your settings in there, leaving the distributed nmake.opt as
reference only, and then execute that with the command:
nmake /f makefile.vc
(others may recommend using the *.bat magic, but sometimes the raw
commandline is more fun ha)
Have a nice weekend,
-jeff
On 2019-02-21 9:18 AM, PROVIN wrote:
> Hello,
>
> I am trying to compile GDAL (version 2.40, but I also tried 2.3.1) with
> Visual 2017 in 32 bits.
>
> I used the generate_vcxproj.bat to generate my Visual project /
> solution, this way (as indicated) :
>
> generate_vcxproj.bat 15.0 32 gdal_vs2017
>
> The compilation gives the following error :
>
> fatal error C1083: Impossible d'ouvrir le fichier include : 'stdio.h' :
> No such file or directory (compilation du fichier source cpl_list.cpp)
>
> I have this error for all the files cpl_XXXX.cpp of "port" folder.
>
> It is strange because these files are accessible when I right click on
> the line
>
> #include <stdio>
>
> and open the file.
>
> I tried to retarget the project, tried to reinstall Visual 2017.
>
> I would be glad if anyone had any advice !
>
> Thank you,
>
> REMI
>
--
Jeff McKenna
MapServer Consulting and Training Services
https://gatewaygeomatics.com/
sgn
Rémi PROVIN
Ingénieur géomatique
854 route de Rémire - 97354 Rémire Montjoly
tél : 05-94-25-61-93 - fax : 05-94-25-61-94
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20190225/c8b5dfa9/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 5615 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20190225/c8b5dfa9/attachment.png>
More information about the gdal-dev
mailing list