tilemaker icon indicating copy to clipboard operation
tilemaker copied to clipboard

'make' ERROR on Ubuntu 18.04 Bionic

Open toton6868 opened this issue 6 years ago • 7 comments

Here is the error code

In file included from ./include/helpers.h:7:0,
                 from src/pbf_blocks.cpp:2:
./include/geomtypes.h:22:69: error: template argument 3 is invalid
 typedef boost::variant<Point,Linestring,MultiLinestring,MultiPolygon> Geometry;
                                                                     ^
./include/geomtypes.h:22:69: error: template argument 4 is invalid
In file included from src/pbf_blocks.cpp:2:0:
./include/helpers.h:32:29: error: ‘MultiPolygon’ does not name a type; did you mean ‘Polygon’?
 void ConvertToClipper(const MultiPolygon &mp, ClipperLib::Paths &out);
                             ^~~~~~~~~~~~
                             Polygon
./include/helpers.h:33:29: error: ‘MultiPolygon’ does not name a type; did you mean ‘Polygon’?
 void ConvertToClipper(const MultiPolygon &mp, ClipperLib::PolyTree &out);
                             ^~~~~~~~~~~~
                             Polygon
./include/helpers.h:35:57: error: ‘MultiPolygon’ has not been declared
 void ConvertFromClipper(const ClipperLib::PolyTree &pt, MultiPolygon &mp);
                                                         ^~~~~~~~~~~~
Makefile:13: recipe for target 'src/pbf_blocks.o' failed
make: *** [src/pbf_blocks.o] Error 1
rm include/vector_tile.pb.cc include/osmformat.pb.cc

toton6868 avatar Dec 17 '18 17:12 toton6868

That is strange, I compiled tilemaker using the Ubuntu 18.04 Live CD no problem. Do you have any further ideas as to the cause? (I am developing using Linux Mint 19.1 which is based on Ubuntu 18.04)

TimSC avatar Jan 28 '19 21:01 TimSC

(In particular, the Boost version might be relevant here.)

systemed avatar Jan 28 '19 21:01 systemed

I installed everything yesterday and I didn't get the error on Ubuntu 18.04 I installed boost using standard sudo apt-get install libboost-all-dev

qlerebours avatar Jul 06 '19 04:07 qlerebours

For me, the error is no exactly the same, but it's related with the libboost packages.

I've been able to follow up the guide without issues, until I ran the docker run command to process an osm.pbf I downloaded from Geofabrik. I have Ubuntu 18.04 by the way.

After running the docker run command, I've received this error:

tilemaker: error while loading shared libraries: libboost_program_options.so.1.65.1: cannot open shared object file: No such file or directory

However, I was able to install the libboost packages without issues. I ran sudo apt-get install libboost-all-dev. Any ideas¿?

If I try to install again the libboost-program-options (sudo apt install libboost-program-options-dev) it says I have 1.65.1.0ubuntu1 already installed.

carlos-mg89 avatar Sep 04 '19 13:09 carlos-mg89

At least, running tilemaker directly seems to work :) So it looks like the issue is with the docker image.

carlos-mg89 avatar Sep 04 '19 14:09 carlos-mg89

I don't know the first thing about Docker, I'm afraid. Leaving this open in case anyone does.

systemed avatar Sep 04 '19 14:09 systemed

@systemed It worked on Docker, on another computer that also has Ubuntu 18.04. So it's clearly something (most likely software related) on my another PC. Thanks!

carlos-mg89 avatar Sep 05 '19 10:09 carlos-mg89