mapnik-mongo icon indicating copy to clipboard operation
mapnik-mongo copied to clipboard

Unable to compile on OSX

Open spinatmensch opened this issue 11 years ago • 0 comments

Hi, I tried to compile this plugin but I got several errors:

In file included from mongodb_datasource.cpp:24: In file included from ./mongodb_datasource.hpp:47: In file included from ./connection_manager.hpp:27: ./connection.hpp:52:52: error: no member named 'getScopedDbConnection' in 'mongo::ScopedDbConnection'; did you mean 'ScopedDbConnection'? conn_.reset(mongo::ScopedDbConnection::getScopedDbConnection... ~~~~~~~~~~~~~~~~~~~~~~~~~~~^ /usr/local/include/mongo/client/connpool.h:284:28: note: 'ScopedDbConnection' declared here class MONGO_CLIENT_API ScopedDbConnection : public AScopedConnection { ^ 1 error generated. make: *** [mongodb_datasource.o] Error 1

commenting out line 52 ends up with:

ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [mongodb.input] Error 1

It would be great if you can fix it

spinatmensch avatar Nov 15 '14 03:11 spinatmensch