Tuesday, March 1, 2011

Alchemy Series Part 2: Environment Setup

Alchemy Series Part 2: Environment Setup:

To get started with Alchemy on a Windows box, you first need to get cygwin installed. Cygwin is a pseudo linux environment that runs under Windows. This gives us access the the LLVM and the gcc compilers. This is how we are going to take C/C++ code and create a swc that we can access directly from flash.

To get started we are going to first need the Adobe Flex SDK, please download this and unzip it to c:\flexsdk
http://opensource.adobe.com/wiki/display/flexsdk/Flex+SDK

Currently the latest release is Flex4.1 Update 4.1.0.16076.

Now we can grab Adobe Alchemy:
http://labs.adobe.com/downloads/alchemy.html

Just check the box at the bottom and download the “Alchemy Toolkit for Cygwin on Windows”
When that finishes downloading, unzip it into c:\alchemy (make sure that you don’t unzip it into folders within that, you want the folder structionto be c:\alchemy and then a bunch of folders such as c:\alchemy\achacks, c:\alchemy\bin, etc…

Next you will need to make sure you have Java installed. If you do, please continue. If you do not, please download and install it from here:
http://www.java.com/en/download/index.jsp

Last up is Cygwin’s setup.exe file:
http://www.cygwin.com/

Look for setup.exe about half way down the page, and download that to c:\cygwin (you can put this wherever you like, but I will be using c:\cygwin and c:\alchemy through out the post for simplicity)

This setup file is basically a client front end that allows you to download and install whatever linux packages you will need to get the job done.

Double click on the setup.exe to get things started.
- Click next on the first screen.
- On the second screen select “install from internet” and click next.
- Set your root directory on the third screen to c:\cygwin and install for all users. Click Next
- Set your local package directory to be c:\cygwin as well, click next.
- Set up your proxy settings if you have any (if you are behind a corporate firewall or something) otherwise select “Direct Connection” and click next.
- Select a mirror, I usually use http://mirrors.kernel.org click next.
- You may get a Setup Alert warning you that this is your first install, so you should check out the docs. This is normal, and fine, just click OK.
- This takes you to the package selection screen [...]

No comments:

Post a Comment