make opencv pgu examples issue

asked 2019-03-12 04:04:37 -0500

ALex150M gravatar image

updated 2019-03-12 04:50:48 -0500

I built OpenCV 3.4 in jetson TX2 with the following options:

time cmake -D CMAKE_BUILD_TYPE=RELEASE \
      -D CMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX} \
      -D WITH_CUDA=ON \
      -D CUDA_ARCH_BIN=${ARCH_BIN} \
      -D CUDA_ARCH_PTX="" \
      -D ENABLE_FAST_MATH=ON \
      -D CUDA_FAST_MATH=ON \
      -D WITH_CUBLAS=ON \
      -D WITH_LIBV4L=ON \
      -D WITH_GSTREAMER=ON \
      -D WITH_GSTREAMER_0_10=OFF \
      -D WITH_QT=ON \
      -D WITH_OPENGL=ON \
      -D OPENCV_EXTRA_MODULES_PATH=/home/nvidia/opencv_contrib/modules \
      -D BUILD_TBB=ON \
      -D BUILD_EXAMPLES=ON \
      -D ENABLE_NEON=ON \
      -D WITH_OPENCL=ON \
      -D WITH_OPENMP=ON \
      -D WITH_FFMPEG=ON \
      -D WITH_TBB=ON \
      -D CUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda-9.0/ \
      ../

in the Samples folder, we find a Cmakelist file that allows to generate a Makefile, and this makefile allows to build the examples cpp but not the examples gpu. I want to build the GPU how can we build

opencv/samples/gpu/video_reader.cpp

thanks for help

edit retag flag offensive close merge delete

Comments

what about the CmakeLists.txt in the gpu folder ? did you try that ?

berak gravatar imageberak ( 2019-03-12 04:54:10 -0500 )edit