[gdal-dev] Build with MinGW in Linux

Sandro Mani manisandro at gmail.com
Mon Nov 27 09:00:53 PST 2017


On 27.11.2017 17:52, Ari Jolma wrote:
> My PR https://github.com/OSGeo/gdal/pull/265 currently fails on MinGW 
> cross compilation and on Windows (AppVeyor) while running a test 
> involving gdal.Translate (python code). The error is "ValueError: 
> Received a NULL pointer." which is from the Swig bindings.
>
> How could I study the issue on my own Linux? I.e., how do I setup a 
> MinGW cross-compilation setup, are there instructions somewhere? I 
> could do that on a virtual machine but rather not in Windows. I've 
> compiled years ago on MinGW but that was in Windows and it seems that 
> cross-compilation (like Travis is doing) has improved lately.
>
Fedora ships a mingw-gdal package, the steps to build it are basically 
documented in the spec file [1]. Just install everything listed as 
BuildRequires and follow the relevant steps in %prep and %build.

Hope this helps
Sandro

[1] 
https://src.fedoraproject.org/rpms/mingw-gdal/blob/master/f/mingw-gdal.spec



More information about the gdal-dev mailing list