autonomous_landing_uav icon indicating copy to clipboard operation
autonomous_landing_uav copied to clipboard

Error while catkin_make

Open zahidesatmutlu opened this issue 11 months ago • 0 comments

I have Ubuntu 20.04.6 LTS, Python 3.8.10 and ROS Noetic (Gazebo 11), i did every installations and mode configuration, also i add three ROS packages to catkin_ws, but when i do catkin_make i get error.

zahid@zahid:~/catkin_ws$ catkin_make
Base path: /home/zahid/catkin_ws
Source space: /home/zahid/catkin_ws/src
Build space: /home/zahid/catkin_ws/build
Devel space: /home/zahid/catkin_ws/devel
Install space: /home/zahid/catkin_ws/install
####
#### Running command: "cmake /home/zahid/catkin_ws/src -DCATKIN_DEVEL_PREFIX=/home/zahid/catkin_ws/devel -DCMAKE_INSTALL_PREFIX=/home/zahid/catkin_ws/install -G Unix Makefiles" in "/home/zahid/catkin_ws/build"
####
-- The C compiler identification is GNU 9.4.0
-- The CXX compiler identification is GNU 9.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using CATKIN_DEVEL_PREFIX: /home/zahid/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /opt/ros/noetic
-- This workspace overlays: /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
-- Found PY_em: /usr/lib/python3/dist-packages/em.py  
-- Using empy: /usr/lib/python3/dist-packages/em.py
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/zahid/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
-- Found PythonInterp: /usr/bin/python3 (found version "3.8.10") 
-- Found Threads: TRUE  
-- Using Python nosetests: /usr/bin/nosetests3
-- catkin 0.8.10
-- BUILD_SHARED_LIBS is on
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~  traversing 6 packages in topological order:
-- ~~  - opencv_tests (unknown)
CMake Warning at /opt/ros/noetic/share/catkin/cmake/catkin_workspace.cmake:89 (message):
  Unknown build type 'ament_python' for package 'opencv_tests'
Call Stack (most recent call first):
  CMakeLists.txt:69 (catkin_workspace)


-- ~~  - vision_opencv (plain cmake)
-- ~~  - cv_bridge (plain cmake)
-- ~~  - image_geometry (plain cmake)
-- ~~  - find_object_2d
-- ~~  - px4
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CMake Error at /opt/ros/noetic/share/catkin/cmake/catkin_workspace.cmake:100 (message):
  This workspace contains non-catkin packages in it, and catkin cannot build
  a non-homogeneous workspace without isolation.  Try the
  'catkin_make_isolated' command instead.
Call Stack (most recent call first):
  CMakeLists.txt:69 (catkin_workspace)


-- Configuring incomplete, errors occurred!
See also "/home/zahid/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/zahid/catkin_ws/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed

Also i tried to "catkin_make_isolated":

zahid@zahid:~/catkin_ws$ catkin_make_isolated
Base path: /home/zahid/catkin_ws
Source space: /home/zahid/catkin_ws/src
Build space: /home/zahid/catkin_ws/build_isolated
Devel space: /home/zahid/catkin_ws/devel_isolated
Install space: /home/zahid/catkin_ws/install_isolated
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~  traversing 6 packages in topological order:
~~  - cv_bridge (unknown)
~~  - find_object_2d
~~  - image_geometry (unknown)
~~  - opencv_tests (unknown)
~~  - px4
~~  - vision_opencv (unknown)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: Packages with unknown build types exist
Can not build workspace with packages of unknown build_type

You can see my Python versions:

zahid@zahid:~/catkin_ws$ python -V

Command 'python' not found, did you mean:

  command 'python3' from deb python3
  command 'python' from deb python-is-python3

zahid@zahid:~/catkin_ws$ python3 -V
Python 3.8.10

I would be grateful if you help!

zahidesatmutlu avatar Aug 07 '23 14:08 zahidesatmutlu