Quantcast
Channel: Failed building minitube with compiled libmpv v0.29.0 - Ask Ubuntu
Viewing all articles
Browse latest Browse all 3

Failed building minitube with compiled libmpv v0.29.0

$
0
0

According to the author of minitube the latest version of minitube requires libmpv => 0.29.0 that is not delivered by repositories or via ppa. The one that ubuntu 18.04LTS deliver is the libmpv 0.27.0 one.

So I thought:

If I build the libmpv my myself I could be able to build the latest version of minitube!!!!

So I installed the required for building the minitube except libmpv-dev:

sudo apt install build-essential qt5-default qttools5-dev-tools qt5-qmake qtdeclarative5-dev libqt5sql5-sqlite libqt5x11extras5-dev

And the requirements for libmpv:

sudo apt-get install autoreconf lilfreetype-dev libfribidi-dev libfontconfig-dev yasm

And I cloned the mpv-build github repo. Afterwards I geve the following sequence of commands

cd mpv-build
echo --enable-libmpv-shared > mpv_options
./use-mpv-custom v0.29.0
./update
./rebuild -j4
sudo ./install

Afterwards I tried to build the minitube after cloning the minitube github repo and giving the following sequence of commands:

cd mintube
qmake "DEFINES += APP_GOOGLE_API_KEY=YourAPIKeyHere"
make

But I get the following error:

build/obj/mpvwidget.o: In function `MpvWidget::~MpvWidget()':
mpvwidget.cpp:(.text+0x19b): undefined reference to `mpv_render_context_free'
build/obj/mpvwidget.o: In function `non-virtual thunk to MpvWidget::~MpvWidget()':
mpvwidget.cpp:(.text+0x1f7): undefined reference to `mpv_render_context_free'
build/obj/mpvwidget.o: In function `MpvWidget::initializeGL()':
mpvwidget.cpp:(.text+0x399): undefined reference to `mpv_render_context_create'
mpvwidget.cpp:(.text+0x3b9): undefined reference to `mpv_render_context_set_update_callback'
build/obj/mpvwidget.o: In function `MpvWidget::paintGL()':
mpvwidget.cpp:(.text+0x78c): undefined reference to `mpv_render_context_render'
build/obj/mpvwidget.o: In function `MpvWidget::onFrameSwapped()':
mpvwidget.cpp:(.text+0xb5): undefined reference to `mpv_render_context_report_swap'
build/obj/mpvwidget.o: In function `MpvWidget::maybeUpdate()':
mpvwidget.cpp:(.text+0x807): undefined reference to `mpv_render_context_report_swap'
collect2: error: ld returned 1 exit status
Makefile:630: recipe for target 'build/target/minitube' failed

Do you know how to successfully build it in ubuntu 18.04LTS?


Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles





Latest Images