Closed yan-map closed 6 months ago
Which OS / version do you have? How exactly did you prepare the build environment (cmake ..
?). What is your cmake
and make
version?
Which OS / version do you have? How exactly did you prepare the build environment (
cmake ..
?). What is yourcmake
andmake
version?
Ubuntu 20.04.6 LTS Cmake 3.27.8 GNU Make 4.2.1 gcc 9.4.0
I've used cmake ..
and then tried make -j
and make install
Unfortunately, the Docker method is not suitable when using gtfs2graph
: an error occurs:
Cannot read from ZIP file, was compiled without libzip
That is strange, because we build on Ubuntu 20.04 with Github actions, and everything works smoothly there (https://github.com/ad-freiburg/loom/actions/runs/6548744759/job/17784104184).
As the error seems to be related to libprotobuf, I just tried compiling without it, but that also worked without problems.
After cmake ..
, could you post the full contents of build/src/transitmap/output/protobuf/CMakeFiles/proto.dir/build.make
here?
Regarding the Docker method: indeed, the Docker container is currently build without ZIP-support. You have to extract the GTFS zip into a directory and give that directory as a GTFS input path.
I will fix the Dockerfile ASAP to also include the optional dependencies libzip
and libprotobuf-dev
.
libzip
and libprotobuf-dev
are now installed in the Dockerfile. Note, however, that you cannot give the ZIP path directly to the interactive Docker run command, as Docker has no access to this file inside the container. You have to mount some path inside the Container to achieve that.
I'm also getting the exact same error originally mentioned in this thread. I've been trying a million different things to try and get it to work, and it's compiled successfully once, but I have no idea why. It seems to have something to do with the C compiler? Help would be appreciated. Thanks!
src/transitmap/output/protobuf/CMakeFiles/proto.dir/build.make:73: *** target pattern contains no '%'. Stop. make[1]: *** [CMakeFiles/Makefile2:668: src/transitmap/output/protobuf/CMakeFiles/proto.dir/all] Error 2