Error while following DRIVE PX2 ROS CROSS COMPILATION instructions

I followed the instructions as mentioned in the FAQ (DRIVE PX2 ROS CROSS COMPILATION), but I am getting an error after invoking cross-compilation command
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/nvidiapx2/modifiedToolchainRos/toolchainRos.cmake
-DCATKIN_ENABLE_TESTING=false

ERROR:


[ 88%] Linking CXX executable /home/nvidiapx2/devel_isolated/rospack/bin/rosstack
[100%] Linking CXX executable /home/nvidiapx2/devel_isolated/rospack/bin/rospack
/home/nvidiapx2/Linaro_GCC_CrossCompiler_toolchain/gcc-linaro-5.4.1-2017.05-x86_64_aarch64-linux-gnu/bin/…/lib/gcc/aarch64-linux-gnu/5.4.1/…/…/…/…/aarch64-linux-gnu/bin/ld: warning: libpthread.so.0, needed by /home/nvidiapx2/NVIDIA/Drive/5050L_SDK/DriveSDK/drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libboost_filesystem.so, not found (try using -rpath or -rpath-link)
/home/nvidiapx2/Linaro_GCC_CrossCompiler_toolchain/gcc-linaro-5.4.1-2017.05-x86_64_aarch64-linux-gnu/bin/…/lib/gcc/aarch64-linux-gnu/5.4.1/…/…/…/…/aarch64-linux-gnu/bin/ld: warning: libz.so.1, needed by /home/nvidiapx2/NVIDIA/Drive/5050L_SDK/DriveSDK/drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libpython2.7.so, not found (try using -rpath or -rpath-link)
/home/nvidiapx2/Linaro_GCC_CrossCompiler_toolchain/gcc-linaro-5.4.1-2017.05-x86_64_aarch64-linux-gnu/bin/…/lib/gcc/aarch64-linux-gnu/5.4.1/…/…/…/…/aarch64-linux-gnu/bin/ld: warning: libdl.so.2, needed by /home/nvidiapx2/NVIDIA/Drive/5050L_SDK/DriveSDK/drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libpython2.7.so, not found (try using -rpath or -rpath-link)
/home/nvidiapx2/Linaro_GCC_CrossCompiler_toolchain/gcc-linaro-5.4.1-2017.05-x86_64_aarch64-linux-gnu/bin/…/lib/gcc/aarch64-linux-gnu/5.4.1/…/…/…/…/aarch64-linux-gnu/bin/ld: warning: libutil.so.1, needed by /home/nvidiapx2/NVIDIA/Drive/5050L_SDK/DriveSDK/drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libpython2.7.so, not found (try using -rpath or -rpath-link)
/home/nvidiapx2/NVIDIA/Drive/5050L_SDK/DriveSDK/drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libpython2.7.so: undefined reference to deflateInit_' /home/nvidiapx2/NVIDIA/Drive/5050L_SDK/DriveSDK/drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libpython2.7.so: undefined reference to deflateInit2_’
/home/nvidiapx2/NVIDIA/Drive/5050L_SDK/DriveSDK/drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libpython2.7.so: undefined reference to sem_init@GLIBC_2.17' /home/nvidiapx2/NVIDIA/Drive/5050L_SDK/DriveSDK/drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libpython2.7.so: undefined reference to dlerror@GLIBC_2.17’
/home/nvidiapx2/NVIDIA/Drive/5050L_SDK/DriveSDK/drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libpython2.7.so: undefined reference to sem_trywait@GLIBC_2.17' /home/nvidiapx2/NVIDIA/Drive/5050L_SDK/DriveSDK/drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libpython2.7.so: undefined reference to forkpty@GLIBC_2.17’
/home/nvidiapx2/NVIDIA/Drive/5050L_SDK/DriveSDK/drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libpython2.7.so: undefined reference to deflate' /home/nvidiapx2/NVIDIA/Drive/5050L_SDK/DriveSDK/drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libpython2.7.so: undefined reference to pthread_create@GLIBC_2.17’
/home/nvidiapx2/NVIDIA/Drive/5050L_SDK/DriveSDK/drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libpython2.7.so: undefined reference to deflateEnd' /home/nvidiapx2/NVIDIA/Drive/5050L_SDK/DriveSDK/drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libpython2.7.so: undefined reference to openpty@GLIBC_2.17’
/home/nvidiapx2/NVIDIA/Drive/5050L_SDK/DriveSDK/drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libpython2.7.so: undefined reference to crc32' /home/nvidiapx2/NVIDIA/Drive/5050L_SDK/DriveSDK/drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libpython2.7.so: undefined reference to inflate’
/home/nvidiapx2/NVIDIA/Drive/5050L_SDK/DriveSDK/drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libpython2.7.so: undefined reference to sem_destroy@GLIBC_2.17' /home/nvidiapx2/NVIDIA/Drive/5050L_SDK/DriveSDK/drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libpython2.7.so: undefined reference to inflateInit2_’
/home/nvidiapx2/NVIDIA/Drive/5050L_SDK/DriveSDK/drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libpython2.7.so: undefined reference to sem_post@GLIBC_2.17' /home/nvidiapx2/NVIDIA/Drive/5050L_SDK/DriveSDK/drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libpython2.7.so: undefined reference to inflateEnd’
/home/nvidiapx2/NVIDIA/Drive/5050L_SDK/DriveSDK/drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libpython2.7.so: undefined reference to deflateCopy' /home/nvidiapx2/NVIDIA/Drive/5050L_SDK/DriveSDK/drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libpython2.7.so: undefined reference to dlopen@GLIBC_2.17’
/home/nvidiapx2/NVIDIA/Drive/5050L_SDK/DriveSDK/drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libpython2.7.so: undefined reference to pthread_attr_setstacksize@GLIBC_2.17' /home/nvidiapx2/NVIDIA/Drive/5050L_SDK/DriveSDK/drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libpython2.7.so: undefined reference to sem_wait@GLIBC_2.17’
/home/nvidiapx2/NVIDIA/Drive/5050L_SDK/DriveSDK/drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libpython2.7.so: undefined reference to dlsym@GLIBC_2.17' /home/nvidiapx2/NVIDIA/Drive/5050L_SDK/DriveSDK/drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libpython2.7.so: undefined reference to pthread_detach@GLIBC_2.17’
/home/nvidiapx2/NVIDIA/Drive/5050L_SDK/DriveSDK/drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libpython2.7.so: undefined reference to inflateCopy@ZLIB_1.2.0' /home/nvidiapx2/NVIDIA/Drive/5050L_SDK/DriveSDK/drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libpython2.7.so: undefined reference to adler32’
collect2: error: ld returned 1 exit status
CMakeFiles/rosstackexe.dir/build.make:103: recipe for target ‘/home/nvidiapx2/devel_isolated/rospack/bin/rosstack’ failed
make[2]: *** [/home/nvidiapx2/devel_isolated/rospack/bin/rosstack] Error 1
/home/nvidiapx2/Linaro_GCC_CrossCompiler_toolchain/gcc-linaro-5.4.1-2017.05-x86_64_aarch64-linux-gnu/bin/…/lib/gcc/aarch64-linux-gnu/5.4.1/…/…/…/…/aarch64-linux-gnu/bin/ld:CMakeFiles/Makefile2:136: recipe for target ‘CMakeFiles/rosstackexe.dir/all’ failed
warningmake[1]: *** [CMakeFiles/rosstackexe.dir/all] Error 2
: libpthread.so.0, neededmake[1]: *** Waiting for unfinished jobs…
by /home/nvidiapx2/NVIDIA/Drive/5050L_SDK/DriveSDK/drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libboost_filesystem.so, not found (try using -rpath or -rpath-link)
/home/nvidiapx2/Linaro_GCC_CrossCompiler_toolchain/gcc-linaro-5.4.1-2017.05-x86_64_aarch64-linux-gnu/bin/…/lib/gcc/aarch64-linux-gnu/5.4.1/…/…/…/…/aarch64-linux-gnu/bin/ld: warning: libz.so.1, needed by /home/nvidiapx2/NVIDIA/Drive/5050L_SDK/DriveSDK/drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libpython2.7.so, not found (try using -rpath or -rpath-link)
/home/nvidiapx2/Linaro_GCC_CrossCompiler_toolchain/gcc-linaro-5.4.1-2017.05-x86_64_aarch64-linux-gnu/bin/…/lib/gcc/aarch64-linux-gnu/5.4.1/…/…/…/…/aarch64-linux-gnu/bin/ld: warning: libdl.so.2, needed by /home/nvidiapx2/NVIDIA/Drive/5050L_SDK/DriveSDK/drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libpython2.7.so, not found (try using -rpath or -rpath-link)
/home/nvidiapx2/Linaro_GCC_CrossCompiler_toolchain/gcc-linaro-5.4.1-2017.05-x86_64_aarch64-linux-gnu/bin/…/lib/gcc/aarch64-linux-gnu/5.4.1/…/…/…/…/aarch64-linux-gnu/bin/ld: warning: libutil.so.1, needed by /home/nvidiapx2/NVIDIA/Drive/5050L_SDK/DriveSDK/drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libpython2.7.so, not found (try using -rpath or -rpath-link)
/home/nvidiapx2/NVIDIA/Drive/5050L_SDK/DriveSDK/drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libpython2.7.so: undefined reference to deflateInit_' /home/nvidiapx2/NVIDIA/Drive/5050L_SDK/DriveSDK/drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libpython2.7.so: undefined reference to deflateInit2_’
/home/nvidiapx2/NVIDIA/Drive/5050L_SDK/DriveSDK/drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libpython2.7.so: undefined reference to sem_init@GLIBC_2.17' /home/nvidiapx2/NVIDIA/Drive/5050L_SDK/DriveSDK/drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libpython2.7.so: undefined reference to dlerror@GLIBC_2.17’
/home/nvidiapx2/NVIDIA/Drive/5050L_SDK/DriveSDK/drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libpython2.7.so: undefined reference to sem_trywait@GLIBC_2.17' /home/nvidiapx2/NVIDIA/Drive/5050L_SDK/DriveSDK/drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libpython2.7.so: undefined reference to forkpty@GLIBC_2.17’
/home/nvidiapx2/NVIDIA/Drive/5050L_SDK/DriveSDK/drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libpython2.7.so: undefined reference to deflate' /home/nvidiapx2/NVIDIA/Drive/5050L_SDK/DriveSDK/drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libpython2.7.so: undefined reference to pthread_create@GLIBC_2.17’
/home/nvidiapx2/NVIDIA/Drive/5050L_SDK/DriveSDK/drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libpython2.7.so: undefined reference to deflateEnd' /home/nvidiapx2/NVIDIA/Drive/5050L_SDK/DriveSDK/drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libpython2.7.so: undefined reference to openpty@GLIBC_2.17’
/home/nvidiapx2/NVIDIA/Drive/5050L_SDK/DriveSDK/drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libpython2.7.so: undefined reference to crc32' /home/nvidiapx2/NVIDIA/Drive/5050L_SDK/DriveSDK/drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libpython2.7.so: undefined reference to inflate’
/home/nvidiapx2/NVIDIA/Drive/5050L_SDK/DriveSDK/drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libpython2.7.so: undefined reference to sem_destroy@GLIBC_2.17' /home/nvidiapx2/NVIDIA/Drive/5050L_SDK/DriveSDK/drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libpython2.7.so: undefined reference to inflateInit2_’
/home/nvidiapx2/NVIDIA/Drive/5050L_SDK/DriveSDK/drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libpython2.7.so: undefined reference to sem_post@GLIBC_2.17' /home/nvidiapx2/NVIDIA/Drive/5050L_SDK/DriveSDK/drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libpython2.7.so: undefined reference to inflateEnd’
/home/nvidiapx2/NVIDIA/Drive/5050L_SDK/DriveSDK/drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libpython2.7.so: undefined reference to deflateCopy' /home/nvidiapx2/NVIDIA/Drive/5050L_SDK/DriveSDK/drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libpython2.7.so: undefined reference to dlopen@GLIBC_2.17’
/home/nvidiapx2/NVIDIA/Drive/5050L_SDK/DriveSDK/drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libpython2.7.so: undefined reference to pthread_attr_setstacksize@GLIBC_2.17' /home/nvidiapx2/NVIDIA/Drive/5050L_SDK/DriveSDK/drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libpython2.7.so: undefined reference to sem_wait@GLIBC_2.17’
/home/nvidiapx2/NVIDIA/Drive/5050L_SDK/DriveSDK/drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libpython2.7.so: undefined reference to dlsym@GLIBC_2.17' /home/nvidiapx2/NVIDIA/Drive/5050L_SDK/DriveSDK/drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libpython2.7.so: undefined reference to pthread_detach@GLIBC_2.17’
/home/nvidiapx2/NVIDIA/Drive/5050L_SDK/DriveSDK/drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libpython2.7.so: undefined reference to inflateCopy@ZLIB_1.2.0' /home/nvidiapx2/NVIDIA/Drive/5050L_SDK/DriveSDK/drive-t186ref-linux/targetfs/usr/lib/aarch64-linux-gnu/libpython2.7.so: undefined reference to adler32’
collect2: error: ld returned 1 exit status
CMakeFiles/rospackexe.dir/build.make:103: recipe for target ‘/home/nvidiapx2/devel_isolated/rospack/bin/rospack’ failed
make[2]: *** [/home/nvidiapx2/devel_isolated/rospack/bin/rospack] Error 1
CMakeFiles/Makefile2:99: recipe for target ‘CMakeFiles/rospackexe.dir/all’ failed
make[1]: *** [CMakeFiles/rospackexe.dir/all] Error 2
Makefile:127: recipe for target ‘all’ failed
make: *** [all] Error 2
<== Failed to process package ‘rospack’:
Command ‘[’/home/nvidiapx2/install_isolated/env.sh’, ‘make’, ‘-j8’, ‘-l8’]’ returned non-zero exit status 2

Reproduce this error by running:
==> cd /home/nvidiapx2/build_isolated/rospack && /home/nvidiapx2/install_isolated/env.sh make -j8 -l8

Command failed, exiting.

Please let me know what should be done to clear this error

Dear swetha.rao,

This seems like a library missing problem.

Would you try to run the steps below?
$ sudo mkdir /lib/aarch64-linux-gnu
$ sudo mkdir /tmp/ros-cc-overlayfs
$ sudo mount -t overlay -o lowerdir=/lib/aarch64-linux-gnu,upperdir=/lib/aarch64-linux-gnu,workdir=/tmp/ros-cc-overlayfs overlay /lib/aarch64-linux-gnu

  • Dear SteveNV,

    I tried the mentioned steps, but I am still getting the same error, but weirder. All the words are displayed twice as shown below,

    [ 77%] Linking CXX executable /home/nvidiapx2/devel_isolated/rospack/bin/rospack
    //homehome//nvidiapx2nvidiapx2//Linaro_GCC_CrossCompiler_toolchainLinaro_GCC_CrossCompiler_toolchain//gccgcc–linarolinaro–5.4.15.4.1–2017.052017.05–x86_64_aarch64x86_64_aarch64–linuxlinux–gnugnu//binbin//…//liblib//gccgcc//aarch64aarch64–linuxlinux–gnugnu//5.4.15.4.1//…//…//…//…//aarch64aarch64–linuxlinux–gnugnu//binbin//ldld:: warningwarning:: libpthread.so.0libpthread.so.0, neededneeded byby //homehome//nvidiapx2nvidiapx2//NVIDIANVIDIA//DriveDrive//5050L_SDK5050L_SDK//DriveSDKDriveSDK//drivedrive–t186reft186ref–linuxlinux//targetfstargetfs//usrusr//liblib//aarch64aarch64–linuxlinux–gnugnu//libboost_filesystem.solibboost_filesystem.so, notnot foundfound ((trytry usingusing --rpathrpath oror --rpathrpath–linklink))


    The .so files mentioned in the error message exist in the targetfs/usr/lib/aarch64-linux-gnu/ folder, I don’t know why the files are not getting linked.
    Is there a way to try everything again by uninstalling the packages previously installed. Or can I install the ubuntu-xenial arm64 root file system again by running the .run files in DRIVE 5.0 Linux release?

    Hi swetha.rao,

    [url]https://gist.github.com/twailurus/f8d6de85cb7a8445d4c194eb00f77a67[/url]

    Hope this help you : )

    Hi Swetha.rao did you find a solution to this?

    Thanks!

    I try the guide in TX2,
    https://devtalk.nvidia.com/default/topic/1032206/faq/drive-px2-ros-cross-compilation/
    get the same error log, is anyone fix it?
    Thanks.

    Hi Feiniao1221,

    Follow 454615 link to a new CMakeLists.txt - it has corrections which helped me.

    https://gist.github.com/twailurus/f8d6de85cb7a8445d4c194eb00f77a67

    Thanks

    Great, it works, thanks for your help.

    https://gist.github.com/twailurus/f8d6de85cb7a8445d4c194eb00f77a67
    the link may not access now , the content as follow:
    copyright @ https://github.com/twailurus
    set(CMAKE_SYSTEM_NAME Linux)

    Specify the cross compiler

    set(TOOLCHAIN “$ENV{HOME}/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(ROS_SYSROOT “$ENV{HOME}/nvidia/nvidia_sdk/DRIVE/Linux/5.0.10.3/OS/DriveSDK/drive-t186ref-linux/targetfs”)

    set(LD_PATH “${ROS_SYSROOT}/usr/lib/aarch64-linux-gnu”)
    set(LD_PATH_EXTRA_1 “${ROS_SYSROOT}/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 ${ROS_SYSROOT})

    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 ${ROS_SYSROOT}/…/include)

    I just change my username from twailurus to twbabyduck. Ha Ha ~~

    The link could access now DRIVE PX2 ROS CROSS COMPILATION (Dec 05) · GitHub