yuzhenning / ROS_turtlebot2

This is a file record Ubuntu based ROS and Turtlebot2 control system
0 stars 0 forks source link

15 OpenCV install etc #15

Open yuzhenning opened 5 years ago

yuzhenning commented 5 years ago

install OpenCV on jetson tx1

yuzhenning commented 5 years ago

added a ssd 128g with sda1 and ada2 , 60 GB each

a SD card with 16GB storage. In stall OpenCV according to Jetson official guide: https://www.jetsonhacks.com/2017/09/05/build-opencv-on-the-nvidia-jetson-tx1/ https://www.jetsonhacks.com/2018/06/04/build-opencv-3-4-with-cuda-on-nvidia-jetson-tx1/

yuzhenning commented 5 years ago

To download the source and build OpenCV:

$ git clone https://github.com/jetsonhacks/buildOpenCVTX1.git
$ cd buildOpenCVTX1
$ ./buildOpenCV.sh
yuzhenning commented 5 years ago

You can remove the sources and build files after you are done:

$ ./removeOpenCVSources.sh -s <file directory> 
yuzhenning commented 5 years ago

The buildOpenCV script has two optional command line parameters:

-s | –sourcedir Directory in which to place the opencv sources (default $HOME)
-i | –installdir Directory in which to install opencv libraries (default /usr/local)

For example, to run the the build file:

$ ./buildOpenCV.sh -s <file directory>

This will build OpenCV is the given file directory and install OpenCV is the /usr/local directory.

yuzhenning commented 5 years ago

OpenCV and CUDA are automatically installed in JetPack - Nvidia official upload system.

Therefore, we need install JetPack in Ubuntu laptop firstly, and install TX1 system again. The TX1 is just suitable for JetPack 3.2.1 (The last version is 4.2 in Oct 2019). We download JetPack package in : https://developer.nvidia.com/embedded/jetpack-archive Download : Linux for Tegra R28.2