How to make CMAKE aware of a package that Ubuntu has built its own source

Asked 2 years ago, Updated 2 years ago, 136 views

Download and build FFMPEG by yourself instead of apt-get on Ubuntu 16.04 A library such as avcodec that can be created as this product is
What should I do if I want to recognize OpenCV's CMAKE the same as when I did apt-get it?

Below are the items I checked.All failed
·Add LD_LIBRARY_PATH to ~/.bashrc
·Copy the folder containing the lib file you created to the folder /etc/ld.so.conf.d/

Thank you for your cooperation

linux ubuntu ffmpeg apt cmake

2022-09-30 17:57

1 Answers

I finally understand.
This was just a small number of PATH settings.

If you build ffmpeg, pkg-config will work, so you can create the file there
When I added it as PKG_CONFIG_PATH again, OpenCV's CMAKE recognized it as a package.
I'm sorry to bother you.


2022-09-30 17:57

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.