bugra9 / gdal3.js

Convert raster and vector geospatial data to various formats and coordinate systems entirely in the browser.
https://gdal3.js.org
GNU Lesser General Public License v2.1
300 stars 45 forks source link

Build Failure #46

Closed danothemen closed 1 year ago

danothemen commented 1 year ago

Hello! I'm trying to get this building on my machine, but am running into an issue with the compilation of libspatialite it would seem. I see proj at build/native/src/proj-9.1.0, I've also gone ahead and installed it on my machine, but that doesn't seem to have helped either. Is there a trick to getting that compilation to work?

configure: error: 'libproj' is required but it doesn't seem to be installed on this system.
emconfigure: error: './configure --prefix=/home/daniel/gdal3.js/build/native/usr --enable-shared=no CFLAGS=-ULOADABLE_EXTENSION CPPFLAGS=-I/home/daniel/gdal3.js/build/native/usr/include/ LDFLAGS=-L/home/daniel/gdal3.js/build/native/usr/lib/ --with-geosconfig=/home/daniel/gdal3.js/build/native/usr/bin/geos-config --enable-geosadvanced=yes --enable-geopackage=yes --enable-examples=no --enable-minizip=no --enable-libxml2=no --disable-rttopo --enable-freexl=no' failed (returned 1)
make: *** [Makefile:119: build/native/src/libspatialite-5.0.1/Makefile] Error 1
bugra9 commented 1 year ago

Hello @danothemen,

Spatialite is dependent on the Proj library and the Proj library needs to compile first. We can check whether it is compiled or not. Is there a libproj.a file in /home/daniel/gdal3.js/build/native/usr/lib/?

Did you change the contents of the Makefile in this project?

danothemen commented 1 year ago

Thanks for the response! I wish I had some more info for you, but I think this was due to my having installed emscripten from the apt repo instead of through emsdk. I wound up throwing out the whole VM I was using and trying the build on a new one ( a couple of times) and wound up with a successful build.