[gdal-dev] Build with MinGW in Linux

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[gdal-dev] Build with MinGW in Linux

Ari Jolma-2
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.

Ari


_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: Build with MinGW in Linux

Sandro Mani

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

_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: Build with MinGW in Linux

Even Rouault-2
In reply to this post by Ari Jolma-2

On lundi 27 novembre 2017 18:52:26 CET 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.

>

 

For the mingw error, I guess you could reproduce the same with a non-curl enabled build (the mingw targets do not have curl enabled)

 

wcs_6() lacks an introductory check:

 

if gdaltest.wcs_drv is None:

return 'skip'

 

The MSVC/Appveyor failures are different and look like a segfault ( the AppVeyor target do have curl enabled)

 

 

> Ari

>

>

> _______________________________________________

> gdal-dev mailing list

> [hidden email]

> https://lists.osgeo.org/mailman/listinfo/gdal-dev

 

 

--

Spatialys - Geospatial professional services

http://www.spatialys.com


_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev