Applied-GeoSolutions/lidar2dems

Install with easy-install.sh failed at lidar2dems git repo

ricardodepinho opened this issue · 2 comments

Hi, my first try to install lidar2dems using the easy-install.sh as failed.
http://applied-geosolutions.github.io/lidar2dems/assets/easy-install.sh
It gets almost everything installed.
But when it enters into the install "./setup.py install" from the repo "https://github.com/Applied-GeoSolutions/lidar2dems.git"
It start's reporting warnings and errors like the examples below, and it ends out the script install errors.
Thank you in advance.

cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
fiona/ogrext.c:1973:25: error: expected declaration specifiers or ‘...’ before  *’ token
 static OGRFieldSubType (*__pyx_f_5fiona_5_shim_get_field_subtype)(void *); /*pr
                         ^
fiona/ogrext.c:1974:64: error: unknown type name ‘OGRFieldSubType’
 static void (*__pyx_f_5fiona_5_shim_set_field_subtype)(void *, OGRFieldSubType)

Since the repo is a few years old, the Fiona library has changed enough that there appears to be some breakage.

If you go into setup.py and specify a Fiona version from about 3 years ago, eg. fiona==1.7.1, I was able to successfully install lidar2dems.

If you go into setup.py and specify a Fiona version from about 3 years ago, eg. fiona==1.7.1, I was able to successfully install lidar2dems.

I was building a docker/singularity image for HPC/portability and this helped me get lidar2dems installed. I tested several versions of fiona, and it looks to me like the change from 1.7.x to 1.8.x is what is causing the compile issues. Therefor, I used pip to install fiona==1.7.13 (the most recent 1.7.x version) before running the setup.py script for lidar2dems.