appelmar / gdalcubes_cpp

Earth observation data cubes from GDAL image collections
MIT License
74 stars 7 forks source link

Windows compilation #11

Closed appelmar closed 5 years ago

appelmar commented 5 years ago

There are currently a few issues with compiling gdalcubes on Windows with MinGW:

Solutions to these problems might refer to #10 by reducing external dependencies.

Builds with MSVC have not been tried yet, because the R toolchain for package compilation uses MinGW.

appelmar commented 5 years ago

The current version can be compiled with MinGW 64, older versions of gcc as in RTools still do not work with the date library. Probably -DONLY_C_LOCALE will fix this.

appelmar commented 5 years ago

Issues with the date library are now fixed by defining -DONLY_C_LOCALE if compiling with GCC < 5. To solve compiliation issues with exprtk, we should include tinyexpr (https://github.com/codeplea/tinyexpr) as an alternative and add a compilation flag to decide which library to use for now.

appelmar commented 5 years ago

tinyexpr is now used as a default, solving "too many sections" issues and also compiles on 32 bit MinGW. The core library now has reduced dependencies (NetCDF, GDAL, curl, SQLite), which are e.g. available as binaries at rwinlib, see R package for details. MSVC is not considered at the moment. Closing for now.