After searching the forum, I noticed the mac binaries available in the download section are only for intel based mac's. So I tried to build (with gcc 4.0.1) the current CVS snapshot on my ppc-mac.
But I'm getting build errors:
...java stuff...
g++ -g -D __STDC_CONSTANT_MACROS -fPIC -Iffmpeg -Iffmpeg/libavcodec -Iffmpeg/libavformat -Iffmpeg/libavutil -I/System/Library/Frameworks/JavaVM.framework/Headers -I/System/Library/Frameworks/JavaVM.framework/Headers/win32 -I/System/Library/Frameworks/JavaVM.framework/Headers/linux -Isrc/cppapi -I/Users/jsanpedro/Desktop/fobs-src/resources/include -c -o src/jmf-pi/decoder.os src/jmf-pi/decoder.cpp
ffmpeg/libavformat/avformat.h:251: warning: 'AVFrac' is deprecated (declared at ffmpeg/libavformat/avformat.h:102)
src/cppapi/Decoder.h:123: error: declaration of 'omnividea::fobs::SwsContext* omnividea::fobs::Decoder::img_resample_ctx'
src/cppapi/Decoder.h:122: error: conflicts with previous declaration 'ImgReSampleContext* omnividea::fobs::Decoder::img_resample_ctx'
src/cppapi/Decoder.h:195: warning: inline function 'virtual double omnividea::fobs::Decoder::getNextFrameTime()' used but never defined
scons: *** [src/jmf-pi/decoder.os] Error 1
In Decoder.h there are to declarations with the same name:
ImgReSampleContext *img_resample_ctx;
struct SwsContext *img_resample_ctx; /* for image resampling */
I tried simply removing one of them and start a next build:
...java stuff...
g++ -g -D __STDC_CONSTANT_MACROS -fPIC -Iffmpeg -Iffmpeg/libavcodec -Iffmpeg/libavformat -Iffmpeg/libavutil -I/System/Library/Frameworks/JavaVM.framework/Headers -I/System/Library/Frameworks/JavaVM.framework/Headers/win32 -I/System/Library/Frameworks/JavaVM.framework/Headers/linux -Isrc/cppapi -I/Users/jsanpedro/Desktop/fobs-src/resources/include -c -o src/jmf-pi/decoder.os src/jmf-pi/decoder.cpp
ffmpeg/libavformat/avformat.h:251: warning: 'AVFrac' is deprecated (declared at ffmpeg/libavformat/avformat.h:102)
src/cppapi/Decoder.h:195: warning: inline function 'virtual double omnividea::fobs::Decoder::getNextFrameTime()' used but never defined
g++ -g -D __STDC_CONSTANT_MACROS -fPIC -Iffmpeg -Iffmpeg/libavcodec -Iffmpeg/libavformat -Iffmpeg/libavutil -I/System/Library/Frameworks/JavaVM.framework/Headers -I/System/Library/Frameworks/JavaVM.framework/Headers/win32 -I/System/Library/Frameworks/JavaVM.framework/Headers/linux -Isrc/cppapi -I/Users/jsanpedro/Desktop/fobs-src/resources/include -c -o src/jmf-pi/stand_alone_codec.os src/jmf-pi/stand_alone_codec.cpp
ffmpeg/libavformat/avformat.h:251: warning: 'AVFrac' is deprecated (declared at ffmpeg/libavformat/avformat.h:102)
src/jmf-pi/_tags.h:7: error: 'AVCodecTag' does not name a type
src/jmf-pi/_tags.h:50: error: 'AVCodecTag' does not name a type
src/jmf-pi/_tags.h:81: error: 'AVCodecTag' does not name a type
src/jmf-pi/_tags.h:100: error: 'AVCodecTag' does not name a type
src/jmf-pi/stand_alone_codec.cpp: In function 'CodecID getCodecId(char*)':
src/jmf-pi/stand_alone_codec.cpp:88: error: 'mov_video_tags' was not declared in this scope
src/jmf-pi/stand_alone_codec.cpp:90: error: 'nsv_codec_video_tags' was not declared in this scope
src/jmf-pi/stand_alone_codec.cpp:95: error: 'mov_audio_tags' was not declared in this scope
src/jmf-pi/stand_alone_codec.cpp:97: error: 'nsv_codec_audio_tags' was not declared in this scope
scons: *** [src/jmf-pi/stand_alone_codec.os] Error 1
Any help would be nice.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
yeah, the CVS version is half the way through its adaptation to the new resampling structures used in ffmpeg. Meanwhile, try commenting the second of these two declarations:
//struct SwsContext *img_resample_ctx; /* for image resampling */
It should do the trick.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
After searching the forum, I noticed the mac binaries available in the download section are only for intel based mac's. So I tried to build (with gcc 4.0.1) the current CVS snapshot on my ppc-mac.
But I'm getting build errors:
...java stuff...
g++ -g -D __STDC_CONSTANT_MACROS -fPIC -Iffmpeg -Iffmpeg/libavcodec -Iffmpeg/libavformat -Iffmpeg/libavutil -I/System/Library/Frameworks/JavaVM.framework/Headers -I/System/Library/Frameworks/JavaVM.framework/Headers/win32 -I/System/Library/Frameworks/JavaVM.framework/Headers/linux -Isrc/cppapi -I/Users/jsanpedro/Desktop/fobs-src/resources/include -c -o src/jmf-pi/decoder.os src/jmf-pi/decoder.cpp
ffmpeg/libavformat/avformat.h:251: warning: 'AVFrac' is deprecated (declared at ffmpeg/libavformat/avformat.h:102)
src/cppapi/Decoder.h:123: error: declaration of 'omnividea::fobs::SwsContext* omnividea::fobs::Decoder::img_resample_ctx'
src/cppapi/Decoder.h:122: error: conflicts with previous declaration 'ImgReSampleContext* omnividea::fobs::Decoder::img_resample_ctx'
src/cppapi/Decoder.h:195: warning: inline function 'virtual double omnividea::fobs::Decoder::getNextFrameTime()' used but never defined
scons: *** [src/jmf-pi/decoder.os] Error 1
In Decoder.h there are to declarations with the same name:
ImgReSampleContext *img_resample_ctx;
struct SwsContext *img_resample_ctx; /* for image resampling */
I tried simply removing one of them and start a next build:
...java stuff...
g++ -g -D __STDC_CONSTANT_MACROS -fPIC -Iffmpeg -Iffmpeg/libavcodec -Iffmpeg/libavformat -Iffmpeg/libavutil -I/System/Library/Frameworks/JavaVM.framework/Headers -I/System/Library/Frameworks/JavaVM.framework/Headers/win32 -I/System/Library/Frameworks/JavaVM.framework/Headers/linux -Isrc/cppapi -I/Users/jsanpedro/Desktop/fobs-src/resources/include -c -o src/jmf-pi/decoder.os src/jmf-pi/decoder.cpp
ffmpeg/libavformat/avformat.h:251: warning: 'AVFrac' is deprecated (declared at ffmpeg/libavformat/avformat.h:102)
src/cppapi/Decoder.h:195: warning: inline function 'virtual double omnividea::fobs::Decoder::getNextFrameTime()' used but never defined
g++ -g -D __STDC_CONSTANT_MACROS -fPIC -Iffmpeg -Iffmpeg/libavcodec -Iffmpeg/libavformat -Iffmpeg/libavutil -I/System/Library/Frameworks/JavaVM.framework/Headers -I/System/Library/Frameworks/JavaVM.framework/Headers/win32 -I/System/Library/Frameworks/JavaVM.framework/Headers/linux -Isrc/cppapi -I/Users/jsanpedro/Desktop/fobs-src/resources/include -c -o src/jmf-pi/stand_alone_codec.os src/jmf-pi/stand_alone_codec.cpp
ffmpeg/libavformat/avformat.h:251: warning: 'AVFrac' is deprecated (declared at ffmpeg/libavformat/avformat.h:102)
src/jmf-pi/_tags.h:7: error: 'AVCodecTag' does not name a type
src/jmf-pi/_tags.h:50: error: 'AVCodecTag' does not name a type
src/jmf-pi/_tags.h:81: error: 'AVCodecTag' does not name a type
src/jmf-pi/_tags.h:100: error: 'AVCodecTag' does not name a type
src/jmf-pi/stand_alone_codec.cpp: In function 'CodecID getCodecId(char*)':
src/jmf-pi/stand_alone_codec.cpp:88: error: 'mov_video_tags' was not declared in this scope
src/jmf-pi/stand_alone_codec.cpp:90: error: 'nsv_codec_video_tags' was not declared in this scope
src/jmf-pi/stand_alone_codec.cpp:95: error: 'mov_audio_tags' was not declared in this scope
src/jmf-pi/stand_alone_codec.cpp:97: error: 'nsv_codec_audio_tags' was not declared in this scope
scons: *** [src/jmf-pi/stand_alone_codec.os] Error 1
Any help would be nice.
Hi,
yeah, the CVS version is half the way through its adaptation to the new resampling structures used in ffmpeg. Meanwhile, try commenting the second of these two declarations:
//struct SwsContext *img_resample_ctx; /* for image resampling */
It should do the trick.
Thanks, I got it working.
I also had to rename all occurences of AVCodecTag to CodecTag in the _tags.h to build without errors