Skip to content
This repository was archived by the owner on Jan 21, 2021. It is now read-only.
This repository was archived by the owner on Jan 21, 2021. It is now read-only.

cmplayer fails to build: recipe for target 'release/ffmpegfilters.o' failed #62

@Eregus

Description

@Eregus

I'm using gentoo, have all dependencies. I have compiled ffmpeg with following flags:

USE="X alsa bzip2 encode hardcoded-tables iconv mmx mp3 network threads truetype vorbis zlib -3dnow -3dnowext -aac -aacplus (-altivec) -amr -avx -bindist -bluray -cdio (-celt) -cpudetection -debug -doc -examples -faac -fdk -flite -fontconfig -frei0r -gnutls -gsm -iec61883 -ieee1394 -jack -jpeg2k -libass -libcaca -libsoxr -libv4l -mmxext -modplug (-neon) -openal -openssl -opus -oss -pic -pulseaudio -rtmp -schroedinger -sdl -speex -ssse3 -static-libs {-test} -theora -twolame -v4l -vaapi -vdpau (-vis) -vpx -x264 -xvid" FFTOOLS="aviocat cws2fws ffescape ffeval fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart trasher"

Here's full build log:

cp -r src/cmplayer/skins build
cd src/cmplayer && /usr/lib/qt5/bin/qmake DEFINES+=CMPLAYER_RELEASE cmplayer.pro && make -j3 release
make[1]: Entering directory '/home/eregus/src/cmplayer-0.8.12/src/cmplayer'
make -f Makefile.Release
make[2]: Entering directory '/home/eregus/src/cmplayer-0.8.12/src/cmplayer'
g++ -c -include release/cmplayer -pipe -I/usr/include/harfbuzz -I/usr/include/fribidi -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/chardet -march=native -O2 -pipe -fvisibility=hidden -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/alsa -I/usr/include/quvi-0.9 -O2 -std=c++0x -Wall -W -D_REENTRANT -fPIE -DCMPLAYER_RELEASE -DUSING_PCH -DHAVE_JACK=0 -DHAVE_PORTAUDIO=0 -DHAVE_PULSEAUDIO=0 -DHAVE_QUVI4=0 -DHAVE_CDDA=0 -DCMPLAYER_SKINS_PATH=\"/usr/local/share/cmplayer/skins\" -DCMPLAYER_IMPORTS_PATH=\"/usr/local/share/cmplayer/imports\" -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DQT_NO_DEBUG -DQT_QUICK_LIB -DQT_QML_LIB -DQT_X11EXTRAS_LIB -DQT_WIDGETS_LIB -DQT_DBUS_LIB -DQT_XML_LIB -DQT_SQL_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib64/qt5/mkspecs/linux-g++ -I. -I../mpv -I../mpv/build -I/usr/include/qt5 -I/usr/include/qt5/QtQuick -I/usr/include/qt5/QtQml -I/usr/include/qt5/QtX11Extras -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtDBus -I/usr/include/qt5/QtXml -I/usr/include/qt5/QtSql -I/usr/include/qt5/QtNetwork -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -Irelease -I. -o release/ffmpegfilters.o ffmpegfilters.cpp
g++ -c -include release/cmplayer -pipe -I/usr/include/harfbuzz -I/usr/include/fribidi -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/chardet -march=native -O2 -pipe -fvisibility=hidden -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/alsa -I/usr/include/quvi-0.9 -O2 -std=c++0x -Wall -W -D_REENTRANT -fPIE -DCMPLAYER_RELEASE -DUSING_PCH -DHAVE_JACK=0 -DHAVE_PORTAUDIO=0 -DHAVE_PULSEAUDIO=0 -DHAVE_QUVI4=0 -DHAVE_CDDA=0 -DCMPLAYER_SKINS_PATH=\"/usr/local/share/cmplayer/skins\" -DCMPLAYER_IMPORTS_PATH=\"/usr/local/share/cmplayer/imports\" -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DQT_NO_DEBUG -DQT_QUICK_LIB -DQT_QML_LIB -DQT_X11EXTRAS_LIB -DQT_WIDGETS_LIB -DQT_DBUS_LIB -DQT_XML_LIB -DQT_SQL_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib64/qt5/mkspecs/linux-g++ -I. -I../mpv -I../mpv/build -I/usr/include/qt5 -I/usr/include/qt5/QtQuick -I/usr/include/qt5/QtQml -I/usr/include/qt5/QtX11Extras -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtDBus -I/usr/include/qt5/QtXml -I/usr/include/qt5/QtSql -I/usr/include/qt5/QtNetwork -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -Irelease -I. -o release/vaapipostprocessor.o vaapipostprocessor.cpp
g++ -c -include release/cmplayer -pipe -I/usr/include/harfbuzz -I/usr/include/fribidi -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/chardet -march=native -O2 -pipe -fvisibility=hidden -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/alsa -I/usr/include/quvi-0.9 -O2 -std=c++0x -Wall -W -D_REENTRANT -fPIE -DCMPLAYER_RELEASE -DUSING_PCH -DHAVE_JACK=0 -DHAVE_PORTAUDIO=0 -DHAVE_PULSEAUDIO=0 -DHAVE_QUVI4=0 -DHAVE_CDDA=0 -DCMPLAYER_SKINS_PATH=\"/usr/local/share/cmplayer/skins\" -DCMPLAYER_IMPORTS_PATH=\"/usr/local/share/cmplayer/imports\" -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DQT_NO_DEBUG -DQT_QUICK_LIB -DQT_QML_LIB -DQT_X11EXTRAS_LIB -DQT_WIDGETS_LIB -DQT_DBUS_LIB -DQT_XML_LIB -DQT_SQL_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib64/qt5/mkspecs/linux-g++ -I. -I../mpv -I../mpv/build -I/usr/include/qt5 -I/usr/include/qt5/QtQuick -I/usr/include/qt5/QtQml -I/usr/include/qt5/QtX11Extras -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtDBus -I/usr/include/qt5/QtXml -I/usr/include/qt5/QtSql -I/usr/include/qt5/QtNetwork -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -Irelease -I. -o release/geometryitem.o geometryitem.cpp
ffmpegfilters.cpp: In member function ‘bool FFmpegFilterGraph::push(mp_image*)’:
ffmpegfilters.cpp:21:30: error: ‘av_frame_alloc’ was not declared in this scope
  auto frame = av_frame_alloc();
                              ^
