From 911650c5531352311e07354d59bd1deb54cf4952 Mon Sep 17 00:00:00 2001 From: Krisjanis Rijnieks Date: Fri, 17 Oct 2014 22:34:46 +0200 Subject: [PATCH] Add hint to ofxOMXPlayer workaround --- src/Sources/VideoSource.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/Sources/VideoSource.h b/src/Sources/VideoSource.h index 2a7e652..9ab8a97 100644 --- a/src/Sources/VideoSource.h +++ b/src/Sources/VideoSource.h @@ -3,6 +3,22 @@ #include "ofMain.h" #include "BaseSource.h" #ifdef TARGET_RASPBERRY_PI + /* + Notice that if you get an error like this: + fatal error: libavcodec/opt.h: No such file or directory + Create a file opt.h in addons/ofxOMXPlayer/libs/ffmpeg/libavcodec/ + with the following contents: + + #ifndef AVCODEC_OPT_H + #define AVCODEC_OPT_H + #include "libavcodec/version.h" + #if FF_API_OPT_H + #include "libavutil/opt.h" + #endif + #endif // AVCODEC_OPT_H + + More here: https://github.com/jvcleave/ofxOMXPlayer/issues/34 + */ #include "ofxOMXPlayer.h" #endif