Skip to content
This repository was archived by the owner on Jan 23, 2024. It is now read-only.
This repository was archived by the owner on Jan 23, 2024. It is now read-only.

gtest not found #31

@candyguo

Description

@candyguo

platform: ubuntu16.04 , ros kinetic
I follow the guide of "how to install", when run " catkin build aerial_mapper", I meet following error,
hope to get some advice. Thanks!

...................................................................................................................................................
Errors << cv_bridge:cmake /home/ccfy/software/catkin_ws_aerial_mapper/logs/cv_bridge/build.cmake.015.log
CMake Warning at /opt/ros/kinetic/share/catkin/cmake/test/gtest.cmake:149 (message):
skipping gtest 'cv_bridge-utest' in project 'cv_bridge' because gtest was
not found
Call Stack (most recent call first):
/opt/ros/kinetic/share/catkin/cmake/test/gtest.cmake:79 (_catkin_add_executable_with_google_test)
/opt/ros/kinetic/share/catkin/cmake/test/gtest.cmake:28 (_catkin_add_google_test)
test/CMakeLists.txt:6 (catkin_add_gtest)

CMake Error at /home/ccfy/software/catkin_ws_aerial_mapper/src/vision_opencv/cv_bridge/test/CMakeLists.txt:7 (target_link_libraries):
Cannot specify link libraries for target "cv_bridge-utest" which is not
built by this project.

cd /home/ccfy/software/catkin_ws_aerial_mapper/build/cv_bridge; catkin build --get-env cv_bridge | catkin env -si /usr/bin/cmake /home/ccfy/software/catkin_ws_aerial_mapper/src/vision_opencv/cv_bridge --no-warn-unused-cli -DCATKIN_DEVEL_PREFIX=/home/ccfy/software/catkin_ws_aerial_mapper/devel -DCMAKE_INSTALL_PREFIX=/home/ccfy/software/catkin_ws_aerial_mapper/install -DCMAKE_BUILD_TYPE=Release; cd -
......................................................................................................................................
Failed << cv_bridge:cmake [ Exited with code 1 ]
Failed <<< cv_bridge [ 1.8 seconds ]

....................................................................................................................................................

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions