Open jath03 opened 5 years ago
Did you install OpenCV using the .deb file that buildAndPackageOpenCV.sh created?
First I installed it using buildOpenCV.sh
, then I rebuilt it with buildAndPackageOpenCV.sh
and installed all the .deb
files
Did you install the -dev deb file?
yes
Everything looked like it installed correctly, but the opencv.pc
file isn't there
nvm I found it. Not sure how I didn't see it earlier
good to hear
sorry, I just ran apt-file search opencv.pc
which found the file that was supposed to be there, but it's not actually there
sudo find / -iname "opencv.pc"
doesn't find anything
BTW I did change a few lines of the cmake command in the build files and the opencv version.
cmake -j 4 -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 CPACK_BINARY_DEB=ON \
-D OPENCV_EXTRA_MODULES_PATH=/home/nvidia/Downloads/opencv_contrib-4.0.1/modules
../
I changed the opencv version to 4.01
*4.0.1
You are missing -D OPENCV_GENERATE_PKGCONFIG=ON
After I build opencv the files are all there, but there is no
opencv.pc
file so I can't usepkg-config
to find the libraries. I tried building it using thebuildOpenCV.sh
and installing the package created inbuildAndPackageOpenCV.sh
, but in both there is noopencv.pc
file. I've look everywhere on my jetson, but the file isn't there.