Compiling JVLC for a 32-bit linux environment

2008-03-16 22:50 by Ian

I am using Slackware 12.0 on a VIA EPIA mini-ITX board with a VIA-C3 CPU and 1GB RAM.

First, you will need these things:

Build ffmpeg and install it.

Before continuing, I recommend reading this:
http://wiki.videolan.org/Common_Problems

Now for some stupid reason, VLC’s configure script wouldn’t find the JDK. I tried exporting java’s environment variables in a million different ways with no results. I suspect this is where everyone else on the internet gave up.

Hmmm….
Well… I know that my java install is ok. Solution: hack apart the configure script. I removed all the tests in the configure script where it tries to use java, and replaced the variables that would have been conditional upon success with the values that they would have taken had the configure script actually worked. After doing this, I crossed my fingers….
./configure

Success! I make and make install to finish the JVLC build with the java bindings. Then, I fought with java for a few hours trying to get it to load the libraries. Specifically, I was having this guy’s problem.

This forum thread was helpful as well:
http://www.velocityreviews.com/forums/t136028-systemload-problem.html

export CLASSPATH=.:$JAVA_HOME/jre/lib
export LD_LIBRARY_PATH=/usr/local/lib:/usr/local/share:/usr/X11R6/lib/java/jre/lib/i386/xawt

I am happy to report that everything worked and I now here the sweet sounds of 311 coming out of my app.

Previous:
Next: