Skip to content

can not build glim_ext #15

Description

@lizhuo1414

I already clone the newest code and build glim, and source ./devel/setup.bash, but when I build glim_ext,it come out with CMake ERROR like below. Any help?

ros@ubuntu:~/catkin_ws$ catkin_make -DCATKIN_WHITELIST_PACKAGES="glim_ext"
Base path: /home/ros/catkin_ws
Source space: /home/ros/catkin_ws/src
Build space: /home/ros/catkin_ws/build
Devel space: /home/ros/catkin_ws/devel
Install space: /home/ros/catkin_ws/install

Running command: "make cmake_check_build_system" in "/home/ros/catkin_ws/build"

-- Using CATKIN_DEVEL_PREFIX: /home/ros/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /home/ros/carto/install_isolated;/home/ros/mavlink_ws/devel;/home/ros/catkin_ws/devel;/opt/ros/noetic
-- This workspace overlays: /home/ros/carto/install_isolated;/home/ros/mavlink_ws/devel;/home/ros/catkin_ws/devel;/opt/ros/noetic
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.8.10", minimum required is "3")
-- Using PYTHON_EXECUTABLE: /usr/bin/python3
-- Using Debian Python package layout
-- Using empy: /usr/lib/python3/dist-packages/em.py
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/ros/catkin_ws/build/test_results
-- Forcing gtest/gmock from source, though one was otherwise available.
-- Found gtest sources under '/usr/src/googletest': gtests will be built
-- Found gmock sources under '/usr/src/googletest': gmock will be built
CMake Deprecation Warning at /usr/src/googletest/CMakeLists.txt:4 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at /usr/src/googletest/googlemock/CMakeLists.txt:45 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at /usr/src/googletest/googletest/CMakeLists.txt:56 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

-- Found PythonInterp: /usr/bin/python3 (found version "3.8.10")
-- Using Python nosetests: /usr/bin/nosetests3
-- catkin 0.8.10
-- BUILD_SHARED_LIBS is on
-- BUILD_SHARED_LIBS is on
-- Using CATKIN_WHITELIST_PACKAGES: glim_ext
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~ traversing 1 packages in topological order:
-- ~~ - glim_ext
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'glim_ext'
-- ==> add_subdirectory(glim_ext)
ENABLE_GNSS!!!!!! OFF
-- GTSAM include directory: /usr/local/lib/cmake/GTSAM/../../../include
-- GTSAM include directory: /usr/local/lib/cmake/GTSAM/../../../include
CMake Warning (dev) at /home/ros/project/cmake-3.22.6-linux-x86_64/share/cmake-3.22/Modules/FindOpenGL.cmake:315 (message):
Policy CMP0072 is not set: FindOpenGL prefers GLVND by default when
available. Run "cmake --help-policy CMP0072" for policy details. Use the
cmake_policy command to set the policy and suppress this warning.

FindOpenGL found both a legacy GL library:

OPENGL_gl_LIBRARY: /usr/lib/x86_64-linux-gnu/libGL.so

and GLVND libraries for OpenGL and GLX:

OPENGL_opengl_LIBRARY: /usr/lib/x86_64-linux-gnu/libOpenGL.so
OPENGL_glx_LIBRARY: /usr/lib/x86_64-linux-gnu/libGLX.so

OpenGL_GL_PREFERENCE has not been set to "GLVND" or "LEGACY", so for
compatibility with CMake 3.10 and below the legacy GL library will be used.
Call Stack (most recent call first):
/home/ros/project/cmake-3.22.6-linux-x86_64/share/cmake-3.22/Modules/CMakeFindDependencyMacro.cmake:47 (find_package)
/usr/local/lib/cmake/iridescence/iridescence-config.cmake:37 (find_dependency)
glim_ext/modules/odometry/imu_validator/CMakeLists.txt:7 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Configuring done
CMake Error at glim_ext/CMakeLists.txt:32 (add_library):
Target "glim_ext" links to target "glim::glim" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?

CMake Error at glim_ext/modules/example/glim_callback_demo/CMakeLists.txt:8 (add_library):
Target "glim_callback_demo" links to target "glim::glim" but the target was
not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?

CMake Error at glim_ext/modules/odometry/velocity_suppressor/CMakeLists.txt:8 (add_library):
Target "velocity_suppressor" links to target "glim::glim" but the target
was not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?

CMake Error at glim_ext/modules/odometry/velocity_suppressor/CMakeLists.txt:8 (add_library):
Target "velocity_suppressor" links to target "glim::glim" but the target
was not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?

CMake Error at glim_ext/modules/odometry/imu_validator/CMakeLists.txt:9 (add_library):
Target "imu_validator" links to target "glim::glim" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?

CMake Error at glim_ext/modules/odometry/imu_validator/CMakeLists.txt:9 (add_library):
Target "imu_validator" links to target "glim::glim" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?

CMake Error at glim_ext/modules/mapping/flat_earther/CMakeLists.txt:8 (add_library):
Target "flat_earther" links to target "glim::glim" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?

CMake Error at glim_ext/modules/mapping/flat_earther/CMakeLists.txt:8 (add_library):
Target "flat_earther" links to target "glim::glim" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?

-- Generating done
CMake Generate step failed. Build files cannot be regenerated correctly.
make: *** [Makefile:408: cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions