[ROS cross compilation] undefined reference issues

: )

Thanks !!

Dear 454615,

I’ve successfully finished the ROS-Cross-Compilation with the following steps.
Could you please help to verify the installation step? Thanks.

sudo apt-get install qemu-user-static

sudo cp /usr/bin/qemu-aarch64-static /home/sbyun/Downloads/DPX2_5050bL/output/5050bL_SDK/DriveSDK/drive-t186ref-linux/targetfs/usr/bin

sudo cp --remove-destination /etc/resolv.conf /home/sbyun/Downloads/DPX2_5050bL/output/5050bL_SDK/DriveSDK/drive-t186ref-linux/targetfs/etc/

sudo cp /etc/resolv.conf /home/sbyun/Downloads/DPX2_5050bL/output/5050bL_SDK/DriveSDK/drive-t186ref-linux/targetfs/etc/
## cp: not writing through dangling symlink '/home/sbyun/Downloads/DPX2_5050bL/output/5050bL_SDK/DriveSDK/drive-t186ref-linux/targetfs/etc/resolv.conf'#

sudo mount -o bind /dev /home/sbyun/Downloads/DPX2_5050bL/output/5050bL_SDK/DriveSDK/drive-t186ref-linux/targetfs/dev

sudo mount -o bind /proc /home/sbyun/Downloads/DPX2_5050bL/output/5050bL_SDK/DriveSDK/drive-t186ref-linux/targetfs/proc

sudo mount -o bind /sys /home/sbyun/Downloads/DPX2_5050bL/output/5050bL_SDK/DriveSDK/drive-t186ref-linux/targetfs/sys

sudo LC_ALL=C chroot /home/sbyun/Downloads/DPX2_5050bL/output/5050bL_SDK/DriveSDK/drive-t186ref-linux/targetfs/

root@sbyun-desktop:/# apt-add-repository universe
root@sbyun-desktop:/# apt-get update

root@sbyun-desktop:/# apt-get install libboost-all-dev libtinyxml-dev liblz4-dev libbz2-dev libapr1 libaprutil1 libconsole-bridge-dev python-defusedxml python-rospkg python-catkin-pkg python-netifaces

root@sbyun-desktop:/# exit

sudo umount /home/sbyun/Downloads/DPX2_5050bL/output/5050bL_SDK/DriveSDK/drive-t186ref-linux/targetfs/sys

sudo umount /home/sbyun/Downloads/DPX2_5050bL/output/5050bL_SDK/DriveSDK/drive-t186ref-linux/targetfs/proc

sudo umount /home/sbyun/Downloads/DPX2_5050bL/output/5050bL_SDK/DriveSDK/drive-t186ref-linux/targetfs/dev

sudo rm /home/sbyun/Downloads/DPX2_5050bL/output/5050bL_SDK/DriveSDK/drive-t186ref-linux/targetfs/usr/bin/qemu-aarch64-static

sudo rm /home/sbyun/Downloads/DPX2_5050bL/output/5050bL_SDK/DriveSDK/drive-t186ref-linux/targetfs/etc/resolv.conf

sudo rm -rf /home/sbyun/Downloads/DPX2_5050bL/output/5050bL_SDK/DriveSDK/drive-t186ref-linux/targetfs/var/lib/apt/lists/*

sudo rm -rf /home/sbyun/Downloads/DPX2_5050bL/output/5050bL_SDK/DriveSDK/drive-t186ref-linux/targetfs/dev/*

sudo rm -rf /home/sbyun/Downloads/DPX2_5050bL/output/5050bL_SDK/DriveSDK/drive-t186ref-linux/targetfs/var/log/*

sudo rm -rf /home/sbyun/Downloads/DPX2_5050bL/output/5050bL_SDK/DriveSDK/drive-t186ref-linux/targetfs/var/cache/apt/archives/*.deb

sudo rm -rf /home/sbyun/Downloads/DPX2_5050bL/output/5050bL_SDK/DriveSDK/drive-t186ref-linux/targetfs/tmp/*

sudo mkdir /lib/aarch64-linux-gnu
sudo mkdir /tmp/ros-cc-overlayfs

sudo mount -t overlay -o lowerdir=/home/sbyun/Downloads/DPX2_5050bL/output/5050bL_SDK/DriveSDK/drive-t186ref-linux/targetfs/lib/aarch64-linux-gnu,upperdir=/lib/aarch64-linux-gnu,workdir=/tmp/ros-cc-overlayfs overlay /lib/aarch64-linux-gnu

sudo sh -c 'echo \ "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'

sudo apt-get update

sudo apt-get install python-rosinstall-generator python-wstool python-empy

mkdir $HOME/ros-bare-bone-src && cd $HOME/ros-bare-bone-src

rosinstall_generator ros_comm --rosdistro kinetic --deps --wet-only --tar > kinetic-ros_comm-wet.rosinstall

wstool init -j8 src kinetic-ros_comm-wet.rosinstall

sudo ./ros-bare-bone-src/src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release --source ros-bare-bone-src/src -DCMAKE_TOOLCHAIN_FILE=/home/sbyun/ros-cmake-tool.cmake -DCATKIN_ENABLE_TESTING=false

Thanks !

Dear 454615,

I have checked the ros cross compilation with the PDK and the compilation is working fine on my host Ubuntu 16.04 system as per the steps. I think there might be some issues on your host system. So, do the fresh execution of all steps mention in the ROS installation gudiance to check whether error still exists or not. Thanks.

sbyun@sbyun-desktop:~$ sudo ./ros-bare-bone-src/src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release --source ros-bare-bone-src/src -DCMAKE_TOOLCHAIN_FILE=/home/sbyun/ros-cmake-tool.cmake -DCATKIN_ENABLE_TESTING=false
Base path: /home/sbyun
Source space: /home/sbyun/ros-bare-bone-src/src
Build space: /home/sbyun/build_isolated
Devel space: /home/sbyun/devel_isolated
Install space: /home/sbyun/install_isolated
Additional CMake Arguments: -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=/home/sbyun/ros-cmake-tool.cmake -DCATKIN_ENABLE_TESTING=false
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~  traversing 52 packages in topological order:
~~  - catkin
~~  - genmsg
~~  - gencpp
~~  - geneus
~~  - genlisp
~~  - gennodejs
~~  - genpy
~~  - cmake_modules
~~  - cpp_common
~~  - message_generation
~~  - message_runtime
~~  - mk
~~  - ros
~~  - ros_comm
~~  - ros_environment
~~  - rosbash
~~  - rosboost_cfg
~~  - rosbuild
~~  - rosclean
~~  - roscpp_traits
~~  - roscreate
~~  - rosgraph
~~  - roslang
~~  - roslisp
~~  - rosmake
~~  - rosmaster
~~  - rospack
~~  - roslib
~~  - rosparam
~~  - rospy
~~  - rosservice
~~  - rostime
~~  - roscpp_serialization
~~  - roslaunch
~~  - rosunit
~~  - rosconsole
~~  - roslz4
~~  - rosbag_storage
~~  - rostest
~~  - std_msgs
~~  - rosgraph_msgs
~~  - rosmsg
~~  - std_srvs
~~  - xmlrpcpp
~~  - roscpp
~~  - rosout
~~  - message_filters
~~  - rosnode
~~  - rostopic
~~  - roswtf
~~  - topic_tools
~~  - rosbag
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

==> Processing catkin package: 'catkin'
==> cmake /home/sbyun/ros-bare-bone-src/src/catkin -DCATKIN_DEVEL_PREFIX=/home/sbyun/devel_isolated/catkin -DCMAKE_INSTALL_PREFIX=/home/sbyun/install_isolated -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=/home/sbyun/ros-cmake-tool.cmake -DCATKIN_ENABLE_TESTING=false -G Unix Makefiles in '/home/sbyun/build_isolated/catkin'
-- Using CATKIN_DEVEL_PREFIX: /home/sbyun/devel_isolated/catkin
-- Using CMAKE_PREFIX_PATH: 
-- Using PYTHON_EXECUTABLE: /usr/bin/python
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: false
-- catkin 0.7.11
-- Configuring done
-- Generating done
-- Build files have been written to: /home/sbyun/build_isolated/catkin
==> make -j8 -l8 in '/home/sbyun/build_isolated/catkin'
==> make install in '/home/sbyun/build_isolated/catkin'
Install the project...
-- Install configuration: "Release"
-- Installing: /home/sbyun/install_isolated/_setup_util.py
-- Installing: /home/sbyun/install_isolated/env.sh
-- Installing: /home/sbyun/install_isolated/setup.bash
-- Installing: /home/sbyun/install_isolated/setup.sh
-- Installing: /home/sbyun/install_isolated/setup.zsh
-- Installing: /home/sbyun/install_isolated/.rosinstall
-- Installing: /home/sbyun/install_isolated/etc/catkin/profile.d/05.catkin_make.bash
-- Installing: /home/sbyun/install_isolated/etc/catkin/profile.d/05.catkin_make_isolated.bash
-- Installing: /home/sbyun/install_isolated/lib/pkgconfig/catkin.pc
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/catkinConfig.cmake
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/catkinConfig-version.cmake
-- Installing: /home/sbyun/install_isolated/share/catkin/package.xml
-- Installing: /home/sbyun/install_isolated/share/catkin/LICENSE
-- Up-to-date: /home/sbyun/install_isolated/share/catkin/cmake
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/atomic_configure_file.cmake
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/test
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/test/tests.cmake
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/test/catkin_download_test_data.cmake
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/test/download_checkmd5.py
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/test/nosetests.cmake
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/test/gtest.cmake
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/test/remove_test_results.py
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/test/run_tests.py
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/find_program_required.cmake
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/catkin_package_xml.cmake
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/list_append_deduplicate.cmake
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/catkin_add_env_hooks.cmake
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/parse_package_xml.py
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/env-hooks
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/env-hooks/05.catkin_make_isolated.bash
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/env-hooks/05.catkin_make.bash
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/em
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/em/order_packages.cmake.em
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/em/pkg.pc.em
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/catkin_workspace.cmake
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/python.cmake
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/legacy.cmake
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/catkin_download.cmake
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/catkin_install_python.cmake
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/debug_message.cmake
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/platform
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/platform/lsb.cmake
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/platform/windows.cmake
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/platform/ubuntu.cmake
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/stamp.cmake
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/safe_execute_process.cmake
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/assert.cmake
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/order_paths.py
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/catkin_destinations.cmake
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/catkin_package.cmake
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/templates
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/templates/pkg.context.pc.in
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/templates/_setup_util.py.in
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/templates/script.in
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/templates/script.sh.in
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/templates/python_distutils_install.sh.in
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/templates/env-hook.context.py.in
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/templates/env.bat.in
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/templates/pkgConfig-version.cmake.in
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/templates/script.py.in
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/templates/order_packages.context.py.in
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/templates/setup.sh.in
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/templates/generate_cached_setup.py.in
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/templates/relay.py.in
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/templates/safe_execute_install.cmake.in
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/templates/setup.bash.in
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/templates/Doxyfile.in
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/templates/setup.bat.in
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/templates/env.sh.in
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/templates/python_distutils_install.bat.in
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/templates/setup.zsh.in
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/templates/script.bash.in
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/templates/__init__.py.in
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/templates/pkgConfig.cmake.in
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/templates/rosinstall.in
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/templates/cfg-extras.context.py.in
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/tools
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/tools/libraries.cmake
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/tools/bz2.cmake
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/tools/doxygen.cmake
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/tools/rt.cmake
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/tools/threads.cmake
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/toplevel.cmake
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/catkin_generate_environment.cmake
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/list_insert_in_workspace_order.cmake
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/shell.cmake
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/em_expand.cmake
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/list_append_unique.cmake
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/all.cmake
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/catkin_python_setup.cmake
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/interrogate_setup_dot_py.py
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/empy.cmake
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/catkin_libraries.cmake
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/catkin_metapackage.cmake
-- Installing: /home/sbyun/install_isolated/share/catkin/cmake/string_starts_with.cmake
+ cd /home/sbyun/ros-bare-bone-src/src/catkin
+ mkdir -p /home/sbyun/install_isolated/lib/python2.7/dist-packages
+ /usr/bin/env PYTHONPATH=/home/sbyun/install_isolated/lib/python2.7/dist-packages:/home/sbyun/build_isolated/catkin/lib/python2.7/dist-packages: CATKIN_BINARY_DIR=/home/sbyun/build_isolated/catkin /usr/bin/python /home/sbyun/ros-bare-bone-src/src/catkin/setup.py build --build-base /home/sbyun/build_isolated/catkin install --install-layout=deb --prefix=/home/sbyun/install_isolated --install-scripts=/home/sbyun/install_isolated/bin
running build
running build_py
creating /home/sbyun/build_isolated/catkin/lib.linux-x86_64-2.7
creating /home/sbyun/build_isolated/catkin/lib.linux-x86_64-2.7/catkin
copying python/catkin/test_results.py -> /home/sbyun/build_isolated/catkin/lib.linux-x86_64-2.7/catkin
copying python/catkin/builder.py -> /home/sbyun/build_isolated/catkin/lib.linux-x86_64-2.7/catkin
copying python/catkin/tidy_xml.py -> /home/sbyun/build_isolated/catkin/lib.linux-x86_64-2.7/catkin
copying python/catkin/init_workspace.py -> /home/sbyun/build_isolated/catkin/lib.linux-x86_64-2.7/catkin
copying python/catkin/terminal_color.py -> /home/sbyun/build_isolated/catkin/lib.linux-x86_64-2.7/catkin
copying python/catkin/find_in_workspaces.py -> /home/sbyun/build_isolated/catkin/lib.linux-x86_64-2.7/catkin
copying python/catkin/workspace_vcs.py -> /home/sbyun/build_isolated/catkin/lib.linux-x86_64-2.7/catkin
copying python/catkin/workspace.py -> /home/sbyun/build_isolated/catkin/lib.linux-x86_64-2.7/catkin
copying python/catkin/cmake.py -> /home/sbyun/build_isolated/catkin/lib.linux-x86_64-2.7/catkin
copying python/catkin/__init__.py -> /home/sbyun/build_isolated/catkin/lib.linux-x86_64-2.7/catkin
copying python/catkin/package_version.py -> /home/sbyun/build_isolated/catkin/lib.linux-x86_64-2.7/catkin
copying python/catkin/environment_cache.py -> /home/sbyun/build_isolated/catkin/lib.linux-x86_64-2.7/catkin
running build_scripts
creating /home/sbyun/build_isolated/catkin/scripts-2.7
copying and adjusting bin/catkin_find -> /home/sbyun/build_isolated/catkin/scripts-2.7
copying and adjusting bin/catkin_init_workspace -> /home/sbyun/build_isolated/catkin/scripts-2.7
copying and adjusting bin/catkin_make -> /home/sbyun/build_isolated/catkin/scripts-2.7
copying and adjusting bin/catkin_make_isolated -> /home/sbyun/build_isolated/catkin/scripts-2.7
copying and adjusting bin/catkin_package_version -> /home/sbyun/build_isolated/catkin/scripts-2.7
copying and adjusting bin/catkin_prepare_release -> /home/sbyun/build_isolated/catkin/scripts-2.7
copying and adjusting bin/catkin_test_results -> /home/sbyun/build_isolated/catkin/scripts-2.7
copying and adjusting bin/catkin_topological_order -> /home/sbyun/build_isolated/catkin/scripts-2.7
changing mode of /home/sbyun/build_isolated/catkin/scripts-2.7/catkin_find from 644 to 755
changing mode of /home/sbyun/build_isolated/catkin/scripts-2.7/catkin_init_workspace from 644 to 755
changing mode of /home/sbyun/build_isolated/catkin/scripts-2.7/catkin_make from 644 to 755
changing mode of /home/sbyun/build_isolated/catkin/scripts-2.7/catkin_make_isolated from 644 to 755
changing mode of /home/sbyun/build_isolated/catkin/scripts-2.7/catkin_package_version from 644 to 755
changing mode of /home/sbyun/build_isolated/catkin/scripts-2.7/catkin_prepare_release from 644 to 755
changing mode of /home/sbyun/build_isolated/catkin/scripts-2.7/catkin_test_results from 644 to 755
changing mode of /home/sbyun/build_isolated/catkin/scripts-2.7/catkin_topological_order from 644 to 755
running install
running install_lib
creating /home/sbyun/install_isolated/lib/python2.7/dist-packages/catkin
copying /home/sbyun/build_isolated/catkin/lib.linux-x86_64-2.7/catkin/test_results.py -> /home/sbyun/install_isolated/lib/python2.7/dist-packages/catkin
copying /home/sbyun/build_isolated/catkin/lib.linux-x86_64-2.7/catkin/builder.py -> /home/sbyun/install_isolated/lib/python2.7/dist-packages/catkin
copying /home/sbyun/build_isolated/catkin/lib.linux-x86_64-2.7/catkin/tidy_xml.py -> /home/sbyun/install_isolated/lib/python2.7/dist-packages/catkin
copying /home/sbyun/build_isolated/catkin/lib.linux-x86_64-2.7/catkin/init_workspace.py -> /home/sbyun/install_isolated/lib/python2.7/dist-packages/catkin
copying /home/sbyun/build_isolated/catkin/lib.linux-x86_64-2.7/catkin/terminal_color.py -> /home/sbyun/install_isolated/lib/python2.7/dist-packages/catkin
copying /home/sbyun/build_isolated/catkin/lib.linux-x86_64-2.7/catkin/find_in_workspaces.py -> /home/sbyun/install_isolated/lib/python2.7/dist-packages/catkin
copying /home/sbyun/build_isolated/catkin/lib.linux-x86_64-2.7/catkin/workspace_vcs.py -> /home/sbyun/install_isolated/lib/python2.7/dist-packages/catkin
copying /home/sbyun/build_isolated/catkin/lib.linux-x86_64-2.7/catkin/workspace.py -> /home/sbyun/install_isolated/lib/python2.7/dist-packages/catkin
copying /home/sbyun/build_isolated/catkin/lib.linux-x86_64-2.7/catkin/cmake.py -> /home/sbyun/install_isolated/lib/python2.7/dist-packages/catkin
copying /home/sbyun/build_isolated/catkin/lib.linux-x86_64-2.7/catkin/__init__.py -> /home/sbyun/install_isolated/lib/python2.7/dist-packages/catkin
copying /home/sbyun/build_isolated/catkin/lib.linux-x86_64-2.7/catkin/package_version.py -> /home/sbyun/install_isolated/lib/python2.7/dist-packages/catkin
copying /home/sbyun/build_isolated/catkin/lib.linux-x86_64-2.7/catkin/environment_cache.py -> /home/sbyun/install_isolated/lib/python2.7/dist-packages/catkin
byte-compiling /home/sbyun/install_isolated/lib/python2.7/dist-packages/catkin/test_results.py to test_results.pyc
byte-compiling /home/sbyun/install_isolated/lib/python2.7/dist-packages/catkin/builder.py to builder.pyc
byte-compiling /home/sbyun/install_isolated/lib/python2.7/dist-packages/catkin/tidy_xml.py to tidy_xml.pyc
byte-compiling /home/sbyun/install_isolated/lib/python2.7/dist-packages/catkin/init_workspace.py to init_workspace.pyc
byte-compiling /home/sbyun/install_isolated/lib/python2.7/dist-packages/catkin/terminal_color.py to terminal_color.pyc
byte-compiling /home/sbyun/install_isolated/lib/python2.7/dist-packages/catkin/find_in_workspaces.py to find_in_workspaces.pyc
byte-compiling /home/sbyun/install_isolated/lib/python2.7/dist-packages/catkin/workspace_vcs.py to workspace_vcs.pyc
byte-compiling /home/sbyun/install_isolated/lib/python2.7/dist-packages/catkin/workspace.py to workspace.pyc
byte-compiling /home/sbyun/install_isolated/lib/python2.7/dist-packages/catkin/cmake.py to cmake.pyc
byte-compiling /home/sbyun/install_isolated/lib/python2.7/dist-packages/catkin/__init__.py to __init__.pyc
byte-compiling /home/sbyun/install_isolated/lib/python2.7/dist-packages/catkin/package_version.py to package_version.pyc
byte-compiling /home/sbyun/install_isolated/lib/python2.7/dist-packages/catkin/environment_cache.py to environment_cache.pyc
running install_scripts
creating /home/sbyun/install_isolated/bin
copying /home/sbyun/build_isolated/catkin/scripts-2.7/catkin_package_version -> /home/sbyun/install_isolated/bin
copying /home/sbyun/build_isolated/catkin/scripts-2.7/catkin_init_workspace -> /home/sbyun/install_isolated/bin
copying /home/sbyun/build_isolated/catkin/scripts-2.7/catkin_make -> /home/sbyun/install_isolated/bin
copying /home/sbyun/build_isolated/catkin/scripts-2.7/catkin_test_results -> /home/sbyun/install_isolated/bin
copying /home/sbyun/build_isolated/catkin/scripts-2.7/catkin_prepare_release -> /home/sbyun/install_isolated/bin
copying /home/sbyun/build_isolated/catkin/scripts-2.7/catkin_make_isolated -> /home/sbyun/install_isolated/bin
copying /home/sbyun/build_isolated/catkin/scripts-2.7/catkin_find -> /home/sbyun/install_isolated/bin
copying /home/sbyun/build_isolated/catkin/scripts-2.7/catkin_topological_order -> /home/sbyun/install_isolated/bin
changing mode of /home/sbyun/install_isolated/bin/catkin_package_version to 755
changing mode of /home/sbyun/install_isolated/bin/catkin_init_workspace to 755
changing mode of /home/sbyun/install_isolated/bin/catkin_make to 755
changing mode of /home/sbyun/install_isolated/bin/catkin_test_results to 755
changing mode of /home/sbyun/install_isolated/bin/catkin_prepare_release to 755
changing mode of /home/sbyun/install_isolated/bin/catkin_make_isolated to 755
changing mode of /home/sbyun/install_isolated/bin/catkin_find to 755
changing mode of /home/sbyun/install_isolated/bin/catkin_topological_order to 755
running install_egg_info
Writing /home/sbyun/install_isolated/lib/python2.7/dist-packages/catkin-0.7.11.egg-info
<== Finished processing package [1 of 52]: 'catkin'

==> Processing catkin package: 'genmsg'
==> Creating build directory: 'build_isolated/genmsg'
==> Building with env: '/home/sbyun/install_isolated/env.sh'
==> cmake /home/sbyun/ros-bare-bone-src/src/genmsg -DCATKIN_DEVEL_PREFIX=/home/sbyun/devel_isolated/genmsg -DCMAKE_INSTALL_PREFIX=/home/sbyun/install_isolated -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=/home/sbyun/ros-cmake-tool.cmake -DCATKIN_ENABLE_TESTING=false -G Unix Makefiles in '/home/sbyun/build_isolated/genmsg'
-- The C compiler identification is GNU 5.4.1
-- The CXX compiler identification is GNU 5.4.1
-- Check for working C compiler: /home/sbyun/Downloads/gcc-linaro-5.4.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc
-- Check for working C compiler: /home/sbyun/Downloads/gcc-linaro-5.4.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc -- 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: /home/sbyun/Downloads/gcc-linaro-5.4.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-g++
-- Check for working CXX compiler: /home/sbyun/Downloads/gcc-linaro-5.4.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-g++ -- 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/sbyun/devel_isolated/genmsg
-- Using CMAKE_PREFIX_PATH: /home/sbyun/install_isolated
-- This workspace overlays: /home/sbyun/install_isolated
-- Found PythonInterp: /usr/bin/python (found version "2.7.12") 
-- Using PYTHON_EXECUTABLE: /usr/bin/python
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: false
-- catkin 0.7.11
-- Configuring done
-- Generating done
-- Build files have been written to: /home/sbyun/build_isolated/genmsg
==> make -j8 -l8 in '/home/sbyun/build_isolated/genmsg'
==> make install in '/home/sbyun/build_isolated/genmsg'
Install the project...
-- Install configuration: "Release"
-- Installing: /home/sbyun/install_isolated/_setup_util.py
-- Installing: /home/sbyun/install_isolated/env.sh
-- Installing: /home/sbyun/install_isolated/setup.bash
-- Installing: /home/sbyun/install_isolated/setup.sh
-- Installing: /home/sbyun/install_isolated/setup.zsh
-- Installing: /home/sbyun/install_isolated/.rosinstall
-- Installing: /home/sbyun/install_isolated/lib/pkgconfig/genmsg.pc
-- Installing: /home/sbyun/install_isolated/share/genmsg/cmake/genmsg-extras.cmake
-- Installing: /home/sbyun/install_isolated/share/genmsg/cmake/genmsgConfig.cmake
-- Installing: /home/sbyun/install_isolated/share/genmsg/cmake/genmsgConfig-version.cmake
-- Installing: /home/sbyun/install_isolated/share/genmsg/package.xml
-- Installing: /home/sbyun/install_isolated/share/genmsg/cmake/pkg-genmsg.cmake.em
-- Installing: /home/sbyun/install_isolated/share/genmsg/cmake/pkg-genmsg.context.in
-- Installing: /home/sbyun/install_isolated/share/genmsg/cmake/pkg-msg-extras.cmake.in
-- Installing: /home/sbyun/install_isolated/share/genmsg/cmake/pkg-msg-paths.cmake.develspace.in
-- Installing: /home/sbyun/install_isolated/share/genmsg/cmake/pkg-msg-paths.cmake.installspace.in
+ cd /home/sbyun/ros-bare-bone-src/src/genmsg
+ mkdir -p /home/sbyun/install_isolated/lib/python2.7/dist-packages
+ /usr/bin/env PYTHONPATH=/home/sbyun/install_isolated/lib/python2.7/dist-packages:/home/sbyun/build_isolated/genmsg/lib/python2.7/dist-packages:/home/sbyun/install_isolated/lib/python2.7/dist-packages CATKIN_BINARY_DIR=/home/sbyun/build_isolated/genmsg /usr/bin/python /home/sbyun/ros-bare-bone-src/src/genmsg/setup.py build --build-base /home/sbyun/build_isolated/genmsg install --install-layout=deb --prefix=/home/sbyun/install_isolated --install-scripts=/home/sbyun/install_isolated/bin
running build
running build_py
creating /home/sbyun/build_isolated/genmsg/lib.linux-x86_64-2.7
creating /home/sbyun/build_isolated/genmsg/lib.linux-x86_64-2.7/genmsg
copying src/genmsg/command_line.py -> /home/sbyun/build_isolated/genmsg/lib.linux-x86_64-2.7/genmsg
copying src/genmsg/template_tools.py -> /home/sbyun/build_isolated/genmsg/lib.linux-x86_64-2.7/genmsg
copying src/genmsg/base.py -> /home/sbyun/build_isolated/genmsg/lib.linux-x86_64-2.7/genmsg
copying src/genmsg/srvs.py -> /home/sbyun/build_isolated/genmsg/lib.linux-x86_64-2.7/genmsg
copying src/genmsg/deps.py -> /home/sbyun/build_isolated/genmsg/lib.linux-x86_64-2.7/genmsg
copying src/genmsg/msgs.py -> /home/sbyun/build_isolated/genmsg/lib.linux-x86_64-2.7/genmsg
copying src/genmsg/names.py -> /home/sbyun/build_isolated/genmsg/lib.linux-x86_64-2.7/genmsg
copying src/genmsg/gentools.py -> /home/sbyun/build_isolated/genmsg/lib.linux-x86_64-2.7/genmsg
copying src/genmsg/__init__.py -> /home/sbyun/build_isolated/genmsg/lib.linux-x86_64-2.7/genmsg
copying src/genmsg/msg_loader.py -> /home/sbyun/build_isolated/genmsg/lib.linux-x86_64-2.7/genmsg
running install
running install_lib
creating /home/sbyun/install_isolated/lib/python2.7/dist-packages/genmsg
copying /home/sbyun/build_isolated/genmsg/lib.linux-x86_64-2.7/genmsg/command_line.py -> /home/sbyun/install_isolated/lib/python2.7/dist-packages/genmsg
copying /home/sbyun/build_isolated/genmsg/lib.linux-x86_64-2.7/genmsg/template_tools.py -> /home/sbyun/install_isolated/lib/python2.7/dist-packages/genmsg
copying /home/sbyun/build_isolated/genmsg/lib.linux-x86_64-2.7/genmsg/base.py -> /home/sbyun/install_isolated/lib/python2.7/dist-packages/genmsg
copying /home/sbyun/build_isolated/genmsg/lib.linux-x86_64-2.7/genmsg/srvs.py -> /home/sbyun/install_isolated/lib/python2.7/dist-packages/genmsg
copying /home/sbyun/build_isolated/genmsg/lib.linux-x86_64-2.7/genmsg/deps.py -> /home/sbyun/install_isolated/lib/python2.7/dist-packages/genmsg
copying /home/sbyun/build_isolated/genmsg/lib.linux-x86_64-2.7/genmsg/msgs.py -> /home/sbyun/install_isolated/lib/python2.7/dist-packages/genmsg
copying /home/sbyun/build_isolated/genmsg/lib.linux-x86_64-2.7/genmsg/names.py -> /home/sbyun/install_isolated/lib/python2.7/dist-packages/genmsg
copying /home/sbyun/build_isolated/genmsg/lib.linux-x86_64-2.7/genmsg/gentools.py -> /home/sbyun/install_isolated/lib/python2.7/dist-packages/genmsg
copying /home/sbyun/build_isolated/genmsg/lib.linux-x86_64-2.7/genmsg/__init__.py -> /home/sbyun/install_isolated/lib/python2.7/dist-packages/genmsg
copying /home/sbyun/build_isolated/genmsg/lib.linux-x86_64-2.7/genmsg/msg_loader.py -> /home/sbyun/install_isolated/lib/python2.7/dist-packages/genmsg
byte-compiling /home/sbyun/install_isolated/lib/python2.7/dist-packages/genmsg/command_line.py to command_line.pyc
byte-compiling /home/sbyun/install_isolated/lib/python2.7/dist-packages/genmsg/template_tools.py to template_tools.pyc
byte-compiling /home/sbyun/install_isolated/lib/python2.7/dist-packages/genmsg/base.py to base.pyc
byte-compiling /home/sbyun/install_isolated/lib/python2.7/dist-packages/genmsg/srvs.py to srvs.pyc
byte-compiling /home/sbyun/install_isolated/lib/python2.7/dist-packages/genmsg/deps.py to deps.pyc
byte-compiling /home/sbyun/install_isolated/lib/python2.7/dist-packages/genmsg/msgs.py to msgs.pyc
byte-compiling /home/sbyun/install_isolated/lib/python2.7/dist-packages/genmsg/names.py to names.pyc
byte-compiling /home/sbyun/install_isolated/lib/python2.7/dist-packages/genmsg/gentools.py to gentools.pyc
byte-compiling /home/sbyun/install_isolated/lib/python2.7/dist-packages/genmsg/__init__.py to __init__.pyc
byte-compiling /home/sbyun/install_isolated/lib/python2.7/dist-packages/genmsg/msg_loader.py to msg_loader.pyc
running install_egg_info
Writing /home/sbyun/install_isolated/lib/python2.7/dist-packages/genmsg-0.5.10.egg-info
-- Installing: /home/sbyun/install_isolated/lib/genmsg/genmsg_check_deps.py
<== Finished processing package [2 of 52]: 'genmsg'
.
.
.
.

==> Processing catkin package: 'rosbag'
==> Creating build directory: 'build_isolated/rosbag'
==> Building with env: '/home/sbyun/install_isolated/env.sh'
==> cmake /home/sbyun/ros-bare-bone-src/src/ros_comm/rosbag -DCATKIN_DEVEL_PREFIX=/home/sbyun/devel_isolated/rosbag -DCMAKE_INSTALL_PREFIX=/home/sbyun/install_isolated -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=/home/sbyun/ros-cmake-tool.cmake -DCATKIN_ENABLE_TESTING=false -G Unix Makefiles in '/home/sbyun/build_isolated/rosbag'
-- The C compiler identification is GNU 5.4.1
-- The CXX compiler identification is GNU 5.4.1
-- Check for working C compiler: /home/sbyun/Downloads/gcc-linaro-5.4.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc
-- Check for working C compiler: /home/sbyun/Downloads/gcc-linaro-5.4.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc -- 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: /home/sbyun/Downloads/gcc-linaro-5.4.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-g++
-- Check for working CXX compiler: /home/sbyun/Downloads/gcc-linaro-5.4.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-g++ -- 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/sbyun/devel_isolated/rosbag
-- Using CMAKE_PREFIX_PATH: /home/sbyun/install_isolated
-- This workspace overlays: /home/sbyun/install_isolated
-- Found PythonInterp: /usr/bin/python (found version "2.7.12") 
-- Using PYTHON_EXECUTABLE: /usr/bin/python
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: false
-- catkin 0.7.11
-- Boost version: 1.58.0
-- Found the following Boost libraries:
--   date_time
--   regex
--   program_options
--   filesystem
--   system
-- Found BZip2: /home/sbyun/Downloads/DPX2_5050bL/output/5050bL_SDK/DriveSDK/drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libbz2.so (found version "1.0.6") 
-- Looking for BZ2_bzCompressInit
-- Looking for BZ2_bzCompressInit - found
-- Configuring done
-- Generating done
-- Build files have been written to: /home/sbyun/build_isolated/rosbag
==> make -j8 -l8 in '/home/sbyun/build_isolated/rosbag'
Scanning dependencies of target rosbag
[ 12%] Building CXX object CMakeFiles/rosbag.dir/src/player.cpp.o
[ 25%] Building CXX object CMakeFiles/rosbag.dir/src/recorder.cpp.o
[ 37%] Building CXX object CMakeFiles/rosbag.dir/src/time_translator.cpp.o
[ 50%] Linking CXX shared library /home/sbyun/devel_isolated/rosbag/lib/librosbag.so
[ 50%] Built target rosbag
Scanning dependencies of target play
Scanning dependencies of target record
[ 62%] Building CXX object CMakeFiles/play.dir/src/play.cpp.o
[ 75%] Building CXX object CMakeFiles/record.dir/src/record.cpp.o
[ 87%] Linking CXX executable /home/sbyun/devel_isolated/rosbag/lib/rosbag/play
[ 87%] Built target play
[100%] Linking CXX executable /home/sbyun/devel_isolated/rosbag/lib/rosbag/record
[100%] Built target record
==> make install in '/home/sbyun/build_isolated/rosbag'
[ 50%] Built target rosbag
[ 75%] Built target play
[100%] Built target record
Install the project...
-- Install configuration: "Release"
-- Installing: /home/sbyun/install_isolated/_setup_util.py
-- Installing: /home/sbyun/install_isolated/env.sh
-- Installing: /home/sbyun/install_isolated/setup.bash
-- Installing: /home/sbyun/install_isolated/setup.sh
-- Installing: /home/sbyun/install_isolated/setup.zsh
-- Installing: /home/sbyun/install_isolated/.rosinstall
+ cd /home/sbyun/ros-bare-bone-src/src/ros_comm/rosbag
+ mkdir -p /home/sbyun/install_isolated/lib/python2.7/dist-packages
+ /usr/bin/env PYTHONPATH=/home/sbyun/install_isolated/lib/python2.7/dist-packages:/home/sbyun/build_isolated/rosbag/lib/python2.7/dist-packages:/home/sbyun/install_isolated/lib/python2.7/dist-packages CATKIN_BINARY_DIR=/home/sbyun/build_isolated/rosbag /usr/bin/python /home/sbyun/ros-bare-bone-src/src/ros_comm/rosbag/setup.py build --build-base /home/sbyun/build_isolated/rosbag install --install-layout=deb --prefix=/home/sbyun/install_isolated --install-scripts=/home/sbyun/install_isolated/bin
running build
running build_py
creating /home/sbyun/build_isolated/rosbag/lib.linux-x86_64-2.7
creating /home/sbyun/build_isolated/rosbag/lib.linux-x86_64-2.7/rosbag
copying src/rosbag/bag.py -> /home/sbyun/build_isolated/rosbag/lib.linux-x86_64-2.7/rosbag
copying src/rosbag/rosbag_main.py -> /home/sbyun/build_isolated/rosbag/lib.linux-x86_64-2.7/rosbag
copying src/rosbag/migration.py -> /home/sbyun/build_isolated/rosbag/lib.linux-x86_64-2.7/rosbag
copying src/rosbag/__init__.py -> /home/sbyun/build_isolated/rosbag/lib.linux-x86_64-2.7/rosbag
running build_scripts
creating /home/sbyun/build_isolated/rosbag/scripts-2.7
copying and adjusting scripts/rosbag -> /home/sbyun/build_isolated/rosbag/scripts-2.7
changing mode of /home/sbyun/build_isolated/rosbag/scripts-2.7/rosbag from 644 to 755
running install
running install_lib
creating /home/sbyun/install_isolated/lib/python2.7/dist-packages/rosbag
copying /home/sbyun/build_isolated/rosbag/lib.linux-x86_64-2.7/rosbag/bag.py -> /home/sbyun/install_isolated/lib/python2.7/dist-packages/rosbag
copying /home/sbyun/build_isolated/rosbag/lib.linux-x86_64-2.7/rosbag/rosbag_main.py -> /home/sbyun/install_isolated/lib/python2.7/dist-packages/rosbag
copying /home/sbyun/build_isolated/rosbag/lib.linux-x86_64-2.7/rosbag/migration.py -> /home/sbyun/install_isolated/lib/python2.7/dist-packages/rosbag
copying /home/sbyun/build_isolated/rosbag/lib.linux-x86_64-2.7/rosbag/__init__.py -> /home/sbyun/install_isolated/lib/python2.7/dist-packages/rosbag
byte-compiling /home/sbyun/install_isolated/lib/python2.7/dist-packages/rosbag/bag.py to bag.pyc
byte-compiling /home/sbyun/install_isolated/lib/python2.7/dist-packages/rosbag/rosbag_main.py to rosbag_main.pyc
byte-compiling /home/sbyun/install_isolated/lib/python2.7/dist-packages/rosbag/migration.py to migration.pyc
byte-compiling /home/sbyun/install_isolated/lib/python2.7/dist-packages/rosbag/__init__.py to __init__.pyc
running install_scripts
copying /home/sbyun/build_isolated/rosbag/scripts-2.7/rosbag -> /home/sbyun/install_isolated/bin
changing mode of /home/sbyun/install_isolated/bin/rosbag to 755
running install_egg_info
Writing /home/sbyun/install_isolated/lib/python2.7/dist-packages/rosbag-1.12.13.egg-info
-- Installing: /home/sbyun/install_isolated/lib/pkgconfig/rosbag.pc
-- Installing: /home/sbyun/install_isolated/share/rosbag/cmake/rosbagConfig.cmake
-- Installing: /home/sbyun/install_isolated/share/rosbag/cmake/rosbagConfig-version.cmake
-- Installing: /home/sbyun/install_isolated/share/rosbag/package.xml
-- Up-to-date: /home/sbyun/install_isolated/include/rosbag
-- Installing: /home/sbyun/install_isolated/include/rosbag/time_translator.h
-- Installing: /home/sbyun/install_isolated/include/rosbag/recorder.h
-- Installing: /home/sbyun/install_isolated/include/rosbag/player.h
-- Installing: /home/sbyun/install_isolated/lib/librosbag.so
-- Set runtime path of "/home/sbyun/install_isolated/lib/librosbag.so" to ""
-- Installing: /home/sbyun/install_isolated/lib/rosbag/record
-- Set runtime path of "/home/sbyun/install_isolated/lib/rosbag/record" to ""
-- Installing: /home/sbyun/install_isolated/lib/rosbag/play
-- Set runtime path of "/home/sbyun/install_isolated/lib/rosbag/play" to ""
-- Installing: /home/sbyun/install_isolated/lib/rosbag/bag2png.py
-- Installing: /home/sbyun/install_isolated/lib/rosbag/bagsort.py
-- Installing: /home/sbyun/install_isolated/lib/rosbag/fastrebag.py
-- Installing: /home/sbyun/install_isolated/lib/rosbag/fixbag.py
-- Installing: /home/sbyun/install_isolated/lib/rosbag/fixbag_batch.py
-- Installing: /home/sbyun/install_isolated/lib/rosbag/fix_md5sums.py
-- Installing: /home/sbyun/install_isolated/lib/rosbag/fix_moved_messages.py
-- Installing: /home/sbyun/install_isolated/lib/rosbag/fix_msg_defs.py
-- Installing: /home/sbyun/install_isolated/lib/rosbag/makerule.py
-- Installing: /home/sbyun/install_isolated/lib/rosbag/savemsg.py
-- Installing: /home/sbyun/install_isolated/lib/rosbag/topic_renamer.py
<== Finished processing package [52 of 52]: 'rosbag'

Thanks

Thanks

Thanks

Dear 454615,

Please see below my ros-cmake-tool.cmake. Thanks.

set(CMAKE_SYSTEM_NAME Linux)

# Specify the cross compiler
set(TOOLCHAIN "/home/sbyun/Downloads/gcc-linaro-5.4.1-2017.05-x86_64_aarch64-linux-gnu")
set(CMAKE_CXX_COMPILER "${TOOLCHAIN}/bin/aarch64-linux-gnu-g++")
set(CMAKE_C_COMPILER "${TOOLCHAIN}/bin/aarch64-linux-gnu-gcc")

# Targetfs path
set(MYSYSROOT "/home/sbyun/Downloads/DPX2_5050bL/output/5050bL_SDK/DriveSDK/drive-t186ref-linux/targetfs")

set(LD_PATH "${MYSYSROOT}/usr/lib/aarch64-linux-gnu")
set(LD_PATH_EXTRA_1 "${MYSYSROOT}/lib/aarch64-linux-gnu")

set(ROSCONSOLE_BACKEND "print")

# setup compiler for cross-compilation
set(CMAKE_CXX_FLAGS           "-fPIC"               CACHE STRING "c++ flags")
set(CMAKE_C_FLAGS             "-fPIC"               CACHE STRING "c flags")
set(CMAKE_SHARED_LINKER_FLAGS ""                    CACHE STRING "shared linker flags")
set(CMAKE_MODULE_LINKER_FLAGS ""                    CACHE STRING "module linker flags")
set(CMAKE_EXE_LINKER_FLAGS    ""                    CACHE STRING "executable linker flags")


# Where is the target environment
set(CMAKE_FIND_ROOT_PATH ${MYSYSROOT})

# Please, be carefull looks like "-Wl,-unresolved-symbols=ignore-in-shared-libs" can lead to silent "ld" problems
set(CMAKE_SHARED_LINKER_FLAGS   "--sysroot=${CMAKE_FIND_ROOT_PATH} -L${LD_PATH} -L${LD_PATH_EXTRA_1} -Wl,-rpath,${LD_PATH} -Wl,-rpath,${LD_PATH_EXTRA_1} ${CMAKE_SHARED_LINKER_FLAGS}")
set(CMAKE_MODULE_LINKER_FLAGS   "--sysroot=${CMAKE_FIND_ROOT_PATH} -L${LD_PATH} -L${LD_PATH_EXTRA_1} -Wl,-rpath,${LD_PATH} -Wl,-rpath,${LD_PATH_EXTRA_1} ${CMAKE_SHARED_LINKER_FLAGS}")
set(CMAKE_EXE_LINKER_FLAGS      "--sysroot=${CMAKE_FIND_ROOT_PATH} -L${LD_PATH} -L${LD_PATH_EXTRA_1} -Wl,-rpath,${LD_PATH} -Wl,-rpath,${LD_PATH_EXTRA_1} ${CMAKE_EXE_LINKER_FLAGS}")


set(CMAKE_C_FLAGS "-fPIC --sysroot=${CMAKE_FIND_ROOT_PATH}" CACHE INTERNAL "" FORCE)
set(CMAKE_CXX_FLAGS "-fPIC --sysroot=${CMAKE_FIND_ROOT_PATH}" CACHE INTERNAL "" FORCE)

# Search for programs only in the build host directories
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)

# Search for libraries and headers only in the target directories
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)

# set system default include dir
include_directories(BEFORE SYSTEM ${MYSYSROOT}/../include)