asctec_mav_framework cmake problems

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

asctec_mav_framework cmake problems

Silvan
Good Afternoon,

At the moment I'm trying to start my work with the asctec_mav_framework package. But when i want to build the package, I get some errors, which I dont know why they occur.

Setup:

Pelican Drone with Mastermind (IntelAtom D510 / 1.66GHz dual core)
System: The original asctec-surface (ubuntu 12.04 with groovy)

Problem:

when I want to build the asctec_mav_framework package i get some terrible CMake errors and it cant finish the installation.

Procedure:


First I installed the sensor fusion package as described on ros page(37/38 complete, didnt find some directories)
installation procedure on the page http://wiki.ros.org/asctec_mav_framework .
but with catkin package: create first git mav_framework, then git ethzasl-msf package, then make src folder and move everything there inside.

Unfortunately I couldnt find any solution, and I hope someone could help me here^^

Thank you in advance

Silvan

%%%%%%%% Terminal output %%%%%%%%%%%%%%%

asctec@mastermind:~$ cd asctec_mav_framework/
asctec@mastermind:~/asctec_mav_framework$ catkin_make
Base path: /home/asctec/asctec_mav_framework
Source space: /home/asctec/asctec_mav_framework/src
Build space: /home/asctec/asctec_mav_framework/build
Devel space: /home/asctec/asctec_mav_framework/devel
Install space: /home/asctec/asctec_mav_framework/install
####
#### Running command: "cmake /home/asctec/asctec_mav_framework/src -DCATKIN_DEVEL_PREFIX=/home/asctec/asctec_mav_framework/devel -DCMAKE_INSTALL_PREFIX=/home/asctec/asctec_mav_framework/install" in "/home/asctec/asctec_mav_framework/build"
####
-- Using CATKIN_DEVEL_PREFIX: /home/asctec/asctec_mav_framework/devel
-- Using CMAKE_PREFIX_PATH: /home/asctec/asctec_mav_framework/devel;/opt/ros/groovy;/home/asctec/catkin_ws/devel
-- This workspace overlays: /home/asctec/asctec_mav_framework/devel;/opt/ros/groovy;/home/asctec/catkin_ws/devel
-- Found gtest sources under '/usr/src/gtest': gtests will be built
-- Using CATKIN_TEST_RESULTS_DIR: /home/asctec/asctec_mav_framework/build/test_results
-- catkin 0.5.65
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~  traversing 10 packages in topological order:
-- ~~  - msf_distort
-- ~~  - sensor_fusion (metapackage)
-- ~~  - sensor_fusion_comm
-- ~~  - asctec_hl_interface
-- ~~  - msf_updates
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'asctec_hl_comm'
-- ==> add_subdirectory(asctec_hl_comm)
-- Generating .msg files for action asctec_hl_comm/Waypoint /home/asctec/asctec_mav_framework/src/asctec_hl_comm/action/Waypoint.action
-- asctec_hl_comm: 18 messages, 2 services
-- +++ processing catkin package: 'asctec_hl_gps'
-- ==> add_subdirectory(asctec_hl_gps)
-- Eigen found (include: /usr/include/eigen3)
CMake Error at asctec_hl_gps/CMakeLists.txt:26 (add_dependencies):
  add_dependencies called with incorrect number of arguments


CMake Error at asctec_hl_gps/CMakeLists.txt:30 (add_dependencies):
  add_dependencies called with incorrect number of arguments


