It's not hard, but I thought I'd share the how-to with the world:
How to build the Flex SDK on Windows
(based on Windows 7 64-bit)
- Java - You'll need the JDK, not just the JRE (the runtime which comes with Flash Builder, for example).
- I used the 64 bit version:
- Ant - You can download the binaries: http://ant.apache.org/bindownload.cgi
- I used 1.8.2
- Just unzip it to c:\dev\ant
- Flex open-source SDK
- I used 126.96.36.19976
- Unzip it to c:\dev\sdk (just for simplcity)
- Let's create a batch file to set some useful envars: envars.bat
set JAVA_HOME=c:\Program Files\Java\jdk1.6.0_23 set PATH=c:\dev\ant\bin;%PATH% set ANT_OPTS=-Xmx256m
- Open cmd.exe and run it...
- Edit c:\dev\sdk\frameworks\build.xml
- Look for:
<target name="datavisualization" description="Builds datavisualization.swc">
- And fix the location of the manifest file from:
- Run Ant:c:\dev\sdk\frameworks> ant
- It should end with such a message: BUILD SUCCESSFUL
- Now let's tell Flash Builder where to find this new SDK: c:\dev\sdk
- Add it to the "Installed SDKs" settings in Flash Builder
- Make sure your project is configured to use this SDK (it was probably created with the original one and still refers to it).
- Rebuild your project. It should work.