Compiling latest "Tip of Tree" for Windows ?

42 views
Skip to first unread message

Jonathan Ben

unread,
Jul 8, 2010, 5:26:00 PM7/8/10
to xuggler-users
Hi,

I am developing a solution using Xuggler and Red5, and I am really
excited about using the new features in Xuggle concerning RTMP and the
integration of rtmpdump (as discussed here :
http://blog.xuggle.com/2010/06/18/xuggle-now-has-librtmp-support/).

I 'm having issues compiling the latest code from Xuggle's SVN on
Windows though and would like to know if anybody had any success with
this, or if there is any build available that would bring librtmp
support to Xuggle on windows.

For now I have tried to compile Xuggle using Mingw32 and Msys using
the "easy way" on Xuggle Website (ant run-tests), but the process
fails while compiling libvorbis("C compiler cannot create
executables"). I also noticed that librtmp support was disabled by
default and couldn't find a way to enable it. Actually if someone
could explain to me how to disable / enable captive libraries before
compiling I could try to compile only the libraries I nee, i.e.
libx264, libspeex and librtmp. (and at the same time disabling
libvorbis which is failing for me ! ).

Another line of thinking I had was trying to cross-compile Xuggle for
Windows in an actual Linux Environment, which would simplify all the
process, but I'm not sure it's possible.

I'm not even sure my problem is related to Xuggle source code, it
could be a bad configuration of my environment. As you may have
noticed I don't have a lot of compiling skills so if anyone can share
a bit of experience that would be great !

Jonathan.


Ross Hendrickson

unread,
Jul 8, 2010, 7:24:06 PM7/8/10
to xuggle...@googlegroups.com
Jonathan,

I've spent a few hours trying to compile Xuggler on windows myself, but have yet to get it up and running. There has already been some discussion about this


People are still working on it (as am I, just have limited time at work and it is a low priority task for the moment for my boss) and as soon as someone figures it out there will be much rejoicing. I looked into cross-compiling it for Windows but didn't get very far but it should be possible (according to my limited knowledge). The main issue seems to be with building FFMPEG and I think there was something about how Xuggler couldn't distribute the source code for some library and you'd have to build it and then build Xuggler but I can't remember where I read that or what library it was. I think it had something to do with the library that handled flac audio?

Sorry it isn't a solution, but people are working on it.

Ross



--
You received this message because you are subscribed to the Google Groups "xuggler-users" group.
To post to this group, send email to xuggle...@googlegroups.com.
To unsubscribe from this group, send email to xuggler-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/xuggler-users?hl=en.


Ron Fulkerson

unread,
Jul 8, 2010, 7:36:25 PM7/8/10
to xuggle...@googlegroups.com
I have also begun to look at cross-compiling Xuggle for Windows on Linux, but unfortunately have not gotten very far.  I started my attempt by updating and compiling a previously working Linux build (on Ubuntu 10.04 x64).  After updating, the I can no longer get the Linux build to work. 

Two attempts using the ant 'run-tests' method encountered the following error:
[exec] ../../../../../../../../csrc/com/xuggle/xuggler/io/FfmpegIO.cpp: In function ‘jint Java_com_xuggle_xuggler_io_FfmpegIO_native_1registerProtocolHandler(JNIEnv*, _jclass*, _jstring*, _jobject*)’:
[exec] ../../../../../../../../csrc/com/xuggle/xuggler/io/FfmpegIO.cpp:60: error: ‘av_register_protocol2’ was not declared in this scope
[exec] make[7]: *** [FfmpegIO.lo] Error 1
I ran the clobber and clean targets between these attempts, but it made no difference.  I then attempted to download the entire source tree fresh, as I have previously had problems with a plain update.  Downloading the whole tree stalls on a video file, and the checkout is aborted, as seen below:
A    xuggle-xuggler/test/fixtures/test.raw
svn: REPORT of '/svn/!svn/vcc/default': Could not read chunk size: connection was closed by server (http://xuggle.googlecode.com)
If anyone has seen similar problems, please let me know.  Any help will be greatly appreciated!

Thanks,
Ron

Jonathan Ben

unread,
Jul 8, 2010, 8:04:40 PM7/8/10
to xuggler-users
Well, it's good to see I'm not the only one interested in doing that.
I still have some paths I want to explore before I give up, I'll let
you know if I can make any prorgess ! I'm trying several setups of
MinGW and I'm going to try to cross compile ffmpeg too. The key is to
compile ffmep, then it will be easy to have xuggle working.

On 8 juil, 19:36, Ron Fulkerson <ron.fulker...@zvideo.com> wrote:
>   I have also begun to look at cross-compiling Xuggle for Windows on
> Linux, but unfortunately have not gotten very far.  I started my attempt
> by updating and compiling a previously working Linux build (on Ubuntu
> 10.04 x64).  After updating, the I can no longer get the Linux build to
> work.
>
> Two attempts using the ant 'run-tests' method encountered the following
> error:
>
> [exec] ../../../../../../../../csrc/com/xuggle/xuggler/io/FfmpegIO.cpp: In function 'jint Java_com_xuggle_xuggler_io_FfmpegIO_native_1registerProtocolHandler(JNIEnv* , _jclass*, _jstring*, _jobject*)':
>
> [exec] ../../../../../../../../csrc/com/xuggle/xuggler/io/FfmpegIO.cpp:60: error: 'av_register_protocol2' was not declared in this scope
>
> [exec] make[7]: *** [FfmpegIO.lo] Error 1
>
> I ran the clobber and clean targets between these attempts, but it made
> no difference.  I then attempted to download the entire source tree
> fresh, as I have previously had problems with a plain update.  
> Downloading the whole tree stalls on a video file, and the checkout is
> aborted, as seen below:
>
> A    xuggle-xuggler/test/fixtures/test.raw
>
> svn: REPORT of '/svn/!svn/vcc/default': Could not read chunk size: connection was closed by server (http://xuggle.googlecode.com)
>
> If anyone has seen similar problems, please let me know.  Any help will
> be greatly appreciated!
>
> Thanks,
> Ron
>
> On 7/8/2010 4:24 PM, Ross Hendrickson wrote:
>
>
>
> > Jonathan,
>
> > I've spent a few hours trying to compile Xuggler on windows myself,
> > but have yet to get it up and running. There has already been some
> > discussion about this
>
> >http://groups.google.com/group/xuggler-users/browse_thread/thread/ac1...
> > <http://groups.google.com/group/xuggler-users/browse_thread/thread/ac1...>
> >     <mailto:xuggle...@googlegroups.com>.
> >     To unsubscribe from this group, send email to
> >     xuggler-user...@googlegroups.com
> >     <mailto:xuggler-users%2Bunsu...@googlegroups.com>.

Jonathan Ben

unread,
Aug 10, 2010, 1:43:15 PM8/10/10
to xuggler-users
I did not give up yet ! I have been able to compile Xuggle 3.4 on
Windows, with an improved RTMP behavior for URL parsing, which was my
primary objective : check this thread for more info (patch and windows
installer are in it) :

http://groups.google.com/group/xuggler-users/browse_thread/thread/ebfa1a906bf7e862

I'm going to try to compile latest Xuggle tip of tree now.
> > > into cross-compiling it forWindowsbut didn't get very far but it
> > > should be possible (according to my limited knowledge). The main issue
> > > seems to be with building FFMPEG and I think there was something about
> > > how Xuggler couldn't distribute the source code for some library and
> > > you'd have to build it and then build Xuggler but I can't remember
> > > where I read that or what library it was. I think it had something to
> > > do with the library that handled flac audio?
>
> > > Sorry it isn't a solution, but people are working on it.
>
> > > Ross
>
> > > On Thu, Jul 8, 2010 at 3:26 PM, Jonathan Ben
> > > <jonathan.benat...@gmail.com <mailto:jonathan.benat...@gmail.com>> wrote:
>
> > >     Hi,
>
> > >     I am developing a solution using Xuggler and Red5, and I am really
> > >     excited about using the new features in Xuggle concerning RTMP and the
> > >     integration of rtmpdump (as discussed here :
> > >    http://blog.xuggle.com/2010/06/18/xuggle-now-has-librtmp-support/).
>
> > >     I 'm having issues compiling the latest code from Xuggle's SVN on
> > >    Windowsthough and would like to know if anybody had any success with
> > >     this, or if there is any build available that would bring librtmp
> > >     support to Xuggle onwindows.
>
> > >     For now I have tried to compile Xuggle using Mingw32 and Msys using
> > >     the "easy way" on Xuggle Website (ant run-tests), but the process
> > >     fails while compiling libvorbis("C compiler cannot create
> > >     executables"). I also noticed that librtmp support was disabled by
> > >     default and couldn't find a way to enable it. Actually if someone
> > >     could explain to me how to disable / enable captive libraries before
> > >     compiling I could try to compile only the libraries I nee, i.e.
> > >     libx264, libspeex and librtmp. (and at the same time disabling
> > >     libvorbis which is failing for me ! ).
>
> > >     Another line of thinking I had was trying to cross-compile Xuggle for
> > >    Windowsin an actual Linux Environment, which would simplify all the

Jonathan Ben

unread,
Aug 11, 2010, 12:48:27 PM8/11/10
to xuggler-users
I was finally able to compile latest tip of tree on windows.
Everything seems to work just fine (I'm getting more delay though than
with Xuggler 3.4 on rtmp publishing, even with buffer set as 0).

I made an installer : http://dl.dropbox.com/u/985460/xuggle-xuggler.4.0.0-win32-setup.exe
. Be sure to have zlib1.dll (http://dl.dropbox.com/u/985460/zlib1.dll)
on your Path.

Here's my zipped MinGW building environment : http://dl.dropbox.com/u/985460/MinGW-Xuggler4.7z.

I did not have to patch anything on Xuggler source to build it, so I
think Windows build is not broken, only really hard to figure out.

If you have questions, just ask !

On 10 août, 13:43, Jonathan Ben <jonathan.benat...@gmail.com> wrote:
> I did not give up yet ! I have been able to compile Xuggle 3.4 on
> Windows, with an improved RTMP behavior for URL parsing, which was my
> primary objective : check this thread for more info (patch and windows
> installer are in it) :
>
> http://groups.google.com/group/xuggler-users/browse_thread/thread/ebf...

Ron Fulkerson

unread,
Aug 13, 2010, 7:50:14 PM8/13/10
to xuggle...@googlegroups.com
It is great to see you have made a lot of progress on this issue. I
downloaded your mingw environment, and attempted to build the latest
from SVN, but I end up with this error:

[exec] make[3]: Nothing to be done for `install-exec-am'.
[exec] make[3]: Nothing to be done for `install-data-am'.
[exec] make[3]: Leaving directory
`/c/xuggle/build/native/i686-pc-mingw32'
[exec] make[2]: Leaving directory
`/c/xuggle/build/native/i686-pc-mingw32'
[exec] make[1]: Leaving directory
`/c/xuggle/build/native/i686-pc-mingw32'
[echo] Staging Java Jars to right location

BUILD FAILED
c:\xuggle\mk\buildtools\buildhelper.xml:1257: Directory
c:\xuggle\dist\stage\c:\
xuggle\share\java\jars creation was not successful for an unknown reason


I am not sure why this would be happening - do you have any suggestions?

Thanks,
Ron


On 8/11/2010 9:48 AM, Jonathan Ben wrote:
> I was finally able to compile latest tip of tree on windows.
> Everything seems to work just fine (I'm getting more delay though than
> with Xuggler 3.4 on rtmp publishing, even with buffer set as 0).
>
> I made an installer : http://dl.dropbox.com/u/985460/xuggle-xuggler.4.0.0-win32-setup.exe
> . Be sure to have zlib1.dll (http://dl.dropbox.com/u/985460/zlib1.dll)
> on your Path.
>
> Here's my zipped MinGW building environment : http://dl.dropbox.com/u/985460/MinGW-Xuggler4.7z.
>
> I did not have to patch anything on Xuggler source to build it, so I
> think Windows build is not broken, only really hard to figure out.
>
> If you have questions, just ask !
>

Ron Fulkerson

unread,
Aug 17, 2010, 1:34:17 PM8/17/10
to xuggle...@googlegroups.com
Hi Jonathan,

I wanted to say thank you!  I got Xuggle 4.0 to build in windows using your mingw/msys environment.  I had to clean up my workspace, as previous builds had left a bad configuration and partial files due to a malfunctioning patch.  Once I had the repository clean, everything worked in your environment!  

Thanks so much...

--Ron

On 10 août, 13:43, Jonathan Ben<jonathan.benat...@gmail.com>  wrote:



--
Ron Fulkerson
Software Engineer
ZViDEO Software | Z Microsystems, Inc.
ron.fu...@zvideo.com | (702) 880-3793

Jonathan Ben

unread,
Aug 17, 2010, 1:43:57 PM8/17/10
to xuggler-users
Nice ! Glad I was able to help you (I had no clue about your issue but
I guess cleaning up your workspace was a good move). Were you able to
build it with librtmp support ? That's the very last thing I couldn't
do.

Jonathan.

On 17 août, 13:34, Ron Fulkerson <ron.fulker...@zvideo.com> wrote:
> Hi Jonathan,
>
> I wanted to say thank you!  I got Xuggle 4.0 to build in windows using your
> mingw/msys environment.  I had to clean up my workspace, as previous builds
> had left a bad configuration and partial files due to a malfunctioning
> patch.  Once I had the repository clean, everything worked in your
> environment!
>
> Thanks so much...
>
> --Ron
>
> >>>>>>     xuggler-user...@googlegroups.com<xuggler-users%2Bunsubscribe@goog legroups.com>
> >>>>>>     <mailto:xuggler-users%2Bunsu...@googlegroups.com<xuggler-users%252Bunsu bsc...@googlegroups.com>
> >>>>>> >.
> >>>>>>     For more options, visit this group at
> >>>>>>    http://groups.google.com/group/xuggler-users?hl=en.
> >>>>>> --
> >>>>>> You received this message because you are subscribed to the Google
> >>>>>> Groups "xuggler-users" group.
> >>>>>> To post to this group, send email to xuggle...@googlegroups.com.
> >>>>>> To unsubscribe from this group, send email to
> >>>>>> xuggler-user...@googlegroups.com<xuggler-users%2Bunsubscribe@goog legroups.com>
> >>>>>> .
> >>>>>> For more options, visit this group at
> >>>>>>http://groups.google.com/group/xuggler-users?hl=en.
>
> --
> *Ron Fulkerson*
> Software Engineer
> ZViDEO Software | Z Microsystems, Inc.
> ron.fulker...@zvideo.com | (702) 880-3793

Ross Hendrickson

unread,
Aug 23, 2010, 11:37:36 AM8/23/10
to xuggle...@googlegroups.com
Has anyone had any luck with librtmp yet? My full focus at work is now getting xuggler integrated with our current systems so I will keep trying to get this working. Thanks for everyone's support!

Ross

To unsubscribe from this group, send email to xuggler-user...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages