Share

FFMpeg Objects - C++ & JMF bindings

The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

Building fobs4jmf on PPC Mac

You are viewing a single message from this topic. View all messages.

  1. 2007-08-04 10:10:16 UTC
    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.
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.