OpenCV Jetson TK1 - eiichiromomma/CVMLAB GitHub Wiki
OpenCV) Jetson TK1
(OpenCV
sudo aptitude remove libopencv4tegra libopencv4tegra-dev libopencv4tegra-repo
sudo aptitude install gir1.2-gtk-2.0 libatk1.0-dev libavcodec-dev libavformat-dev libavutil-dev libcairo-script-interpreter2 libcairo2-dev libdc1394-22-dev libfontconfig1-dev libgdk-pixbuf2.0-dev libgtk2.0-dev libharfbuzz-dev libharfbuzz-gobject0 libilmbase-dev libjasper-dev libjbig-dev libjpeg-dev libjpeg-turbo8-dev libjpeg8-dev liblzma-dev libopenexr-dev libpango1.0-dev libpixman-1-dev libraw1394-dev libraw1394-tools libswscale-dev libswscale2 libtiff5-dev libtiffxx5 libxcb-shm0-dev libxcomposite-dev libxcursor-dev libxft-dev libxinerama-dev libxml2-utils x11proto-composite-dev x11proto-xinerama-dev
sudo aptitude install git cmake-curses-gui libtbb-dev libeigen3-dev liblapack-dev libvtk5-dev python-numpy libv4l-dev
git clone https://github.com/opencv/opencv.git
git clone https://github.com/opencv/opencv_contrib.git
cd opencv
mkdir build
cd build
ccmake ../
make -j4
sudo make install
- ON: WITH_OPENGL, WITH_OPENMP, WITH_VTK
- OFF: BUILD_TESTS, BUILD_PREF_TESTS
- OPENCV_EXTRA_MODULES_PATH: /home/ubuntu/opencv_contrib/modules
opencv/samples/gpu/CMakeLists.txt
add
find_package(OpenGL REQUIRED)
find_package(GLUT REQUIRED)
and
ocv_target_link_libraries(${the_target} ${OPENCV_LINKER_LIBS} ${OPENCV_CUDA_SAMPLES_REQUIRED_DEPS})
to
ocv_target_link_libraries(${the_target} ${OPENCV_LINKER_LIBS} ${OPENCV_CUDA_SAMPLES_REQUIRED_DEPS} ${OPENGL_LIBRARIES} ${GLUT_LIBRARY})
CMake
ccmake ../
- BUILD_EXAMPLES: ON
make -j4