Closed appelmar closed 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.
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.
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.
There are currently a few issues with compiling gdalcubes on Windows with MinGW:
The object file apply_pixel.obj leads to "too many sections" errors, which can only be solved using
-Wa,-mbig-obj
on x64 buildsCompiling the currently required Boost libraries is time consuming, openly available binaries use MSVC mostly
Linking the shared DLL did not work (the static .a does) and was canceled after 2 days (ld was still busy)#
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.