Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing opencv.pc #23

Open
jath03 opened this issue Jan 11, 2019 · 13 comments
Open

missing opencv.pc #23

jath03 opened this issue Jan 11, 2019 · 13 comments

Comments

@jath03
Copy link

jath03 commented Jan 11, 2019

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
Copy link
Owner

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

@jath03
Copy link
Author

jath03 commented Jan 11, 2019

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

@jetsonhacks
Copy link
Owner

Did you install the -dev deb file?

@jath03
Copy link
Author

jath03 commented Jan 11, 2019

yes

@jath03
Copy link
Author

jath03 commented Jan 11, 2019

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

@jath03
Copy link
Author

jath03 commented Jan 12, 2019

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

@jath03 jath03 closed this as completed Jan 12, 2019
@jetsonhacks
Copy link
Owner

good to hear

@jath03 jath03 reopened this Jan 12, 2019
@jath03
Copy link
Author

jath03 commented Jan 12, 2019

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
Copy link
Author

jath03 commented Jan 12, 2019

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

@jath03
Copy link
Author

jath03 commented Jan 12, 2019

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
Copy link
Author

jath03 commented Jan 12, 2019

I changed the opencv version to 4.01

@jath03
Copy link
Author

jath03 commented Jan 12, 2019

*4.0.1

@Strexas
Copy link

Strexas commented Sep 21, 2023

You are missing -D OPENCV_GENERATE_PKGCONFIG=ON

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants