Open Zren opened 6 years ago
https://aur.archlinux.org/packages/mpv-build-git
see mpv-build. You can probably edit the files to do the same thing
os/x11.cpp: In member function ‘virtual mp_image OS::VaApiInfo::download(mp_hwdec_ctx, const mp_image, mp_image_pool)’:
os/x11.cpp:642:15: error: ‘struct mp_hwdec_ctx’ has no member named ‘vaapi_ctx’
if (!ctx->vaapi_ctx)
^~~~~
os/x11.cpp: In member function ‘virtual mp_image OS::VdpauInfo::download(mp_hwdec_ctx, const mp_image, mp_image_pool)’:
os/x11.cpp:721:40: warning: unused parameter ‘ctx’ [-Wunused-parameter]
auto VdpauInfo::download(mp_hwdec_ctx ctx, const mp_image mpi,
^~~
os/x11.cpp:721:61: warning: unused parameter ‘mpi’ [-Wunused-parameter]
auto VdpauInfo::download(mp_hwdec_ctx ctx, const mp_image mpi,
^~~
os/x11.cpp:722:41: warning: unused parameter ‘pool’ [-Wunused-parameter]
mp_image_pool pool) -> mp_image
^~~~
/usr/bin/g++ -c -include release/bomi -pipe -I/usr/include/ffmpeg3.2 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/fribidi -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -fvisibility=hidden -I/usr/include/chardet -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/alsa -D_REENTRANT -I/usr/include/samba-4.0 -Wno-non-template-friend -O2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -std=gnu++1y -Wall -W -D_REENTRANT -fPIC -DUSING_PCH -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DQT_NO_CAST_FROM_ASCII -DQT_NO_DEBUG -DQT_QUICK_LIB -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_SQL_LIB -DQT_XML_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -I. -I../mpv -I../mpv/build -Ikiss_fft -isystem /usr/include/qt -isystem /usr/include/qt/QtQuick -isystem /usr/include/qt/QtSvg -isystem /usr/include/qt/QtWidgets -isystem /usr/include/qt/QtX11Extras -isystem /usr/include/qt/QtGui -isystem /usr/include/qt/QtQml -isystem /usr/include/qt/QtNetwork -isystem /usr/include/qt/QtSql -isystem /usr/include/qt/QtXml -isystem /usr/include/qt/QtDBus -isystem /usr/include/qt/QtCore -Irelease -isystem /usr/include/libdrm -I. -I/usr/lib/qt/mkspecs/linux-g++ -o release/player/shortcutmap.o player/shortcutmap.cpp
/usr/bin/g++ -c -include release/bomi -pipe -I/usr/include/ffmpeg3.2 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/fribidi -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -fvisibility=hidden -I/usr/include/chardet -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/alsa -D_REENTRANT -I/usr/include/samba-4.0 -Wno-non-template-friend -O2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -std=gnu++1y -Wall -W -D_REENTRANT -fPIC -DUSING_PCH -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DQT_NO_CAST_FROM_ASCII -DQT_NO_DEBUG -DQT_QUICK_LIB -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_SQL_LIB -DQT_XML_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -I. -I../mpv -I../mpv/build -Ikiss_fft -isystem /usr/include/qt -isystem /usr/include/qt/QtQuick -isystem /usr/include/qt/QtSvg -isystem /usr/include/qt/QtWidgets -isystem /usr/include/qt/QtX11Extras -isystem /usr/include/qt/QtGui -isystem /usr/include/qt/QtQml -isystem /usr/include/qt/QtNetwork -isystem /usr/include/qt/QtSql -isystem /usr/include/qt/QtXml -isystem /usr/include/qt/QtDBus -isystem /usr/include/qt/QtCore -Irelease -isystem /usr/include/libdrm -I. -I/usr/lib/qt/mkspecs/linux-g++ -o release/misc/objectstorage.o misc/objectstorage.cpp
global.cpp: In function ‘QByteArray Global::_Uncompress(const QByteArray&)’:
global.cpp:338:17: warning: this statement may fall through [-Wimplicit-fallthrough=]
ret = Z_DATA_ERROR; // and fall through
^
global.cpp:339:9: note: here
case Z_DATA_ERROR:
^~~~
os/x11.cpp:545:16: warning: ‘VAProfileH264Baseline’ is deprecated [-Wdeprecated-declarations]
^
os/x11.cpp:543:40: note: in definition of macro ‘HA_CODEC’
^~~~~~~~~~~
os/x11.cpp:550:22: note: in expansion of macro ‘VA’
, HA_CODEC(H264, {VA(H264Baseline), VA(H264High), VA(H264Main)})
^
In file included from os/x11.hpp:17:0,
from os/x11.cpp:1:
/usr/include/va/va.h:346:5: note: declared here
VAProfileH264Baseline va_deprecated_enum = 5,
^~~~~
os/x11.cpp: In member function ‘virtual mp_image OS::VaApiInfo::download(mp_hwdec_ctx, const mp_image, mp_image_pool)’:
os/x11.cpp:642:15: error: ‘struct mp_hwdec_ctx’ has no member named ‘vaapi_ctx’
if (!ctx->vaapi_ctx)
^~~~~
os/x11.cpp: In member function ‘virtual mp_image OS::VdpauInfo::download(mp_hwdec_ctx, const mp_image, mp_image_pool)’:
os/x11.cpp:721:40: warning: unused parameter ‘ctx’ [-Wunused-parameter]
auto VdpauInfo::download(mp_hwdec_ctx ctx, const mp_image mpi,
^~~
os/x11.cpp:721:61: warning: unused parameter ‘mpi’ [-Wunused-parameter]
auto VdpauInfo::download(mp_hwdec_ctx ctx, const mp_image mpi,
^~~
os/x11.cpp:722:41: warning: unused parameter ‘pool’ [-Wunused-parameter]
mp_image_pool pool) -> mp_image
^~~~
/usr/bin/g++ -c -include release/bomi -pipe -I/usr/include/ffmpeg3.2 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/fribidi -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -fvisibility=hidden -I/usr/include/chardet -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/alsa -D_REENTRANT -I/usr/include/samba-4.0 -Wno-non-template-friend -O2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -std=gnu++1y -Wall -W -D_REENTRANT -fPIC -DUSING_PCH -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DQT_NO_CAST_FROM_ASCII -DQT_NO_DEBUG -DQT_QUICK_LIB -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_SQL_LIB -DQT_XML_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -I. -I../mpv -I../mpv/build -Ikiss_fft -isystem /usr/include/qt -isystem /usr/include/qt/QtQuick -isystem /usr/include/qt/QtSvg -isystem /usr/include/qt/QtWidgets -isystem /usr/include/qt/QtX11Extras -isystem /usr/include/qt/QtGui -isystem /usr/include/qt/QtQml -isystem /usr/include/qt/QtNetwork -isystem /usr/include/qt/QtSql -isystem /usr/include/qt/QtXml -isystem /usr/include/qt/QtDBus -isystem /usr/include/qt/QtCore -Irelease -isystem /usr/include/libdrm -I. -I/usr/lib/qt/mkspecs/linux-g++ -o release/player/shortcutmap.o player/shortcutmap.cpp
/usr/bin/g++ -c -include release/bomi -pipe -I/usr/include/ffmpeg3.2 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/fribidi -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -fvisibility=hidden -I/usr/include/chardet -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/alsa -D_REENTRANT -I/usr/include/samba-4.0 -Wno-non-template-friend -O2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -std=gnu++1y -Wall -W -D_REENTRANT -fPIC -DUSING_PCH -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DQT_NO_CAST_FROM_ASCII -DQT_NO_DEBUG -DQT_QUICK_LIB -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_SQL_LIB -DQT_XML_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -I. -I../mpv -I../mpv/build -Ikiss_fft -isystem /usr/include/qt -isystem /usr/include/qt/QtQuick -isystem /usr/include/qt/QtSvg -isystem /usr/include/qt/QtWidgets -isystem /usr/include/qt/QtX11Extras -isystem /usr/include/qt/QtGui -isystem /usr/include/qt/QtQml -isystem /usr/include/qt/QtNetwork -isystem /usr/include/qt/QtSql -isystem /usr/include/qt/QtXml -isystem /usr/include/qt/QtDBus -isystem /usr/include/qt/QtCore -Irelease -isystem /usr/include/libdrm -I. -I/usr/lib/qt/mkspecs/linux-g++ -o release/misc/objectstorage.o misc/objectstorage.cpp
global.cpp: In function ‘QByteArray Global::_Uncompress(const QByteArray&)’:
global.cpp:338:17: warning: this statement may fall through [-Wimplicit-fallthrough=]
ret = Z_DATA_ERROR; // and fall through
^
global.cpp:339:9: note: here
case Z_DATA_ERROR:
^~~~
@Zren did you decide to give up this project?
Otherwise I won't be able to build on KDE Neon. Either I find a way to build ffmpeg and statically link it to mpv/bomi, or I continue development in a rolling distro (possibly in a VM), or docker.