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!