<div dir="ltr">I'm still struggling with compiling in the mongo driver to version 2.1 of the source. I compile the mongocxx driver (scons --prefix=<dir> --sharelibraries=yes install) and then use the build folder to point the gdal build at the mongoclient.so but, even after a successful ./configure I get the messages below. Looks to me like I'm missing symbols which should be defined somewhere else - is libmongoclient.so the only thing external to gdal that I need to link? Are the boost libraries included in the mongo-cxx-driver? I have the rest of boost on the system and the driver compiled fine but the final linking is where it falls over. all help gratefully received...<div><br></div><div>Jon.<br><div><br></div><div><div><font face="monospace, monospace">/bin/bash /home/ubuntu/gdal/gdal/gdal/libtool --mode=link       g++  gdalinfo.lo commonutils.lo  /home/ubuntu/gdal/gdal/gdal/<a href="http://libgdal.la">libgdal.la</a> -o gdalinfo</font></div><div><font face="monospace, monospace">libtool: link: g++ .libs/gdalinfo.o .libs/commonutils.o -o .libs/gdalinfo  /home/ubuntu/gdal/gdal/gdal/.libs/libgdal.so -L/usr/lib -L/home/ubuntu/gdal/mongo/mongo-cxx-driver/b2/lib -lgeos_c /usr/lib/x86_64-linux-gnu/libsqlite3.so -lodbc -lodbcinst /usr/lib/x86_64-linux-gnu/libexpat.so /usr/lib/libxerces-c.so -lnsl -ljasper -lnetcdf /usr/lib/libhdf5.so -lm /usr/lib/libmfhdfalt.so /usr/lib/libdfalt.so /usr/lib/x86_64-linux-gnu/libgif.so -ljpeg -lpng -lpq -lz -lpthread -lrt -ldl -lpcre /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so -lxml2 -lmongoclient -lboost_system -lboost_thread -lboost_regex </font></div><div><font face="monospace, monospace">/home/ubuntu/gdal/gdal/gdal/.libs/libgdal.so: undefined reference to `mongo::client::Options::setFIPSMode(bool)'</font></div><div><font face="monospace, monospace">/home/ubuntu/gdal/gdal/gdal/.libs/libgdal.so: undefined reference to `mongo::client::Options::setSSLPEMKeyFile(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'</font></div><div><font face="monospace, monospace">/home/ubuntu/gdal/gdal/gdal/.libs/libgdal.so: undefined reference to `mongo::client::Options::setSSLCRLFile(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'</font></div><div><font face="monospace, monospace">/home/ubuntu/gdal/gdal/gdal/.libs/libgdal.so: undefined reference to `mongo::client::shutdown()'</font></div><div><font face="monospace, monospace">/home/ubuntu/gdal/gdal/gdal/.libs/libgdal.so: undefined reference to `mongo::BSONObjBuilderValueStream::endField(mongo::StringData const&)'</font></div><div><font face="monospace, monospace">/home/ubuntu/gdal/gdal/gdal/.libs/libgdal.so: undefined reference to `mongo::client::initialize(mongo::client::Options const&)'</font></div><div><font face="monospace, monospace">/home/ubuntu/gdal/gdal/gdal/.libs/libgdal.so: undefined reference to `mongo::verifyFailed(char const*, char const*, unsigned int)'</font></div><div><font face="monospace, monospace">/home/ubuntu/gdal/gdal/gdal/.libs/libgdal.so: undefined reference to `mongo::BulkOperationBuilder::execute(mongo::WriteConcern const*, mongo::WriteResult*)'</font></div><div><font face="monospace, monospace">/home/ubuntu/gdal/gdal/gdal/.libs/libgdal.so: undefined reference to `mongo::DBClientCursor::nextSafe()'</font></div><div><font face="monospace, monospace">/home/ubuntu/gdal/gdal/gdal/.libs/libgdal.so: undefined reference to `mongo::BSONElement::Array() const'</font></div><div><font face="monospace, monospace">/home/ubuntu/gdal/gdal/gdal/.libs/libgdal.so: undefined reference to `mongo::msgasserted(int, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'</font></div><div><font face="monospace, monospace">/home/ubuntu/gdal/gdal/gdal/.libs/libgdal.so: undefined reference to `mongo::BulkOperationBuilder::~BulkOperationBuilder()'</font></div><div><font face="monospace, monospace">/home/ubuntu/gdal/gdal/gdal/.libs/libgdal.so: undefined reference to `mongo::BSONObjBuilder::appendElements(mongo::BSONObj)'</font></div><div><font face="monospace, monospace">/home/ubuntu/gdal/gdal/gdal/.libs/libgdal.so: undefined reference to `mongo::BSONObjBuilder::appendDate(mongo::StringData const&, mongo::Date_t)'</font></div><div><font face="monospace, monospace">/home/ubuntu/gdal/gdal/gdal/.libs/libgdal.so: undefined reference to `mongo::BulkOperationBuilder::BulkOperationBuilder(mongo::DBClientBase*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)'</font></div><div><font face="monospace, monospace">/home/ubuntu/gdal/gdal/gdal/.libs/libgdal.so: undefined reference to `mongo::BSONObjBuilder::appendElementsUnique(mongo::BSONObj)'</font></div><div><font face="monospace, monospace">/home/ubuntu/gdal/gdal/gdal/.libs/libgdal.so: undefined reference to `mongo::BSONObjBuilderValueStream::BSONObjBuilderValueStream(mongo::BSONObjBuilder*)'</font></div><div><font face="monospace, monospace">/home/ubuntu/gdal/gdal/gdal/.libs/libgdal.so: undefined reference to `mongo::client::Options::setSSLCAFile(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'</font></div><div><font face="monospace, monospace">/home/ubuntu/gdal/gdal/gdal/.libs/libgdal.so: undefined reference to `mongo::WriteResult::hasErrors() const'</font></div><div><font face="monospace, monospace">/home/ubuntu/gdal/gdal/gdal/.libs/libgdal.so: undefined reference to `mongo::client::Options::setSSLPEMKeyPassword(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'</font></div><div><font face="monospace, monospace">/home/ubuntu/gdal/gdal/gdal/.libs/libgdal.so: undefined reference to `mongo::client::Options::setSSLMode(mongo::client::Options::SSLModes)'</font></div><div><font face="monospace, monospace">/home/ubuntu/gdal/gdal/gdal/.libs/libgdal.so: undefined reference to `mongo::DBClientConnection::DBClientConnection(bool, mongo::DBClientReplicaSet*, double)'</font></div><div><font face="monospace, monospace">/home/ubuntu/gdal/gdal/gdal/.libs/libgdal.so: undefined reference to `mongo::client::Options::setSSLAllowInvalidCertificates(bool)'</font></div><div><font face="monospace, monospace">/home/ubuntu/gdal/gdal/gdal/.libs/libgdal.so: undefined reference to `mongo::DBClientWithCommands::auth(mongo::BSONObj const&)'</font></div><div><font face="monospace, monospace">/home/ubuntu/gdal/gdal/gdal/.libs/libgdal.so: undefined reference to `boost::filesystem2::detail::status_api(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, boost::system::error_code&)'</font></div><div><font face="monospace, monospace">/home/ubuntu/gdal/gdal/gdal/.libs/libgdal.so: undefined reference to `mongo::DBClientWithCommands::findAndRemove(mongo::StringData const&, mongo::BSONObj const&, mongo::BSONObj const&, mongo::BSONObj const&)'</font></div><div><font face="monospace, monospace">/home/ubuntu/gdal/gdal/gdal/.libs/libgdal.so: undefined reference to `mongo::DBClientWithCommands::getCollectionNames(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, mongo::BSONObj const&)'</font></div><div><font face="monospace, monospace">/home/ubuntu/gdal/gdal/gdal/.libs/libgdal.so: undefined reference to `mongo::BSONObjBuilderValueStream::operator<<(mongo::BSONElement const&)'</font></div><div><font face="monospace, monospace">/home/ubuntu/gdal/gdal/gdal/.libs/libgdal.so: undefined reference to `mongo::IndexSpec::IndexSpec()'</font></div><div><font face="monospace, monospace">/home/ubuntu/gdal/gdal/gdal/.libs/libgdal.so: undefined reference to `mongo::client::Options::setSSLAllowInvalidHostnames(bool)'</font></div><div><font face="monospace, monospace">/home/ubuntu/gdal/gdal/gdal/.libs/libgdal.so: undefined reference to `mongo::WriteResult::WriteResult()'</font></div><div><font face="monospace, monospace">/home/ubuntu/gdal/gdal/gdal/.libs/libgdal.so: undefined reference to `mongo::client::Options::Options()'</font></div><div><font face="monospace, monospace">/home/ubuntu/gdal/gdal/gdal/.libs/libgdal.so: undefined reference to `mongo::HostAndPort::HostAndPort(mongo::StringData const&)'</font></div><div><font face="monospace, monospace">/home/ubuntu/gdal/gdal/gdal/.libs/libgdal.so: undefined reference to `mongo::Status::toString() const'</font></div><div><font face="monospace, monospace">/home/ubuntu/gdal/gdal/gdal/.libs/libgdal.so: undefined reference to `mongo::IndexSpec::addKeys(mongo::BSONObj const&)'</font></div><div><font face="monospace, monospace">/home/ubuntu/gdal/gdal/gdal/.libs/libgdal.so: undefined reference to `mongo::OID::toString() const'</font></div><div><font face="monospace, monospace">/home/ubuntu/gdal/gdal/gdal/.libs/libgdal.so: undefined reference to `mongo::BSONElement::Obj() const'</font></div><div><font face="monospace, monospace">/home/ubuntu/gdal/gdal/gdal/.libs/libgdal.so: undefined reference to `mongo::BSONObj::jsonString(mongo::JsonStringFormat, int, bool) const'</font></div><div><font face="monospace, monospace">/home/ubuntu/gdal/gdal/gdal/.libs/libgdal.so: undefined reference to `mongo::BulkOperationBuilder::insert(mongo::BSONObj const&)'</font></div><div><font face="monospace, monospace">/home/ubuntu/gdal/gdal/gdal/.libs/libgdal.so: undefined reference to `mongo::OID::init(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'</font></div><div><font face="monospace, monospace">/home/ubuntu/gdal/gdal/gdal/.libs/libgdal.so: undefined reference to `mongo::invariantFailed(char const*, char const*, unsigned int)'</font></div><div><font face="monospace, monospace">collect2: ld returned 1 exit status</font></div><div><font face="monospace, monospace">make[1]: *** [gdalinfo] Error 1</font></div><div><font face="monospace, monospace">make[1]: Leaving directory `/home/ubuntu/gdal/gdal/gdal/apps'</font></div><div><font face="monospace, monospace">make: *** [apps-target] Error 2</font></div></div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 24, 2015 at 4:28 PM, kusala nine <span dir="ltr"><<a href="mailto:kusala9@googlemail.com" target="_blank">kusala9@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">great thanks - I'll have a go. many thanks for the pointer.<div><br></div><div>J</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 24, 2015 at 4:23 PM, Even Rouault <span dir="ltr"><<a href="mailto:even.rouault@spatialys.com" target="_blank">even.rouault@spatialys.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Jon,<br>
<br>
It is in the development version (2.1.0dev), not 2.0.0. The website displays<br>
the doc of the dev version.<br>
<br>
On Unix, you must use the following configure options:<br>
  --with-mongocxx=ARG        Include MongoCXX support (ARG=Path, yes or no)<br>
  --with-boost-lib-path=ARG   Path to boost libraries for mongocxx client<br>
<br>
On Windows, look at the directions in nmake.opt (search for MONGO)<br>
<br>
Even<br>
<div><div><br>
<br>
> Hi - has anyone got any pointers on compiling the mongodb drivers into the<br>
> latest 2.0.0 version of gdal. I've been watching for a while and the new<br>
> 2.0.0 page has a table saying that mongo is included but not compiled in by<br>
> default. I've downloaded the libraries and compiled them from the link on<br>
> the gdal "vector formats" page but no idea how to integrate the mongo<br>
> library into the rest of the ogr tools. I know there was a bit of traffic<br>
> about this a year ago but couldn't find anything more up to date. All help<br>
> gratefully received!....<br>
><br>
> thanks<br>
><br>
> Jon.(P).<br>
<br>
</div></div><span><font color="#888888">--<br>
Spatialys - Geospatial professional services<br>
<a href="http://www.spatialys.com" rel="noreferrer" target="_blank">http://www.spatialys.com</a><br>
</font></span></blockquote></div><br></div>
</div></div></blockquote></div><br></div>