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?
I changed it to support old libav. Please try to replace mediaenc_ffmpeg.cpp and mediaenc_ffmpeg.h with
http://dvdstyler.cvs.sourceforge.net/viewvc/dvdstyler/DVDStyler/src/mediaenc_ffmpeg.cpp
http://dvdstyler.cvs.sourceforge.net/viewvc/dvdstyler/DVDStyler/src/mediaenc_ffmpeg.h
Last edit: NtAlex 2015-09-26
Thanks for the fast respone, this fix works! At least, until the next error occurs:
Version of libwxsvg-dev is 2:1.2~dfsg0-1ubuntu1 I guess, it is also too old?
Last edit: Sebastian 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
fixed in DVDStyler 2.9.4