Menu

#607 ‘av_frame_get_buffer’ was not declared

common
closed
nobody
5
2015-10-04
2015-09-24
Sebastian
No

I get this error when trying to compile on Ubuntu 14.04:

g++ -DPACKAGE_NAME=\"DVDStyler\" -DPACKAGE_TARNAME=\"dvdstyler\" -DPACKAGE_VERSION=\"2.9.3\" -DPACKAGE_STRING=\"DVDStyler\ 2.9.3\" -DPACKAGE_BUGREPORT=\"http://www.dvdstyler.org\" -DPACKAGE_URL=\"\" -DPACKAGE=\"dvdstyler\" -DVERSION=\"2.9.3\" -I. -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -g -O2 -DNDEBUG -fno-strict-aliasing -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -I/usr/include/freetype2 -DDATADIR=\"/usr/local/share/dvdstyler\" -I.. -g -O2 -DNDEBUG -fno-strict-aliasing -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -I/usr/include/freetype2 -DDATADIR=\"/usr/local/share/dvdstyler\" -MT mediaenc_ffmpeg.o -MD -MP -MF .deps/mediaenc_ffmpeg.Tpo -c -o mediaenc_ffmpeg.o mediaenc_ffmpeg.cpp
mediaenc_ffmpeg.cpp: In function ‘AVFrame* allocPicture(AVPixelFormat, int, int)’:
mediaenc_ffmpeg.cpp:289:35: error: ‘av_frame_get_buffer’ was not declared in this scope
if (av_frame_get_buffer(frame, 32) < 0) {
^
make[2]: *** [mediaenc_ffmpeg.o] Error 1

The configure script has found all libav libraries including headers and did not report errors. Is my local libav too old?

Discussion

  • Sebastian

    Sebastian - 2015-09-26

    Thanks for the fast respone, this fix works! At least, until the next error occurs:

    g++ -DPACKAGE_NAME=\"DVDStyler\" -DPACKAGE_TARNAME=\"dvdstyler\" -DPACKAGE_VERSION=\"2.9.3\" -DPACKAGE_STRING=\"DVDStyler\ 2.9.3\" -DPACKAGE_BUGREPORT=\"http://www.dvdstyler.org\" -DPACKAGE_URL=\"\" -DPACKAGE=\"dvdstyler\" -DVERSION=\"2.9.3\" -I. -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -g -O2 -DNDEBUG -fno-strict-aliasing -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -I/usr/include/freetype2 -DDATADIR=\"/usr/local/share/dvdstyler\" -I.. -g -O2 -DNDEBUG -fno-strict-aliasing -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -I/usr/include/freetype2 -DDATADIR=\"/usr/local/share/dvdstyler\" -MT ProcessMenuTransitions.o -MD -MP -MF .deps/ProcessMenuTransitions.Tpo -c -o ProcessMenuTransitions.o ProcessMenuTransitions.cpp
    ProcessMenuTransitions.cpp: In member function ‘bool ProcessMenuTransitions::GenerateMenuTransitionVideo(Menu, MenuObject, const wxString&, double, const wxString&)’:
    ProcessMenuTransitions.cpp:189:54: error: ‘wxSVGAnimatedType’ was not declared in this scope
    animElem->SetFrom(wxSVGAnimatedType(wxSVGLength(1)));
    ^
    ProcessMenuTransitions.cpp:193:14: error: ‘class wxSVGAnimateElement’ has no member named ‘SetFill’
    animElem->SetFill(wxSVG_ANIMATION_FILL_FREEZE);
    ^
    ProcessMenuTransitions.cpp:193:22: error: ‘wxSVG_ANIMATION_FILL_FREEZE’ was not declared in this scope
    animElem->SetFill(wxSVG_ANIMATION_FILL_FREEZE);
    ^
    ProcessMenuTransitions.cpp:202:13: error: ‘class wxSVGAnimateTransformElement’ has no member named ‘SetFill’
    animElem->SetFill(wxSVG_ANIMATION_FILL_FREEZE);
    ^
    ProcessMenuTransitions.cpp:202:21: error: ‘wxSVG_ANIMATION_FILL_FREEZE’ was not declared in this scope
    animElem->SetFill(wxSVG_ANIMATION_FILL_FREEZE);
    ^
    ProcessMenuTransitions.cpp:203:13: error: ‘class wxSVGAnimateTransformElement’ has no member named ‘SetAdditive’
    animElem->SetAdditive(wxSVG_ANIMATION_ADDITIVE_SUM);
    ^
    ProcessMenuTransitions.cpp:203:25: error: ‘wxSVG_ANIMATION_ADDITIVE_SUM’ was not declared in this scope
    animElem->SetAdditive(wxSVG_ANIMATION_ADDITIVE_SUM);
    ^
    ProcessMenuTransitions.cpp:206:22: error: ‘wxSVG_ANIMATETRANSFORM_ROTATE’ was not declared in this scope
    animElem->SetType(wxSVG_ANIMATETRANSFORM_ROTATE);
    ^
    ProcessMenuTransitions.cpp:207:4: error: ‘wxSVGLengthList’ was not declared in this scope
    wxSVGLengthList list;
    ^
    ProcessMenuTransitions.cpp:207:20: error: expected ‘;’ before ‘list’
    wxSVGLengthList list;
    ^
    ProcessMenuTransitions.cpp:208:4: error: ‘list’ was not declared in this scope
    list.Add(wxSVGLength(0));
    ^
    ProcessMenuTransitions.cpp:211:44: error: ‘wxSVGAnimatedType’ was not declared in this scope
    animElem->SetFrom(wxSVGAnimatedType(list));
    ^
    ProcessMenuTransitions.cpp:217:22: error: ‘wxSVG_ANIMATETRANSFORM_TRANSLATE’ was not declared in this scope
    animElem->SetType(wxSVG_ANIMATETRANSFORM_TRANSLATE);
    ^
    ProcessMenuTransitions.cpp:218:4: error: ‘wxSVGLengthList’ was not declared in this scope
    wxSVGLengthList from;
    ^
    ProcessMenuTransitions.cpp:218:20: error: expected ‘;’ before ‘from’
    wxSVGLengthList from;
    ^
    ProcessMenuTransitions.cpp:219:4: error: ‘from’ was not declared in this scope
    from.Add(wxSVGLength(0));
    ^
    ProcessMenuTransitions.cpp:221:44: error: ‘wxSVGAnimatedType’ was not declared in this scope
    animElem->SetFrom(wxSVGAnimatedType(from));
    ^
    ProcessMenuTransitions.cpp:222:20: error: expected ‘;’ before ‘to’
    wxSVGLengthList to;
    ^
    ProcessMenuTransitions.cpp:223:4: error: ‘to’ was not declared in this scope
    to.Add(wxSVGLength(-3(objBbox.GetX() + 0.05objBbox.GetWidth())));
    ^
    ProcessMenuTransitions.cpp:229:22: error: ‘wxSVG_ANIMATETRANSFORM_SCALE’ was not declared in this scope
    animElem->SetType(wxSVG_ANIMATETRANSFORM_SCALE);
    ^
    ProcessMenuTransitions.cpp:230:54: error: ‘wxSVGAnimatedType’ was not declared in this scope
    animElem->SetFrom(wxSVGAnimatedType(wxSVGLength(1)));
    ^
    make[2]: *** [ProcessMenuTransitions.o] Error 1
    make[2]: Leaving directory /home/huabo/Downloads/DVDStyler-2.9.3/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory/home/huabo/Downloads/DVDStyler-2.9.3/src'
    make: *** [all-recursive] Error 1

    Version of libwxsvg-dev is 2:1.2~dfsg0-1ubuntu1 I guess, it is also too old?

     

    Last edit: Sebastian 2015-09-26
  • NtAlex

    NtAlex - 2015-09-26

    yes, you need to install the last version of wxSVG.
    I will change the requirements in next version of DVDStyler.

     

    Last edit: NtAlex 2015-09-26
  • NtAlex

    NtAlex - 2015-10-04

    fixed in DVDStyler 2.9.4

     
  • NtAlex

    NtAlex - 2015-10-04
    • status: open --> closed
     

Log in to post a comment.

Auth0 Logo