Cross compilation on linux

hi, we are are trying to compile driveworks on linux, we are bot able to build the driveworks package for aarch64, even after giving the command with option aarch64. when we checked the default packages delivered with drive px2 then we that it is build using aarch64 option, can you help here

Dear ramakrishna.r,
Could you please check the pre-requistes and compilation steps at file:///usr/local/driveworks/doc/nvdwx_html/dwx_samples_building.html

Hi Siva,
We followed below steps,

mkdir build cd build
cmake -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_TOOLCHAIN_FILE=/path/to/samples/cmake/Toolchain-V4L.cmake \ -DVIBRANTE_PDK:STRING=/path/to/drive-t186ref-linux \ /path/to/driveworks/samples/folder sudo make -j
$ sudo make install

The result after this were binaries for x86 and not aarch64.
The path/to/drive-t186ref-linux is missing and if we are not able to install SDK Manager offline or online(https://partners.nvidia.com/).
May be you can share the link to download SDK Manager offline, may be we are missing something.

Dear puneeth.joseph,

Could you please download SDK manger via https://developer.nvidia.com/nvidia-drive-downloads?

Hi SteveNV,

We downloaded the SDK and when we executed it, we got a web page asking for login details.
After we entered details in Devzone and tried to login there was a crash .

I took reference from this link, https://devtalk.nvidia.com/default/topic/1044026/driveworks/cross-compile-failure/
I was able to compile but the binaries were x86 and not aarch64.

Hi,
Please find some logs from the steps I followed.
test:~/Downloads/PXSoftware$ source ~/.bashrc
test:~/Downloads/PXSoftware$ nvcc --version
nvcc: NVIDIA ® Cuda compiler driver
Copyright © 2005-2018 NVIDIA Corporation
Built on Sun_Apr__1_21:07:38_CDT_2018
Cuda compilation tools, release 9.2, V9.2.78
test:~/Downloads/PXSoftware$ cd build-target/
test:~/Downloads/PXSoftware/build-target$ ls
test:~/Downloads/PXSoftware/build-target$ sudo cmake -DCMAKE_BUILD_TYPE=Release-DCMAKE_TOOLCHAIN_FILE=/usr/local/driveworks-0.6/samples/cmake/Toolchain-V4L.cmake -DVIBRANTE_PDK:STRING=/home/test/NVIDIA/Drive/5050bL_PDK/DrivePDK/drive-t186ref-linux /usr/local/driveworks-0.6/samples/
3rdparty/ cmake/ CMakeLists.txt README.md src/
test:~/Downloads/PXSoftware/build-target$ sudo cmake -DCMAKE_BUILD_TYPE=Release-DCMAKE_TOOLCHAIN_FILE=/usr/local/driveworks-0.6/samples/cmake/Toolchain-V4L.cmake -DVIBRANTE_PDK:STRING=/home/test/NVIDIA/Drive/5050bL_PDK/DrivePDK/drive-t186ref-linux /usr/local/driveworks-0.6/samples/
CMake Warning at cmake/SamplesSetBuildType.cmake:15 (message):
CMAKE_BUILD_TYPE must be one of (Debug|Release). Using Release as default.
Call Stack (most recent call first):
CMakeLists.txt:9 (include)

– The C compiler identification is GNU 5.4.0
– The CXX compiler identification is GNU 5.4.0
– Check for working C compiler: /usr/bin/cc
– Check for working C compiler: /usr/bin/cc – 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: /usr/bin/c++
– Check for working CXX compiler: /usr/bin/c++ – 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 (found version “9.0”)
– Looking for pthread.h
– Looking for 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
– Found TensorRT:
– - Includes: /usr/include/x86_64-linux-gnu
– - Libraries: /usr/lib/x86_64-linux-gnu/libnvinfer.so;/usr/lib/x86_64-linux-gnu/libnvcaffe_parser.so
– Found libcudnn:
– - Includes: /usr/include
– - Libraries: /usr/lib/x86_64-linux-gnu/libcudnn.so
– Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
– Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
– Looking for gethostbyname
– Looking for gethostbyname - found
– Looking for connect
– Looking for connect - found
– Looking for remove
– Looking for remove - found
– Looking for shmat
– Looking for shmat - found
– Looking for IceConnectionNumber in ICE
– Looking for IceConnectionNumber in ICE - found
– Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
– Driveworks Samples install dir: /home/test/Downloads/PXSoftware/build-target/install
– Driveworks found at: /usr/local/driveworks-0.6/targets/x86_64-linux
– Found Driveworks
– Configuring done
– Generating done
– Build files have been written to: /home/test/Downloads/PXSoftware/build-target

I see only x86_64-linux been sourced and not aarch64.