Home
Sign Up
Sign In
V2EX
›
C++
CMake 链接库时,如何链接指定版本的库?
auto8888
·
Jan 8, 2021
· 2859 views
This topic created in 2127 days ago, the information mentioned may be changed or developed.
比如 ffmpeg 在 /usr/lib/里面既有 libavformat.so.57 又有 libavformat.so.58 。
cmake
FFmpeg
lib
usr
2 replies
•
2021-01-08 12:05:30 +08:00
juzipeek
Jan 8, 2021
1
https://cmake.org/cmake/help/latest/command/find_package.html
juzipeek
Jan 8, 2021
2
可以使用 find_package 指令, 上一条回复是链接地址
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Privacy
·
Solana
·
2004 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 23ms ·
UTC 16:27
·
PVG 00:27
·
LAX 08:27
·
JFK 11:27
♥ Do have faith in what you're doing.
❯