memo


  1. Download and setup Alchemy SDK following instructions.

  2. Put cdt-build.sh into $ALCHEMY_HOME.

  3. Download cdt-achacks-gcc.patch and patch.
    # cd $ALCHEMY_HOME/achacks
    # patch < somedir/cdt-achacks-gcc.patch
    (or download gcc and replace with $ALCHEMY_HOME/achacks/gcc)

  4. Install CDT. (Help -> Install New Software... -> (Select appropriate update site) -> Select "C/C++ Development Tools" under "Programming Languages")

  5. Create New "C Project".
    Cdtalc 1

  6. Select "Shared Library - Empty Project" and click "Next".
    cdtalc-2.gif

  7. Uncheck "Debug" and click "Finish". (only 1 configuration required.)
    cdtalc-3.gif

  8. Open project property.

  9. In "C/C++ Build" page, uncheck "Use default build command" and input full path of cdt-build.sh.

  10. Add include path ($ALCHEMY_HOME/avm2-libc/include) to "GCC C Compiler/Includes" section in "C/C++ Build - Settings" page.

  11. Add linker flag "-swc" at "MacOS X C Linker/Miscellaneous" section.

  12. Move to "Build Artifact" tab and change "Artifact extension:" to "swc", "Output prefix" to blank.

  13. Create source folder. Copy stringecho.c from $ALCHEMY_HOME/samples/stringecho/stringecho.c then "Build".

  14. swc is built in "Release" folder.

  15. Open "Flash FDT" perspective.

  16. Add project to "Flash Nature". (Right click on project root folder -> "Flash Prject" -> "Add Flash Nature")

  17. Add swc to class path.

  18. Create AS3 source folder and copy EchoTest.as from samples folder.
    cdtalc-8.gif

  19. Run it as usual.