Okay today we will learn howto compile Actionscript, and JW Player on Windows Vista.
Normally I only work on Linux but since I have never done this I took the dummy way out. Sue me
Okay We will need this software:
* Flex SDK 3.3: http://opensource.adobe.com/wiki/display/flexsdk/Downloads * Ant 1.7.0: http://ant.apache.org/bindownload.cgi * FlexUnit 4: http://opensource.adobe.com/wiki/display/flexunit/FlexUnit (for testing the player)
Make sure you get Flex version 3.3!! This is so Important otherwise you’ll get strange errors.
Okay I put Flex in this directory:
C:\Program Files\Adobe Flex Builder 3\sdks\3.3.0\
Inside this directory is the following contents:
ant asdoc bin build.properties build.xml frameworks lib license-mpl.htm readme-open.htm samples templates
That’s Flex done.
Now for Ant
I downloaded ant and put it in the directory
C:\ant
There is no install, just copy the files. Inside the directory is the following contents:
bin docs etc fetch.xml get-m2.xml INSTALL KEYS lib LICENSE NOTICE README WHATSNEW
That’s Ant done.
Now for JAVA SDK. I downloaded this file:
jdk-6u21-windows-i586.exe and installed it. I chose the location:
C:\jdk_6
That’s JAVA SDK done.
Now grab your version of the JW Player source, and copy it to your C drive. My source is in this directory.
C:\trunk\fl5\
Inside this directory is the following contents:
assets bin-release build doc libs ###NOTE### THIS DIRECTORY I COPIED FROM THE FLEX DIRECTORY C:\Program Files\Adobe Flex Builder 3\sdks\3.3.0\frameworks player.swf player.xml README.txt src test yt.as yt.fla yt.swf
That’s our source Done!
Now before we compile to open up our command line and give the following commands. You have to do this everytime you restart Windows and before you want to compile.
set ANT_HOME=c:\ant set JAVA_HOME=c:\jdk_6 set PATH=%PATH%;%ANT_HOME%\bin
Now for the goodstuff or the bad stuff, to compile the source code in the command line, navigate to
C:\ant\bin and give this command
ant -buildfile C:\trunk\fl5\build\build.xml
And that’s it! Good luck! Let’s go have a beer
Winston




