GithubHelp home page GithubHelp logo

Comments (10)

 avatar commented on May 27, 2024

I don't think it makes sense to build libmpv with mpv-build, at least not yet...

from mpv-build.

kevmitch avatar kevmitch commented on May 27, 2024

wm4: because its not yet considered stable enough?

from mpv-build.

 avatar commented on May 27, 2024

And because mpv-build is still intended to build the command line player.

As long as there's nothing actually using libmpv, there's no use building it either. It's only interesting for those who want to try the API, and those are developers and can build it manually anyway.

I'm not sure if always compiling everything with -fPIC has any downsides (maybe not, though it might make code slightly slower), but for now I'd rather not touch it.

We'll see where this goes...

from mpv-build.

dr-vsn avatar dr-vsn commented on May 27, 2024

The company I work for is evaluating mpv as a mplayer2 replacement. One of the larger appeals is using libmpv instead of interfacing with mplayer2 via the command line and hooking that up to Qt, we could potentially just use libmpv. Most people here use Ubuntu for their dev boxes, so this does pose an issue for development with libmpv. I ran into the same issue mentioned here just earlier today. We do use Gentoo for our production machines but this should not need to be an issue.

from mpv-build.

dr-vsn avatar dr-vsn commented on May 27, 2024

@sl1pkn07: Would you be willing to post a diff of your changes to the configure scripts to get this to build a shared library properly?

from mpv-build.

 avatar commented on May 27, 2024

I guess now that the mpv release includes libmpv, we could probably think about this.

One problem is that I'm not sure whether -fPIC causes (even if minor) performance reduction. Or in other words, whether it's always safe to add -fPIC. Considering libass and ffmpeg are usually built as shared libs, this is probably no problem at all, though.

from mpv-build.

dr-vsn avatar dr-vsn commented on May 27, 2024

One problem is that I'm not sure whether -fPIC causes (even if minor) performance reduction. Or in other words, whether it's always safe to add -fPIC. Considering libass and ffmpeg are usually built as shared libs, this is probably no problem at all, though.

Perhaps you could just make it an option that can be set for the build in total, and have it echo a warning saying the performance characteristics are unknown. Just a thought.

from mpv-build.

 avatar commented on May 27, 2024

OK it should work now. PIC is enabled if building libmpv is enabled.

I also added instructions how to enable libmpv to the README.

from mpv-build.

dr-vsn avatar dr-vsn commented on May 27, 2024

Thanks for the help! Good work by the way!

from mpv-build.

sl1pkn07 avatar sl1pkn07 commented on May 27, 2024

too late, but

http://pkgbuild.com/git/aur-mirror.git/plain/mpv-build-git/fribidi_configure_like_ffmpeg_configure.patch
http://pkgbuild.com/git/aur-mirror.git/tree/mpv-build-git/libass_configure_like_ffmpeg_configure.patch

then
echo "--with-pic" > libass_options
echo "--with-pic" > fribidi_options
echo"--some-foo --enable-pic" > ffmpeg_options

greetings

from mpv-build.

Related Issues (20)

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.