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

Build issue with ROS2 dependencies #8

Open
chrissunny94 opened this issue Dec 2, 2023 · 6 comments
Open

Build issue with ROS2 dependencies #8

chrissunny94 opened this issue Dec 2, 2023 · 6 comments

Comments

@chrissunny94
Copy link

chrissunny94 commented Dec 2, 2023

I am on UBuntu 22.04 , maybe thats the reason

-- Found Python3: /usr/bin/python3.10 (found version "3.10.12") found components: Interpreter 
CMake Error at CMakeLists.txt:10 (find_package):
  By not providing "Findament_cmake_test.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "ament_cmake_test", but CMake did not find one.

  Could not find a package configuration file provided by "ament_cmake_test"
  with any of the following names:

    ament_cmake_testConfig.cmake
    ament_cmake_test-config.cmake

  Add the installation prefix of "ament_cmake_test" to CMAKE_PREFIX_PATH or
  set "ament_cmake_test_DIR" to a directory containing one of the above
  files.  If "ament_cmake_test" provides a separate development package or
  SDK, be sure it has been installed.




@JaisonJose241
Copy link
Contributor

Install amnet cmake package

@compscirunner
Copy link

having same issue did anyone find the solution?

@paulijosey
Copy link

You gotta install ros2 (I think any distro should work). It comes bundled with ament.

@chrissunny94
Copy link
Author

Did not work .

-- Check for working CXX compiler: /home/cthalia/SIDE_PROJECTS/AndroidSDK/ndk/26.2.11394342/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++
CMake Warning at /home/cthalia/SIDE_PROJECTS/AndroidSDK/ndk/26.2.11394342/build/cmake/android-legacy.toolchain.cmake:413 (message):
  An old version of CMake is being used that cannot automatically detect
  compiler attributes.  Compiler identification is being bypassed.  Some
  values may be wrong or missing.  Update to CMake 3.19 or newer to use
  CMake's built-in compiler identification.
Call Stack (most recent call first):
  /home/cthalia/SIDE_PROJECTS/AndroidSDK/ndk/26.2.11394342/build/cmake/android.toolchain.cmake:54 (include)
  /home/cthalia/android-sdk/sensors_for_ros/build/deps-libyaml_vendor-prefix/src/deps-libyaml_vendor-build/CMakeFiles/3.16.3/CMakeSystem.cmake:6 (include)
  /home/cthalia/android-sdk/sensors_for_ros/build/deps-libyaml_vendor-prefix/src/deps-libyaml_vendor-build/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)


-- Check for working CXX compiler: /home/cthalia/SIDE_PROJECTS/AndroidSDK/ndk/26.2.11394342/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ -- works
-- Detecting CXX compiler ABI info
CMake Warning at /home/cthalia/SIDE_PROJECTS/AndroidSDK/ndk/26.2.11394342/build/cmake/android-legacy.toolchain.cmake:413 (message):
  An old version of CMake is being used that cannot automatically detect
  compiler attributes.  Compiler identification is being bypassed.  Some
  values may be wrong or missing.  Update to CMake 3.19 or newer to use
  CMake's built-in compiler identification.
Call Stack (most recent call first):
  /home/cthalia/SIDE_PROJECTS/AndroidSDK/ndk/26.2.11394342/build/cmake/android.toolchain.cmake:54 (include)
  /home/cthalia/android-sdk/sensors_for_ros/build/deps-libyaml_vendor-prefix/src/deps-libyaml_vendor-build/CMakeFiles/3.16.3/CMakeSystem.cmake:6 (include)
  /home/cthalia/android-sdk/sensors_for_ros/build/deps-libyaml_vendor-prefix/src/deps-libyaml_vendor-build/CMakeFiles/CMakeTmp/CMakeLists.txt:2 (project)


-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found ament_cmake: 1.3.9 (/home/cthalia/android-sdk/sensors_for_ros/build/deps/share/ament_cmake/cmake)
CMake Error at /home/cthalia/android-sdk/sensors_for_ros/build/deps/share/ament_cmake/cmake/ament_cmake_export_dependencies-extras.cmake:5 (find_package):
  By not providing "Findament_cmake_libraries.cmake" in CMAKE_MODULE_PATH
  this project has asked CMake to find a package configuration file provided
  by "ament_cmake_libraries", but CMake did not find one.

  Could not find a package configuration file provided by
  "ament_cmake_libraries" with any of the following names:

    ament_cmake_librariesConfig.cmake
    ament_cmake_libraries-config.cmake

  Add the installation prefix of "ament_cmake_libraries" to CMAKE_PREFIX_PATH
  or set "ament_cmake_libraries_DIR" to a directory containing one of the
  above files.  If "ament_cmake_libraries" provides a separate development
  package or SDK, be sure it has been installed.
Call Stack (most recent call first):
  /home/cthalia/android-sdk/sensors_for_ros/build/deps/share/ament_cmake/cmake/ament_cmakeConfig.cmake:41 (include)
  CMakeLists.txt:17 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/cthalia/android-sdk/sensors_for_ros/build/deps-libyaml_vendor-prefix/src/deps-libyaml_vendor-build/CMakeFiles/CMakeOutput.log".
make[2]: *** [CMakeFiles/deps-libyaml_vendor.dir/build.make:123: deps-libyaml_vendor-prefix/src/deps-libyaml_vendor-stamp/deps-libyaml_vendor-configure] Error 1
make[1]: *** [CMakeFiles/Makefile2:1722: CMakeFiles/deps-libyaml_vendor.dir/all] Error 2
make: *** [Makefile:84: all] Error 2

@chrissunny94
Copy link
Author

https://askubuntu.com/questions/355565/how-do-i-install-the-latest-version-of-cmake-from-the-command-line

Compiled after upgrading the Cmake version .

I am using ubuntu 20.04 with Cmake 3.16.3

@chrissunny94
Copy link
Author

chrissunny94 commented Jun 11, 2024

Got a bit too excited .

Now new issues .

 Found ament_cmake_core: 1.3.9 (/home/cthalia/android-sdk/sensors_for_ros/build/deps/share/ament_cmake_core/cmake)
CMake Error at CMakeLists.txt:10 (find_package):
  By not providing "Findament_cmake_test.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "ament_cmake_test", but CMake did not find one.

  Could not find a package configuration file provided by "ament_cmake_test"
  with any of the following names:

    ament_cmake_testConfig.cmake
    ament_cmake_test-config.cmake

  Add the installation prefix of "ament_cmake_test" to CMAKE_PREFIX_PATH or
  set "ament_cmake_test_DIR" to a directory containing one of the above
  files.  If "ament_cmake_test" provides a separate development package or
  SDK, be sure it has been installed.

already tried

sudo apt install ros-foxy-ament-cmake-test

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

4 participants