protomaps / OSMExpress

Fast database file format for OpenStreetMap
BSD 2-Clause "Simplified" License
229 stars 19 forks source link

Master build failing on Ubuntu 22.04.1 LTS #39

Open hallahan opened 1 year ago

hallahan commented 1 year ago

I'm on a fresh Ubuntu 22.04 install, and I'm attempting to compile OSMExpress.

I get through CMake, and when I make, I get the following error:

[ 32%] Built target capnp
[ 32%] Building CXX object vendor/s2geometry/CMakeFiles/s2.dir/src/s2/base/stringprintf.cc.o
/home/n/OSMExpress/vendor/s2geometry/src/s2/base/stringprintf.cc:17:10: fatal error: 's2/base/stringprintf.h' file not found
#include "s2/base/stringprintf.h"
         ^~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [vendor/s2geometry/CMakeFiles/s2.dir/build.make:76: vendor/s2geometry/CMakeFiles/s2.dir/src/s2/base/stringprintf.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1791: vendor/s2geometry/CMakeFiles/s2.dir/all] Error 2
make: *** [Makefile:166: all] Error 2

I also attempted to run the 0.2.0 compiled binary, and I get this error.

./osmx: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory
bdon commented 1 year ago

I couldn't reproduce this on an ubuntu 22.04.1 with a fresh checkout, can you confirm the s2geometry submodule in vendor/ was initialized and synced correctly?

I don't think the compiled binary is going to be a viable option going forward without something like vcpkg.