strands-project / mongodb_store

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

Unable to compile mongodb_store on Ubuntu 16.04 and kinetic #226

Closed christomaliyekkal closed 6 years ago

christomaliyekkal commented 6 years ago

Hi I am pretty new to ROS. I am using ROS kinetic on Ubuntu 16.04 I am getting compilation error for mongodb_store

Steps followed: 1) mkdir -p catkin_ws/src 2) cd catkin_ws 3) catkin_make 4) cd src 5) cloned source files from a) https://github.com/strands-project/mongodb_store/ b) https://github.com/ros/common_msgs.git

Now catkin_ws/src looks like below


cmuser@ubu-win027-cm:~/catkin_ws/src$ ls
beginner_tutorials  CMakeLists.txt  common_msgs  libmongocxx_ros  mongodb_log  mongodb_store  mongodb_store_msgs

6) mongocxx -driver a) git clone -b 26compat https://github.com/mongodb/mongo-cxx-driver.git b) sudo apt-get install scons cd mongo-cxx-driver sudo scons --prefix=/usr/local/ --full --use-system-boost --disable-warnings-as-errors sudo scons install

7) Now mongo-cxx-driver looks like below


cmuser@ubu-win027-cm:~/mongo-cxx-driver$ ls
APACHE-2.0.txt  build            coverage.info  httpClientTest    README.md             secondExample     tutorial
arrayExample    buildscripts     docs           insertDemo        rsExample             simpleClientDemo  whereExample
authTest        clientTest       doxygenConfig  jstests           SConscript.buildinfo  site_scons
bsondemo        CONTRIBUTING.md  firstExample   libmongoclient.a  SConstruct            src

Now with this, I am getting compilation error as mentioned in the link below

https://pastebin.com/BshREpiu https://pastebin.com/BshREpiu

Could you please help with this issue?

hawesie commented 6 years ago

You don't need step 6. This will be done for you automatically if necessary. Before step 6 you should also make sure you run rosdep in case there are missing dependencies, e.g.

rosdep install --from-paths src --ignore-src --rosdistro kinetic -y

hawesie commented 6 years ago

I'm not sure what the actual problem is. It looks boost related. However it's during the compilation of the tests, so you could simply disable the tests in the cmake file and see what happens.

christomaliyekkal commented 6 years ago

@hawesie Yes, after commenting out test, it compiled for me. Thanks for the help! :)