ffmpegfilters.cpp:25:12: error: ‘AV_BUFFER_FLAG_READONLY’ was not declared in this scope
   flags |= AV_BUFFER_FLAG_READONLY;
            ^
ffmpegfilters.cpp:30:82: error: ‘av_buffer_create’ was not declared in this scope
   frame->buf[n] = av_buffer_create(in->planes[n], size, freeMpImage, plane, flags);
                                                                                  ^
ffmpegfilters.cpp:34:54: error: ‘av_buffersrc_add_frame’ was not declared in this scope
  const bool ok = (av_buffersrc_add_frame(m_src, frame) >= 0);
                                                      ^
ffmpegfilters.cpp:35:22: error: ‘av_frame_free’ was not declared in this scope
  av_frame_free(&frame);
                      ^
ffmpegfilters.cpp: In member function ‘mp_image* FFmpegFilterGraph::pull()’:
ffmpegfilters.cpp:40:30: error: ‘av_frame_alloc’ was not declared in this scope
  auto frame = av_frame_alloc();
                              ^
ffmpegfilters.cpp:41:43: error: ‘av_buffersink_get_frame’ was not declared in this scope
  if (av_buffersink_get_frame(m_sink, frame) < 0) {
                                           ^
ffmpegfilters.cpp:42:23: error: ‘av_frame_free’ was not declared in this scope
   av_frame_free(&frame);
                       ^
ffmpegfilters.cpp: In lambda function:
ffmpegfilters.cpp:45:70: error: ‘av_frame_free’ was not declared in this scope
  auto freeAvFrame = [](void *frame) { av_frame_free((AVFrame**)&frame); };
                                                                      ^
ffmpegfilters.cpp: In member function ‘bool FFmpegFilterGraph::linkGraph(AVFilterInOut*&, AVFilterInOut*&)’:
ffmpegfilters.cpp:81:91: error: ‘avfilter_graph_parse_ptr’ was not declared in this scope
  if (avfilter_graph_parse_ptr(m_graph, m_option.toLatin1().constData(), &in, &out, nullptr) < 0)
                                                                                           ^
ffmpegfilters.cpp: In member function ‘bool FFmpegFilterGraph::push(mp_image*)’:
ffmpegfilters.cpp:37:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
ffmpegfilters.cpp: In member function ‘mp_image* FFmpegFilterGraph::pull()’:
ffmpegfilters.cpp:49:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
Makefile.Release:69453: recipe for target 'release/ffmpegfilters.o' failed
make[2]: *** [release/ffmpegfilters.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/home/eregus/src/cmplayer-0.8.12/src/cmplayer'
Makefile:34: recipe for target 'release' failed
make[1]: *** [release] Error 2
make[1]: Leaving directory '/home/eregus/src/cmplayer-0.8.12/src/cmplayer'
Makefile:33: recipe for target 'build/build/cmplayer/cmplayer' failed
make: *** [build/build/cmplayer/cmplayer] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions