You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In file included from /home/sw/ros2_android_ws/src/eProsima/Fast-DDS/src/cpp/rtps/transport/UDPv4Transport.h:19: /home/sw/ros2_android_ws/src/eProsima/Fast-DDS/src/cpp/rtps/transport/UDPTransportInterface.h:18:10: fatal error: 'asio.hpp' file not found #include <asio.hpp> ^~~~~~~~~~
I solved it
add export CPATH=~/ros2_android_ws/src/eProsima/Fast-DDS/thirdparty/asio/asio/include:$CPATH export CPATH=~/ros2_android_ws/src/eProsima/Fast-DDS/thirdparty/tinyxml2:$CPATH
to .bashrc
Is there an already existing issue for this?
Expected behavior
Build successful
Current behavior
In file included from /home/sw/ros2_android_ws/src/eProsima/Fast-DDS/src/cpp/rtps/transport/UDPv4Transport.h:19: /home/sw/ros2_android_ws/src/eProsima/Fast-DDS/src/cpp/rtps/transport/UDPTransportInterface.h:18:10: fatal error: 'asio.hpp' file not found #include <asio.hpp> ^~~~~~~~~~
Steps to reproduce
export ANDROID_HOEM=~/Android/Sdk export PATH=$PATH:$ANDROID_HOEM/tools:$ANDROID_HOEM/platform-tool export ANDROID_NDK=~/Android/ndk-r25c
mkdir -p $HOME/ros2_android_ws/src cd $HOME/ros2_android_ws curl https://raw.githubusercontent.com/pdl0x0lbq/ros2-humble-for-android/main/ros2_java_android.repos | vcs import src
export PYTHON3_EXEC="$( which python3 )" export PYTHON3_LIBRARY="$( ${PYTHON3_EXEC} -c 'import os.path; from distutils import sysconfig; print(os.path.realpath(os.path.join(sysconfig.get_config_var("LIBPL"), sysconfig.get_config_var("LDLIBRARY"))))' )" export PYTHON3_INCLUDE_DIR="$( ${PYTHON3_EXEC} -c 'from distutils import sysconfig; print(sysconfig.get_config_var("INCLUDEPY"))' )" export ANDROID_ABI=arm64-v8a export ANDROID_NATIVE_API_LEVEL=android-29 export ANDROID_TOOLCHAIN_NAME=aarch64-linux-android-clang
colcon build \ --packages-ignore cyclonedds rcl_logging_log4cxx rcl_logging_spdlog rosidl_generator_py rclandroid ros2_talker_android ros2_listener_android \ --cmake-args \ -DPYTHON_EXECUTABLE=${PYTHON3_EXEC} \ -DPYTHON_LIBRARY=${PYTHON3_LIBRARY} \ -DPYTHON_INCLUDE_DIR=${PYTHON3_INCLUDE_DIR} \ -DCMAKE_TOOLCHAIN_FILE=${ANDROID_NDK}/build/cmake/android.toolchain.cmake \ -DANDROID=ON \ -DANDROID_FUNCTION_LEVEL_LINKING=OFF \ -DANDROID_NATIVE_API_LEVEL=${ANDROID_NATIVE_API_LEVEL} \ -DANDROID_TOOLCHAIN_NAME=${ANDROID_TOOLCHAIN_NAME} \ -DANDROID_STL=c++_shared \ -DANDROID_ABI=${ANDROID_ABI} \ -DANDROID_NDK=${ANDROID_NDK} \ -DTHIRDPARTY=ON \ -DCOMPILE_EXAMPLES=OFF \ -DCMAKE_FIND_ROOT_PATH="${PWD}/install" \ -DBUILD_TESTING=OFF \ -DRCL_LOGGING_IMPLEMENTATION=rcl_logging_noop \ -DTHIRDPARTY_android-ifaddrs=FORCE \ -DTRACETOOLS_DISABLED=ON
Fast DDS version/commit
v2.11.2 master
Platform/Architecture
Other. Please specify in Additional context section.
Transport layer
Default configuration, UDPv4 & SHM
Additional context
I have installed libasio-dev
XML configuration file
No response
Relevant log output
No response
Network traffic capture
No response
The text was updated successfully, but these errors were encountered: