Build and install Autoware for Nvidia DrivePX2


backup

mkdir -p backup/usr/lib
sudo cp -a /usr/lib/libdrm* backup/usr/lib
sudo cp -a /usr/lib/libwayland-* backup/usr/lib

mkdir -p backup/etc/nvidia
sudo cp -a /etc/nvidia/nvidia_gl.conf backup/etc/nvidia
sudo cp -a /etc/nvidia/nvidia_egl.conf backup/etc/nvidia

installation

sudo apt-get install --reinstall -y libdrm2 libdrm-dev libwayland-client0 libwayland-cursor0 libwayland-egl1-mesa libwayland-server0 libwayland-dev
sudo ldconfig

*Please reboot after installation.

ROS Installation

Autoware Installation

source /opt/ros/kinetic/setup.bash

sudo apt-get install -y openssh-server libnlopt-dev freeglut3-dev qtbase5-dev libqt5opengl5-dev libssh2-1-dev libarmadillo-dev libpcap-dev git
sudo apt-get install -y libnlopt-dev freeglut3-dev qt5-default libqt5opengl5-dev libssh2-1-dev libarmadillo-dev libpcap-dev libglew-dev gksu
sudo apt-get install -y libxmu-dev python-wxgtk3.0 python-wxgtk3.0-dev
sudo ln -s /usr/include/aarch64-linux-gnu/qt5 /usr/include/qt5

cd ~/
git clone https://github.com/CPFL/Autoware.git
cd Autoware

find file and add som :
find
“…/computing/perception/localization/lib/fast_pcl/ndt_gpu/include/fast_pcl/ndt_gpu/common.h”
at end of file add :
c++
// This is the temploary patch for CUDA9 build problem
#if ( __CUDACC_VER_MAJOR__ >=9 )
#undef __CUDACC_VER__
#define __CUDACC_VER__ 90000
#endif

cd ros

export LD_LIBRARY_PATH=/usr/lib/aarch64-linux-gnu/

./catkin_make_release -j1
Author Rewards

Leave a Reply

Your email address will not be published. Required fields are marked *