strands-project / mongodb_store

MongoDB tools for storing and analysing runs of ROS systems.
BSD 3-Clause "New" or "Revised" License
49 stars 73 forks source link

add mongo::client::initialize to nodes that use libmongocxx legacy #229

Closed bbferka closed 4 years ago

bbferka commented 6 years ago

fixes #228

hawesie commented 6 years ago

@countdueki please test and provide some feedback.

bbferka commented 6 years ago

oh, this is interesting....shouldn't they both build with the same mongoclient?

Unfortunatelly on trusty libmongo-client-dev version 0.1.7 installs a libmongoclient.so which gets found by FindMongoClient.cmake even though it is not the c++ driver. On xenial, libmongo-client-dev version 0.1.8 they changed the lib name to libmongo-client.so, so it's not being found, but rather checked out and compiled locally. I guess the developers realized that there is name clash.

It is interesting that this has worked so far, since libmongo-client-dev is an alternate driver and as far as I know it has nothing to do with the official releases.

Any ideas how to circumvent this? Maybe /usr/lib should not be searched for on trusty? There is no way the correct version can end up there.