erik-nelson / blam

Other
786 stars 347 forks source link

Problem with GTSAM and BLAM! #12

Closed JohnMMeyer closed 7 years ago

JohnMMeyer commented 7 years ago

Hello, I am trying to install BLAM! and it does not seem to be interfacing well with GTSAM. I read the other Issues and tried all of those fixes but I still get errors when I run ./update for BLAM!. I am using the latest GTSAM (I believe), I used git clone from https://bitbucket.org/gtborg/gtsam.git. GTSAM seemed to install proerly, however when I run ./update I get the following error:

**CMake Error at laser_loop_closure/CMakeLists.txt:9 (find_package): By not providing "FindGTSAM.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "GTSAM", but CMake did not find one.

Could not find a package configuration file provided by "GTSAM" with any of the following names:

GTSAMConfig.cmake
gtsam-config.cmake

Add the installation prefix of "GTSAM" to CMAKE_PREFIX_PATH or set "GTSAM_DIR" to a directory containing one of the above files. If "GTSAM" provides a separate development package or SDK, be sure it has been installed.

-- Configuring incomplete, errors occurred! See also "/home/johnmeyer/blam_ws/src/blam/internal/build/CMakeFiles/CMakeOutput.log". See also "/home/johnmeyer/blam_ws/src/blam/internal/build/CMakeFiles/CMakeError.log". Invoking "cmake" failed**

Any help would be appreciated.

Thanks

JohnMMeyer commented 7 years ago

May I add that a colleague of mine, Mr. Ashwin Mathur, successfully installed BLAM! with what appears to be a version of GTSAM that was about one month old. Is it possible that this latest update of GTSAM has an issue?

JohnMMeyer commented 7 years ago

Update Here is where I have my packages

johnmeyer@mn-desktop09:~/blam_ws/src$ ls blam CMakeLists.txt gtsam

I set my CMAKE_PREFIX_PATH as follows:

export CMAKE_PREFIX_PATH=$HOME/blam_ws/src/gtsam Then I ran ./update from the top directory.

I am now getting a new error

**-- +++ processing catkin package: 'pose_graph_msgs' -- ==> add_subdirectory(pose_graph_msgs) -- Using these message generators: CMake Error at /opt/ros/indigo/share/genmsg/cmake/genmsg-extras.cmake:271 (message): Could not find 'share/std_msgs/cmake/std_msgs-msg-paths.cmake' (searched in '/home/johnmeyer/blam_ws/src/blam/internal/devel'). Call Stack (most recent call first): pose_graph_msgs/CMakeLists.txt:19 (generate_messages)

-- Configuring incomplete, errors occurred! See also "/home/johnmeyer/blam_ws/src/blam/internal/build/CMakeFiles/CMakeOutput.log". See also "/home/johnmeyer/blam_ws/src/blam/internal/build/CMakeFiles/CMakeError.log". Invoking "cmake" failed**

JohnMMeyer commented 7 years ago

I have solved this. I believe there was a conflict on the desktop I was using, never did figure it out. I got it to work on a clean laptop.