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