Comments (10)
I don't think it makes sense to build libmpv with mpv-build, at least not yet...
from mpv-build.
wm4: because its not yet considered stable enough?
from mpv-build.
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.
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.
@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.
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.
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.
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.
Thanks for the help! Good work by the way!
from mpv-build.
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)
- Does it work on Fedora?
- How to build the git master version of MPV with libplacebo-git? HOT 1
- Still getting libplacebo not found using pkg-config error HOT 1
- waflib error before compiling on mingw x64 using waf
- Can't find the executable to be copied in /usr/local/bin HOT 7
- Can't build with meson HOT 21
- libmpv fails linking with meson HOT 7
- git master build with meson fails HOT 6
- Confused about dependencies in build instructions. HOT 4
- Can't link libmpv (deb package) on Debian 11 HOT 3
- Can't build libmpv with '-Wl,-Bsymbolic' option on Mac HOT 2
- compiled libmpv.2.dylib can't use HOT 1
- No binary after successful(?) rebuild on Fedora HOT 6
- (Ubuntu) meson: error: unrecognized arguments: --enable-vapoursynth --enable-libmpv-shared HOT 5
- Can't build on Ubuntu 20.04 with latest libplacebo HOT 1
- Feature request: Gracefully handle uncommited changes when updating
- Why Debian packaging scripts do not currently support libmpv ? CentOS Is it feasible?
- mpv-build: autoreconf: error: aclocal failed with exit status: 1 HOT 1
- error: implicit declaration of function 'mp_csp_to_avcol_spc' HOT 5
- Trying to build an old fork on a new server and I'm getting "error: implicit declaration of function ‘avfilter_pad_count’" HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mpv-build.