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

resource_retriever fails when trying to cross-compile with aarch64-linux-gnu #15

Open
amar-laksh opened this issue Jan 13, 2018 · 5 comments
Labels

Comments

@amar-laksh
Copy link

amar-laksh commented Jan 13, 2018

When trying to cross-compile using the instructions at: https://github.com/ros2/ros2/tree/master/arm_crosscompilation

It fails with the following:

Process package 'resource_retriever' with context:

source_space => /home/amar/ros2_ws/src/ros/resource_retriever/resource_retriever
build_space => /home/amar/ros2_ws/build/resource_retriever
install_space => /home/amar/ros2_ws/install
make_flags => -j4, -l4
build_tests => False

+++ Building 'resource_retriever'
==> '. /home/amar/ros2_ws/build/resource_retriever/cmake__build.sh && /usr/bin/cmake /home/amar/ros2_ws/src/ros/resource_retriever/resource_retriever -DBUILD_TESTING=0 -DCMAKE_TOOLCHAIN_FILE=/home/amar/ros2_ws/aarch64_toolchainfile.cmake -DTHIRDPARTY=ON -DCMAKE_INSTALL_PREFIX=/home/amar/ros2_ws/install' in '/home/amar/ros2_ws/build/resource_retriever'
/usr/bin/cmake: /home/amar/ros2_ws/install/opt/libcurl_vendor/lib/libcurl.so.4: no version information available (required by /usr/bin/cmake)
-- Found ament_cmake_ros: 0.4.0 (/home/amar/ros2_ws/install/share/ament_cmake_ros/cmake)
-- Using PYTHON_EXECUTABLE: /usr/bin/python3
-- Found ament_index_cpp: 0.4.0 (/home/amar/ros2_ws/install/share/ament_index_cpp/cmake)
-- Found libcurl_vendor: 2.0.0 (/home/amar/ros2_ws/install/share/libcurl_vendor/cmake)
-- Checking for one of the modules 'libcurl'
-- CURL_FOUND: 1
-- CURL_LIBRARIES: curl
-- CURL_LIBRARY_DIRS: /home/amar/ros2_ws/build/libcurl_vendor/libcurl_install/lib
-- CURL_INCLUDE_DIRS: /home/amar/ros2_ws/build/libcurl_vendor/libcurl_install/include
-- library: curl
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
library_abs
linked by target "resource_retriever" in directory /home/amar/ros2_ws/src/ros/resource_retriever/resource_retriever

-- Configuring incomplete, errors occurred!
See also "/home/amar/ros2_ws/build/resource_retriever/CMakeFiles/CMakeOutput.log".
<== Command '. /home/amar/ros2_ws/build/resource_retriever/cmake__build.sh && /usr/bin/cmake /home/amar/ros2_ws/src/ros/resource_retriever/resource_retriever -DBUILD_TESTING=0 -DCMAKE_TOOLCHAIN_FILE=/home/amar/ros2_ws/aarch64_toolchainfile.cmake -DTHIRDPARTY=ON -DCMAKE_INSTALL_PREFIX=/home/amar/ros2_ws/install' failed in '/home/amar/ros2_ws/build/resource_retriever' with exit code '1'

<== Command '. /home/amar/ros2_ws/build/resource_retriever/cmake__build.sh && /usr/bin/cmake /home/amar/ros2_ws/src/ros/resource_retriever/resource_retriever -DBUILD_TESTING=0 -DCMAKE_TOOLCHAIN_FILE=/home/amar/ros2_ws/aarch64_toolchainfile.cmake -DTHIRDPARTY=ON -DCMAKE_INSTALL_PREFIX=/home/amar/ros2_ws/install' failed in '/home/amar/ros2_ws/build/resource_retriever' with exit code '1'

amar-laksh added a commit to amar-laksh/resource_retriever that referenced this issue Jan 27, 2018
@davidhuziji
Copy link

davidhuziji commented Mar 7, 2018

Hi, I met the same issue today with cross-compile on arm platform.
@amar-laksh , I tried https://github.com/amar-laksh/resource_retriever/commit/edbcb73e89743ac8b5ca2c3a4fd326b2d2fcd9de But it did not work.

Could you please tell me if there is any additional patch I should apply? Or is there any way to skip the ROS building?

@amar-laksh
Copy link
Author

@davidhuziji , Hey! this might help you: #17 It's not upstreamed yet.

@davidhuziji
Copy link

Hi, @amar-laksh, Thanks a lot.
May I know the difference between #16 and #17? They look like the same.

@davidhuziji
Copy link

Hi @amar-laksh , I made some comments on your patch. Could you please help take a look?

@sloretz sloretz added the bug label Apr 13, 2018
@klintan
Copy link

klintan commented Jan 13, 2020

Now this exact issue comes up when compiling rviz_rendering in eloquent elusor release of Ros2, tried the fix suggested here, unfortunately to no avail.

It seems it could be because of assimp 5.0 I'm not sure though, uninstalling it from brew, solves it though (not sure it's my preferred solution though)

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

No branches or pull requests

4 participants