Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while catkin_make #18

Open
zahidesatmutlu opened this issue Aug 7, 2023 · 0 comments
Open

Error while catkin_make #18

zahidesatmutlu opened this issue Aug 7, 2023 · 0 comments

Comments

@zahidesatmutlu
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant