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)
Prerequisites
- 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:
"c:\Program Files\Java\jdk1.6.0_23" - 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 4.1.0.16076
- Unzip it to c:\dev\sdk (just for simplcity)
Building
- 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:
"${datavis.dir}/manifest.xml" to:
"${datavis.dir}/manifest_datavisualization.xml" - 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.
1 comment:
Thank you for the information.
I find it useful to know how to build flex SDK on Windows.
I faced the problem when tried to implement the special code into my project connected with virtual data room. Now I know how to deal with that when working with data room providers comparison.
Post a Comment