-
Notifications
You must be signed in to change notification settings - Fork 3
Closed
Description
I am missing FFMPEG libraries under OSX. Actually, I don't even have ffmpeg installed. I guess I would need to recompile it anyway. How should I do this (which version of ffmpeg? which compilation flags? which extra libraries?)
g++ -c -pipe -DDEBUG_LEVEL=2 -DSINGLE_THREADED_PLAYBACK -I../../../lib/agg23/include -g -gdwarf-2 -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -Wall -W -fPIC -DQT_QT3SUPPORT_LIB -DQT3_SUPPORT -DQT_XML_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/local/Qt4.8/mkspecs/macx-g++ -I. -I/Library/Frameworks/QtCore.framework/Versions/4/Headers -I/usr/include/QtCore -I/Library/Frameworks/QtGui.framework/Versions/4/Headers -I/usr/include/QtGui -I/Library/Frameworks/QtOpenGL.framework/Versions/4/Headers -I/usr/include/QtOpenGL -I/Library/Frameworks/QtXml.framework/Versions/4/Headers -I/usr/include/QtXml -I/Library/Frameworks/Qt3Support.framework/Versions/4/Headers -I/usr/include/Qt3Support -I/usr/include -I../contrib/frei0r -I../../core -I../../core/types -I/opt/local/include -I/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers -I/System/Library/Frameworks/AGL.framework/Headers -I. -F/Library/Frameworks -o debug/Gear_VideoSource.o Gear_VideoSource.cpp
In file included from Gear_VideoSource.cpp:23:
Gear_VideoSource.h:32:32: error: libavcodec/avcodec.h: No such file or directory
Gear_VideoSource.h:33:34: error: libavformat/avformat.h: No such file or directory
Gear_VideoSource.h:34:33: error: libswscale/swscale.h: No such file or directory
In file included from Gear_VideoSource.cpp:23:
Gear_VideoSource.h:78: error: ISO C++ forbids declaration of ‘AVFormatContext’ with no type
Gear_VideoSource.h:78: error: expected ‘;’ before ‘_’ token
Gear_VideoSource.h:79: error: ISO C++ forbids declaration of ‘AVCodecContext’ with no type
Gear_VideoSource.h:79: error: expected ‘;’ before ‘_’ token
Gear_VideoSource.h:80: error: ISO C++ forbids declaration of ‘AVCodec’ with no type
Gear_VideoSource.h:80: error: expected ‘;’ before ‘_’ token
Gear_VideoSource.h:81: error: ‘AVPacket’ does not name a type
Gear_VideoSource.h:82: error: ISO C++ forbids declaration of ‘AVFrame’ with no type
Gear_VideoSource.h:82: error: expected ‘;’ before ‘_’ token
Gear_VideoSource.h:83: error: ISO C++ forbids declaration of ‘AVFrame’ with no type
Gear_VideoSource.h:83: error: expected ‘;’ before ‘_’ token
Gear_VideoSource.cpp: In constructor ‘Gear_VideoSource::Gear_VideoSource(Schema_, std::string)’:
Gear_VideoSource.cpp:47: error: class ‘Gear_VideoSource’ does not have any field named ‘_formatContext’
Gear_VideoSource.cpp:48: error: class ‘Gear_VideoSource’ does not have any field named ‘_codecContext’
Gear_VideoSource.cpp:49: error: class ‘Gear_VideoSource’ does not have any field named ‘_codec’
Gear_VideoSource.cpp:50: error: class ‘Gear_VideoSource’ does not have any field named ‘_frame’
Gear_VideoSource.cpp:51: error: class ‘Gear_VideoSource’ does not have any field named ‘_frameRGBA’
Gear_VideoSource.cpp:71: error: ‘av_register_all’ was not declared in this scope
Gear_VideoSource.cpp: In member function ‘void Gear_VideoSource::freeResources()’:
Gear_VideoSource.cpp:86: error: ‘_frameRGBA’ was not declared in this scope
Gear_VideoSource.cpp:87: error: ‘av_free’ was not declared in this scope
Gear_VideoSource.cpp:89: error: ‘_frame’ was not declared in this scope
Gear_VideoSource.cpp:90: error: ‘av_free’ was not declared in this scope
Gear_VideoSource.cpp:92: error: ‘_codecContext’ was not declared in this scope
Gear_VideoSource.cpp:93: error: ‘avcodec_close’ was not declared in this scope
Gear_VideoSource.cpp:95: error: ‘_formatContext’ was not declared in this scope
Gear_VideoSource.cpp:96: error: ‘avformat_close_input’ was not declared in this scope
Gear_VideoSource.cpp: In member function ‘bool Gear_VideoSource::loadMovie(std::string)’:
Gear_VideoSource.cpp:110: error: ‘_formatContext’ was not declared in this scope
Gear_VideoSource.cpp:110: error: ‘avformat_open_input’ was not declared in this scope
Gear_VideoSource.cpp:116: error: ‘_formatContext’ was not declared in this scope
Gear_VideoSource.cpp:116: error: ‘avformat_find_stream_info’ was not declared in this scope
Gear_VideoSource.cpp:122: error: ‘_formatContext’ was not declared in this scope
Gear_VideoSource.cpp:122: error: ‘av_dump_format’ was not declared in this scope
Gear_VideoSource.cpp:126: error: ‘AVMEDIA_TYPE_VIDEO’ was not declared in this scope
Gear_VideoSource.cpp:138: error: ‘_codecContext’ was not declared in this scope
Gear_VideoSource.cpp:139: error: ‘_codec’ was not declared in this scope
Gear_VideoSource.cpp:139: error: ‘avcodec_find_decoder’ was not declared in this scope
Gear_VideoSource.cpp:147: error: ‘avcodec_open2’ was not declared in this scope
Gear_VideoSource.cpp:159: error: ‘_frame’ was not declared in this scope
Gear_VideoSource.cpp:159: error: ‘avcodec_alloc_frame’ was not declared in this scope
Gear_VideoSource.cpp:167: error: ‘_frameRGBA’ was not declared in this scope
Gear_VideoSource.cpp:175: error: ‘PIX_FMT_RGB24’ was not declared in this scope
Gear_VideoSource.cpp:175: error: ‘avpicture_get_size’ was not declared in this scope
Gear_VideoSource.cpp:180: error: ‘sws_freeContext’ was not declared in this scope
Gear_VideoSource.cpp:190: error: ‘SWS_BILINEAR’ was not declared in this scope
Gear_VideoSource.cpp:194: error: ‘sws_getCachedContext’ was not declared in this scope
Gear_VideoSource.cpp:201: error: ‘AVPicture’ was not declared in this scope
Gear_VideoSource.cpp:201: error: expected primary-expression before ‘)’ token
Gear_VideoSource.cpp:201: error: ‘avpicture_fill’ was not declared in this scope
Gear_VideoSource.cpp: In member function ‘virtual void Gear_VideoSource::runVideo()’:
Gear_VideoSource.cpp:225: error: ‘_codecContext’ was not declared in this scope
Gear_VideoSource.cpp:229: error: ‘_formatContext’ was not declared in this scope
Gear_VideoSource.cpp:229: error: ‘AVSEEK_FLAG_BACKWARD’ was not declared in this scope
Gear_VideoSource.cpp:229: error: ‘av_seek_frame’ was not declared in this scope
Gear_VideoSource.cpp:235: error: ‘_formatContext’ was not declared in this scope
Gear_VideoSource.cpp:235: error: ‘_packet’ was not declared in this scope
Gear_VideoSource.cpp:235: error: ‘av_read_frame’ was not declared in this scope
Gear_VideoSource.cpp:237: error: ‘AVSEEK_FLAG_BACKWARD’ was not declared in this scope
Gear_VideoSource.cpp:237: error: ‘av_seek_frame’ was not declared in this scope
Gear_VideoSource.cpp:243: error: ‘_packet’ was not declared in this scope
Gear_VideoSource.cpp:245: error: ‘av_free_packet’ was not declared in this scope
Gear_VideoSource.cpp:246: error: ‘_formatContext’ was not declared in this scope
Gear_VideoSource.cpp:246: error: ‘av_read_frame’ was not declared in this scope
Gear_VideoSource.cpp:247: error: ‘AVSEEK_FLAG_BACKWARD’ was not declared in this scope
Gear_VideoSource.cpp:247: error: ‘av_seek_frame’ was not declared in this scope
Gear_VideoSource.cpp:253: error: ‘_frame’ was not declared in this scope
Gear_VideoSource.cpp:253: error: ‘_packet’ was not declared in this scope
Gear_VideoSource.cpp:253: error: ‘avcodec_decode_video2’ was not declared in this scope
Gear_VideoSource.cpp:261: error: ‘_frame’ was not declared in this scope
Gear_VideoSource.cpp:265: error: ‘_frameRGBA’ was not declared in this scope
Gear_VideoSource.cpp:267: error: ‘sws_scale’ was not declared in this scope
Gear_VideoSource.cpp:284: error: ‘_packet’ was not declared in this scope
Gear_VideoSource.cpp:284: error: ‘av_free_packet’ was not declared in this scope
make[2]: **\* [debug/Gear_VideoSource.o] Error 1
make[1]: **\* [sub-VideoSource-make_default] Error 2
make: **\* [sub-src-gears-make_default] Error 2