Open chrissunny94 opened 7 months ago
Install amnet cmake package
having same issue did anyone find the solution?
You gotta install ros2 (I think any distro should work). It comes bundled with ament.
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
Compiled after upgrading the Cmake version .
I am using ubuntu 20.04 with Cmake 3.16.3
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
I am on UBuntu 22.04 , maybe thats the reason