jetsonhacks / buildOpenCVTX2

Build and install OpenCV for the NVIDIA Jetson TX2
MIT License
276 stars 153 forks source link

missing opencv.pc #23

Open jath03 opened 5 years ago

jath03 commented 5 years ago

After I build opencv the files are all there, but there is no opencv.pc file so I can't use pkg-config to find the libraries. I tried building it using the buildOpenCV.sh and installing the package created in buildAndPackageOpenCV.sh, but in both there is no opencv.pc file. I've look everywhere on my jetson, but the file isn't there.

jetsonhacks commented 5 years ago

Did you install OpenCV using the .deb file that buildAndPackageOpenCV.sh created?

jath03 commented 5 years ago

First I installed it using buildOpenCV.sh, then I rebuilt it with buildAndPackageOpenCV.sh and installed all the .deb files

jetsonhacks commented 5 years ago

Did you install the -dev deb file?

jath03 commented 5 years ago

yes

jath03 commented 5 years ago

Everything looked like it installed correctly, but the opencv.pc file isn't there

jath03 commented 5 years ago

nvm I found it. Not sure how I didn't see it earlier

jetsonhacks commented 5 years ago

good to hear

jath03 commented 5 years ago

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

jath03 commented 5 years ago

sudo find / -iname "opencv.pc" doesn't find anything

jath03 commented 5 years ago

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       
     ../
jath03 commented 5 years ago

I changed the opencv version to 4.01

jath03 commented 5 years ago

*4.0.1

Strexas commented 10 months ago

You are missing -D OPENCV_GENERATE_PKGCONFIG=ON