msgbartop
Various ramblings-on, mostly about Red5
msgbarbottom

25 Aug 10 Building the latest Xuggler for Windows

I recently had reason to build the latest cutting-edge version of Xuggler for my Windows environment and I want to share the experience. Mind you, I have had to do this a few times before including when the project was still named AAFFMPEG and was “unreleased”. The process has been
made a lot simpler due to the hard work of Xuggle and its community (Special thanks to Jonathan Ben). BTW if you want to skip all the steps and get the build I created, you can find it here: xuggle-xuggler.4.0.1049-win32-setup.exe

Get all of the following applications / tools if you don’t already have them; they are all FREE.
Get the 1.6 JDK
– Install it
Get 7zip (due to MinGW file compression)
– Install it
Get the zlib dll
– Copy into Windows\System32 directory
Get the preconfigured MinGW
– Unzip into C:\MinGW
– Add C:\MinGW\bin path to the PATH environmental variable
Get the Msys installer
– Install to C:\msys (not C:\msys\1.0)
– Create a directory under C:\msys name “local”
– Add C:\msys\bin path to the PATH environmental variable
Get Ant
– Unzip into C:\ant
– Create a new environment variable named “ANT_HOME” with a value of C:\ant
– Add C:\ant\bin path to the PATH environmental variable
Get SilkSVN (good command line tool, otherwise I suggest TortoiseSVN)
– Install it
Get NSIS (if you want to build the installer)
– Install it
– Add C:\Program Files\NSIS path to the PATH environmental variable
Get Visual C++ 2010 Express
– Select your language on the form
– Install it (a reboot will usually be required)
Now for the fun! Be aware that this takes awhile to complete, on my system it took 76 minutes.
1. Enter the Visual Studio command environment by selecting the “Visual Studio Command Prompt (2010)” link in the start menu
2. Change directory to C:\MinGW
3. Execute “msys.bat”
4. Check out the project source from subversion
svn co http://xuggle.googlecode.com/svn/trunk/
6. Navigate to the xuggler directory
cd trunk/java/xuggle-xuggler
7. For the heck of it run this first
ant clobber
8. Now build while also running tests and producing installers
ant run-tests dist

Et voila! (if everything works, as it did for me)

If you run into an issue where “libraries can’t be found”, you are probably missing the zlib library. I have posted a defect for this here.

Tags: , , , , , ,



Reader's Comments

  1. |

    Because of source check (and probably having to implement something on our own), I chose compiling.

    I followed your guide and everything went all-right — all the way until the check-TESTS part, when it shows something like this as an error alert:

    “The ordinal 71 could not be located in the dynamic link library swscale-0.dll”

    And it doesn’t come up once, but some 20 times I believe, each time after I close the dialog, it prints

    “[exec] FAIL: xugglerTest***.exe”

    and of course it shows BUILD FAILED at the end.

    I am using Visual C++ 2008 Express, does that matter? (I used some 3 hours to compile… so much for a dual-core notebook :P)

  2. |

    Update: used VC10 with no avail :(

  3. |

    Hi, I’m learning new flex program would be very helpful for me thanks

  4. |

    Hi:

    Nice tutorial. I almost made it to work but its failing at MS-VC with the following messages:

    [exec] checking for lib… no
    [exec] configure: error: in `/trunk/xuggler/java/xuggle-xuggler/build/nativ
    e/i686-pc-mingw32′:
    [exec] configure: error: Could not find Microsoft Visual C++’s ‘LIB’ tool.
    This is required to build xuggler.
    [exec] You can download a free version from http://ww
    w.microsoft.com/express/download.
    [exec] Also make sure you have defined the variables
    in vcvars32.bat before running configure.
    [exec] See `config.log’ for more details.

    BUILD FAILED
    c:\MinGW\trunk\xuggler\java\xuggle-xuggler\mk\buildtools\buildhelper.xml:1125: e
    xec returned: 1

    Also Visual C++ link is not working..
    http://www.microsoft.com/express/Downloads/#2010-Visual-CPP

    Thanks for any help.

  5. |

    Thanks for this Paul!

    It did not work on Windows Vista for me, but running Windows XP in VirtualBox under Ubuntu worked fine.

  6. |

    I ran into one problem in that XUGGLE_HOME was set to “C:\Program Files (x86)\Xuggle” which was causing issues along the way. This was put in my system environment by the Xuggler installer I believe. Running an “export XUGGLE_HOME=” before ant resolved the issue. Dumping out of the environment altogether would work but will affect your installed Xuggler.

  7. |

    Hi, What configuration did you use on this “pre-configured” MinGW? I wanna know because I wanna compile last release of xuggler using least gcc and g++ compilers.

    Thanks

  8. |

    Can you make an updated version of this guide? This no longer works.

  9. |

    […] has some nice instructions on how to build the library. Still, Paul Gregoire has an even better and highly detailed guide on how to compile Xuggle on Windows (at the time, it […]

  10. |

    Great tutorial!

    For those wanting to compile on Windows 7 check the fix for buildHelper.xml as explained in my blog athttp://riaconnection.wordpress.com/2011/11/15/how-to-compile-xuggle-xuggler-in-windows-7-32bit/

    32 bit compilation was successfull on 64 bit Windows 7 Professional.

  11. |

    when i run “ant clobber” it says ‘ant’ is not recognized as an internal or external command..

    What to do?

  12. |

    I would like to use your precompiled version of xuggler. Is this the LGPL version or GPL?

    When I follow your guide, will that get me the LGPL version? The xuggler website says it’s LGPL if I compile it myself (or in this case you did it for me).

    Thanks for your help.

    Greets,
    markus

  13. |

    I think its GPL but I don’t recall.

  14. |

    hi Mondain,
    can you compile the xuggler for windows 64bit JVM for me?
    i am working since 5 days, but no success..:(

  15. |

    Hello
    Thanks you for this tuto.
    But I have a problem when I execute ant run-tests I had this error

    BUILD FAILED
    c:\msys\home\PresarioCQ60\trunk\java\xuggle-xuggler\mk\buildtools\buildhelper.xml:1127: exec returned: 77

    Thanks for help

  16. |

    […] Advanced Building Topics How to cross-compile Xuggle-Xuggler for Windows 7 64 or 32 bit Building the latest Xuggler for Windows Xuggler Users: building 5.5 from git – maven artifact error Xuggler Users: Debugging ffmpeg […]

  17. |

    your link xuggle-xuggler.4.0.1049-win32-setup.exe do not show any exe file for download it open adobe site please mention the link for pre build xuggler for windows 8 64 bit



Leave a Comment


Fatal error: Call to undefined function akismet_counter() in C:\xampp\htdocs\paulgregoireblog\wp-content\themes\googlechrome\footer.php on line 9