-- +++ processing catkin metapackage: 'asctec_mav_framework'
-- ==> add_subdirectory(asctec_mav_framework)
-- +++ processing catkin package: 'msf_timing'
-- ==> add_subdirectory(ethzasl_msf/msf_timing)
-- +++ processing catkin package: 'msf_core'
-- ==> add_subdirectory(ethzasl_msf/msf_core)
-- Eigen found (include: /usr/include/eigen3)
glog library = GLOG_LIBRARY-NOTFOUND
-- Could NOT find Glog (missing:  GLOG_LIBRARY)
-- dynamic_reconfigure built cfg/MSF_Core.cfg: Generating reconfiguration files for MSF_Core in msf_core
Wrote header file in /home/asctec/asctec_mav_framework/devel/include/msf_core/MSF_CoreConfig.h
-- +++ processing catkin package: 'msf_distort'
-- ==> add_subdirectory(ethzasl_msf/msf_distort)
-- dynamic_reconfigure built cfg/MSF_Distort.cfg: Generating reconfiguration files for MSF_Distort in msf_distort
Wrote header file in /home/asctec/asctec_mav_framework/devel/include/msf_distort
/MSF_DistortConfig.h
-- +++ processing catkin metapackage: 'sensor_fusion'
-- ==> add_subdirectory(ethzasl_msf/sensor_fusion)
-- +++ processing catkin package: 'sensor_fusion_comm'
-- ==> add_subdirectory(ethzasl_msf/sensor_fusion_comm)
-- sensor_fusion_comm: 5 messages, 2 services
-- +++ processing catkin package: 'asctec_hl_interface'
-- ==> add_subdirectory(asctec_hl_interface)
-- dynamic_reconfigure built cfg/HLInterface.cfg: Generating reconfiguration files for HLInterface in asctec_hl_interface
Wrote header file in /home/asctec/asctec_mav_framework/devel/include/asctec_hl_interface/HLInterfaceConfig.h
-- dynamic_reconfigure built cfg/SSDK.cfg: Generating reconfiguration files for SSDK in asctec_hl_interface
Wrote header file in /home/asctec/asctec_mav_framework/devel/include/asctec_hl_interface/SSDKConfig.h
CMake Error at asctec_hl_interface/CMakeLists.txt:52 (add_dependencies):
  add_dependencies called with incorrect number of arguments


CMake Error at asctec_hl_interface/CMakeLists.txt:56 (add_dependencies):
  add_dependencies called with incorrect number of arguments


CMake Error at asctec_hl_interface/CMakeLists.txt:60 (add_dependencies):
  add_dependencies called with incorrect number of arguments


-- +++ processing catkin package: 'msf_updates'
-- ==> add_subdirectory(ethzasl_msf/msf_updates)
-- dynamic_reconfigure built cfg/PosePressureSensor.cfg: Generating reconfiguration files for PosePressureSensor in msf_updates
Wrote header file in /home/asctec/asctec_mav_framework/devel/include/msf_updates/PosePressureSensorConfig.h
-- dynamic_reconfigure built cfg/PositionPoseSensor.cfg: Generating reconfiguration files for PositionPoseSensor in msf_updates
Wrote header file in /home/asctec/asctec_mav_framework/devel/include/msf_updates/PositionPoseSensorConfig.h
-- dynamic_reconfigure built cfg/SinglePoseSensor.cfg: Generating reconfiguration files for SinglePoseSensor in msf_updates
Wrote header file in /home/asctec/asctec_mav_framework/devel/include/msf_updates/SinglePoseSensorConfig.h
-- dynamic_reconfigure built cfg/SinglePositionSensor.cfg: Generating reconfiguration files for SinglePositionSensor in msf_updates
Wrote header file in /home/asctec/asctec_mav_framework/devel/include/msf_updates
/SinglePositionSensorConfig.h
-- dynamic_reconfigure built cfg/SphericalPositionSensor.cfg: Generating reconfiguration files for SphericalPositionSensor in msf_updates
Wrote header file in /home/asctec/asctec_mav_framework/devel/include/msf_updates/SphericalPositionSensorConfig.h
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
GLOG_LIBRARY (ADVANCED)
    linked by target "test_similaritytransform" in directory /home/asctec/asctec_mav_framework/src/ethzasl_msf/msf_core
    linked by target "test_static_statelist" in directory /home/asctec/asctec_mav_framework/src/ethzasl_msf/msf_core

-- Configuring incomplete, errors occurred!
Invoking "cmake" failed
asctec@mastermind:~/asctec_mav_framework$

Reply | Threaded
Open this post in threaded view
|

Re: asctec_mav_framework cmake problems

thorsten
Hi,

'CMake Error [...] add_dependencies called with incorrect number of arguments'
seams to come from an outdated genmsg:
# sudo apt-get update
# sudo apt-get install genmsg

After that you will probably run into a missing glog library:
# mkdir ~/src
# cd ~/src
# wget https://google-glog.googlecode.com/files/glog-0.3.3.tar.gz
# tar -xzf glog-0.3.3.tar.gz
# cd glog-0.3.3/
# make
# sudo make install

Regards,
Thorsten
Reply | Threaded
Open this post in threaded view
|

Re: asctec_mav_framework cmake problems

Silvan
Hi Thorsten,

Thank you very much for your answer, it works now.

To install genmsg I had to manually install it (git genmsg package, rosmake) and before the "make" part of the glog library I had to configure it with ./configure.

Greetings Silvan