V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
auto8888
V2EX  ›  C++

CMake 链接库时,如何链接指定版本的库?

  •  
  •   auto8888 · Jan 8, 2021 · 2390 views
    This topic created in 1943 days ago, the information mentioned may be changed or developed.

    比如 ffmpeg 在 /usr/lib/里面既有 libavformat.so.57 又有 libavformat.so.58 。

    2 replies    2021-01-08 12:05:30 +08:00
    juzipeek
        2
    juzipeek  
       Jan 8, 2021
    可以使用 find_package 指令, 上一条回复是链接地址
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2816 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 07:28 · PVG 15:28 · LAX 00:28 · JFK 03:28
    ♥ Do have faith in what you're doing.