Search code examples
xugglerxuggle

Xuggler compilation is failing.


I DID NOT FIND THE PRECOMPILED BINARIES FOR WINDOWS OR LINUX PLATFORM, AND I am trying to build the Xuggler code base cloned from the github. I am following the steps given in the link: http://www.xuggle.com/xuggler/build

I am facing a compilation error as below. Can someone please help me with what is missing? All the build environment prerequisite are taken care of.

     [exec]   CXX    AudioResampler.lo
     [exec]   CXX    AudioSamples.lo
     [exec]   CXX    Codec.lo
     [exec] ../../../../../../../csrc/com/xuggle/xuggler/Codec.cpp: In member function 'virtual bool com::xuggle::xuggler::Codec::canDecode()':
     [exec] ../../../../../../../csrc/com/xuggle/xuggler/Codec.cpp:158:38: error: converting 'false' to pointer type 'int (*)(AVCodecContext*, void*, int*, AVPacket*)' [-Werror=conversion-null]
     [exec] ../../../../../../../csrc/com/xuggle/xuggler/Codec.cpp: At global scope:
     [exec] ../../../../../../../csrc/com/xuggle/xuggler/Codec.cpp:26:1: error: 'vs_logger_static_context' defined but not used [-Werror=unused-variable]
     [exec] cc1plus: all warnings being treated as errors
     [exec] make[6]: *** [Codec.lo] Error 1
     [exec] make[5]: *** [all-recursive] Error 1
     [exec] make[4]: *** [all] Error 2
     [exec] make[3]: *** [all-recursive] Error 1
     [exec] make[2]: *** [all-recursive] Error 1
     [exec] make[1]: *** [all-recursive] Error 1
     [exec] make: *** [all-recursive] Error 1
     [exec] make[6]: Leaving directory `/home/anilj1/xuggle-xuggler/build/native/x86_64-unknown-linux-gnu/csrc/com/xuggle/xuggler'
     [exec] make[5]: Leaving directory `/home/anilj1/xuggle-xuggler/build/native/x86_64-unknown-linux-gnu/csrc/com/xuggle/xuggler'
     [exec] make[4]: Leaving directory `/home/anilj1/xuggle-xuggler/build/native/x86_64-unknown-linux-gnu/csrc/com/xuggle/xuggler'
     [exec] make[3]: Leaving directory `/home/anilj1/xuggle-xuggler/build/native/x86_64-unknown-linux-gnu/csrc/com/xuggle'
     [exec] make[2]: Leaving directory `/home/anilj1/xuggle-xuggler/build/native/x86_64-unknown-linux-gnu/csrc/com'
     [exec] make[1]: Leaving directory `/home/anilj1/xuggle-xuggler/build/native/x86_64-unknown-linux-gnu/csrc'

BUILD FAILED
/home/anilj1/xuggle-xuggler/mk/buildtools/buildhelper.xml:1192: exec returned: 2

Total time: 18 minutes 30 seconds

CAN SOMEONE ALSO HELP WHERE TO FIND THE PRECOMPILED XUGGLER BINARIES FOR WINDOWS?


Solution

  • Folks,

    So finally I was able to successfully build the Xuggler build. It was a compiler version issue. I had installed (by virtue of apt-get install build-essential) latest version of gcc (version 4.7), and it was throwing all the below errors.

    I downgraded my system to version 4.4, and it worked. I could have chosen 4.6 or something else, but now I guess its not required.

    /anil.