auto8888
V2EX  ›  C++

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

  •  
  •   auto8888 · Jan 8, 2021 · 2444 views
    This topic created in 1962 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   ·   3036 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 14:44 · PVG 22:44 · LAX 07:44 · JFK 10:44
    ♥ Do have faith in what you're doing.