Git Product home page Git Product logo

“若需要使用libtorrent, 则需要在source工程上指定宏USE_TORRENT, 并且指定source依赖libtorrent. libtorrent的编译依赖boost” 请教下这句话是什么意思呢? about avplayer HOT 1 CLOSED

jackarain avatar jackarain commented on June 14, 2024
“若需要使用libtorrent, 则需要在source工程上指定宏USE_TORRENT, 并且指定source依赖libtorrent. libtorrent的编译依赖boost” 请教下这句话是什么意思呢?

from avplayer.

Comments (1)

Jackarain avatar Jackarain commented on June 14, 2024

source这个dll工程是用于读取视频文件数据的, 它可以从bt下载读取, 也可以从文件读取. 如果要一边进行bt下载, 一边进行播放, 那么source就需要调用libtorrent来实现bt下载, libtorrent依赖boost.
所以, 你若需要bt下载播放的功能, 需要在source工程里定义宏USE_TORRENT, 这样就会把读取bt数据的代码编译到source.dll中.
如果你不需要, 就可以去掉USE_TORRENT这个宏, 这样就不会调用libtorrent, 也不会把调用libtorrent的代码编译进来, 这时就可以去掉libtorrent项目.

from avplayer.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.