(PLEASE DELETE, WAS RESOLVED) Cross-Compilation Error

I am attempting to cross-compile from a Ubuntu host to a DRIVE PX2 AutoChauffeur. I ran:

cmake -DCMAKE_BUILD_TYPE=Release \

     -DCMAKE_TOOLCHAIN_FILE=/home/jerry/Documents/driveworks/samples/cmake/Toolchain-V4L.cmake \
     -DVIBRANTE_PDK:STRING=/home/jerry/Documents/VibranteSDK/vibrante-t186ref-linux \
      /home/jerry/Documents/driveworks/samples

And received the following output:

– VIBRANTE_PDK = /home/jerry/Documents/VibranteSDK/vibrante-t186ref-linux
– VIBRANTE_PDK_DEVICE = t186ref
– VIBRANTE_PDK_BRANCH = 4.1.8.0
– VIBRANTE_PDK = /home/jerry/Documents/VibranteSDK/vibrante-t186ref-linux
– The C compiler identification is GNU 4.9.2
– The CXX compiler identification is GNU 4.9.2
– Check for working C compiler: /home/jerry/Documents/VibranteSDK/vibrante-t186ref-linux/…/toolchains/tegra-4.9-nv/usr/bin/aarch64-gnu-linux/aarch64-gnu-linux-gcc
– Check for working C compiler: /home/jerry/Documents/VibranteSDK/vibrante-t186ref-linux/…/toolchains/tegra-4.9-nv/usr/bin/aarch64-gnu-linux/aarch64-gnu-linux-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/jerry/Documents/VibranteSDK/vibrante-t186ref-linux/…/toolchains/tegra-4.9-nv/usr/bin/aarch64-gnu-linux/aarch64-gnu-linux-g++
– Check for working CXX compiler: /home/jerry/Documents/VibranteSDK/vibrante-t186ref-linux/…/toolchains/tegra-4.9-nv/usr/bin/aarch64-gnu-linux/aarch64-gnu-linux-g++ – works
– Detecting CXX compiler ABI info
– Detecting CXX compiler ABI info - done
– Detecting CXX compile features
– Detecting CXX compile features - done
– Found CUDA: /usr/local/cuda-8.0 (found version “8.0”)
– Looking for include file pthread.h
– Looking for include file pthread.h - found
– Looking for pthread_create
– Looking for pthread_create - not found
– Looking for pthread_create in pthreads
– Looking for pthread_create in pthreads - not found
– Looking for pthread_create in pthread
– Looking for pthread_create in pthread - found
– Found Threads: TRUE
– Cross Compiling for Vibrante
[b]CMake Error at cmake/Samples3rdparty.cmake:10 (find_package):
Could not find a package configuration file provided by “lodepng” with any
of the following names:

lodepngConfig.cmake
lodepng-config.cmake

Add the installation prefix of “lodepng” to CMAKE_PREFIX_PATH or set
“lodepng_DIR” to a directory containing one of the above files. If
“lodepng” provides a separate development package or SDK, be sure it has
been installed.[/b]
Call Stack (most recent call first):
CMakeLists.txt:27 (include)

– Configuring incomplete, errors occurred!
See also “/home/jerry/Documents/driveworks/build/CMakeFiles/CMakeOutput.log”.
See also “/home/jerry/Documents/driveworks/build/CMakeFiles/CMakeError.log”.

Thoughts on what caused this error? Thanks!

Dear JerryHong,

Could you please check below Prerequisties?(Please see /file://usr/local/driveworks-0.3/doc/nvdwx_html/dwx_samples_building.html in DPX2) Thanks.

Prerequisites

Basic Hardware Requirements
•NVIDIDA DRIVE™ PX 2 with the latest PDK flashed in the system.
•Linux desktop of Linux x86/x64

Linux System Requirements

These are the basic preqrequisites for Linux:
•Ubuntu Linux 14.04 (out of the box installation)
•GCC >= 4.8.X && GCC <= 4.9.x

•cmake version >= 3.2.2

By default, Ubuntu 14.04 installs cmake version 2.8. For guidance on installing cmake 3.x, see:
http://askubuntu.com/questions/610291/how-to-install-cmake-3-2-on-ubuntu-14-04

•CUDA Toolkit 8.0 or higher
•NVIDIA® CUDA® version 8.0 or later
•NVIDIA® Vibrante™ PDK installation for DRIVE PX 2 on the Linux Host
•You may also need to install (using apt-get install) the following packages: libx11-dev
libxrandr-dev
libxcursor-dev
libxxf86vm-dev
libxinerama-dev
libxi-dev
libglu1-mesa-dev

Desktop development relies on NVCUVID for video decoding, which is included with the NVIDIA drivers. In general, the cmake build scripts can find NVCUVID installation. However, if this fails, you must set a symbolic link /usr/lib/nvidia-current pointing to your NVIDIA driver lib. For example /usr/lib/nvidia-367