auto8888
V2EX  ›  C++

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

  •  
  •   auto8888 · Jan 8, 2021 · 2467 views
    This topic created in 1972 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   ·   3731 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 47ms · UTC 10:29 · PVG 18:29 · LAX 03:29 · JFK 06:29
    ♥ Do have faith in what you're doing.