Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No longer compiles, repo needs updating #11

Open
peterbmckinley opened this issue Feb 15, 2021 · 3 comments
Open

No longer compiles, repo needs updating #11

peterbmckinley opened this issue Feb 15, 2021 · 3 comments

Comments

@peterbmckinley
Copy link

peter@peter-powermatemlxxx:/morituri$ make -j2
g++ -std=c++11 -O0 -g -o comm2osm-debug comm2osm.cpp plugins/navteq/navteq_plugin.cpp plugins/dummy/dummy_plugin.cpp -I/home/peter/libs/libosmium/include -Iplugins -lbz2 -lgdal -lexpat -lgeos -lpthread -lz -lprotobuf-lite -lboost_system -lboost_filesystem -losmpbf
g++ -std=c++11 -o comm2osm comm2osm.cpp plugins/navteq/navteq_plugin.cpp plugins/dummy/dummy_plugin.cpp -I/home/peter/libs/libosmium/include -Iplugins -lbz2 -lgdal -lexpat -lgeos -lpthread -lz -lprotobuf-lite -lboost_system -lboost_filesystem -losmpbf
In file included from /home/peter/libs/libosmium/include/osmium/io/o5m_input.hpp:42,
from /home/peter/libs/libosmium/include/osmium/io/any_input.hpp:48,
from plugins/navteq/navteq_plugin.cpp:8:
/home/peter/libs/libosmium/include/osmium/io/detail/o5m_input_format.hpp:56:10: fatal error: protozero/exception.hpp: No such file or directory
56 | #include <protozero/exception.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /home/peter/libs/libosmium/include/osmium/io/o5m_input.hpp:42,
from /home/peter/libs/libosmium/include/osmium/io/any_input.hpp:48,
from plugins/navteq/navteq_plugin.cpp:8:
/home/peter/libs/libosmium/include/osmium/io/detail/o5m_input_format.hpp:56:10: fatal error: protozero/exception.hpp: No such file or directory
56 | #include <protozero/exception.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:63: comm2osm] Error 1
make: *** Waiting for unfinished jobs....
make: *** [Makefile:60: comm2osm-debug] Error 1
peter@peter-powermatemlxxx:
/morituri$

@peterbmckinley
Copy link
Author

libprotobuf-dev is already the newest version (3.6.1.3-2ubuntu5).

@CFretter
Copy link

CFretter commented Feb 28, 2021

I think I could remove that error by installing libprotozero-dev, but now it fails differently:

In file included from plugins/navteq/../util.hpp:22, from plugins/navteq/navteq_util.hpp:12, from plugins/navteq/navteq_plugin.cpp:16: plugins/navteq/../readers.hpp:24:86: error: ‘cerr’ is not a member of ‘std’ 24 | OGRLayer* read_shape_file(boost::filesystem::path shp_file, std::ostream& out = std::cerr) { |
looks like this one can be fixed by adding
#include <iostream>
into that file

so now I have:
In file included from plugins/navteq/../util.hpp:22, from plugins/navteq/navteq_util.hpp:12, from plugins/navteq/navteq_plugin.cpp:16: plugins/navteq/../readers.hpp: In function ‘OGRLayer* read_shape_file(boost::filesystem::path, std::ostream&)’: plugins/navteq/../readers.hpp:28:62: error: ‘Open’ is not a member of ‘OGRSFDriverRegistrar’ 28 | OGRDataSource *input_data_source = OGRSFDriverRegistrar::Open(shp_file.c_str(), FALSE); |

@otbutz
Copy link

otbutz commented Jan 12, 2022

A fork is maintained at https://github.com/OPTITOOL/morituri

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants