Alchemy3d is a flash 3D Engine Based on Adobe alchemy technology. The following is its basic development environment: Cygwin + Adobe alchemy toolkit + flash builder + flex SDK 1. Install cygwin Cygwin http://www.cygwin.com/setup.exe download Next, the package is selected by default. Note the following: 1. It is the location. The zip package under archive, GCC/g ++ under devel, and Perl must all be downloaded. 2. It's Perl. Just click Install on the outside of the file. You don't need to expand it to select one by one. Ii. Download alchemy Go to http://labs.adobe.com/downloads/alchemy.htmlto download alchemy Toolkit 3. Download the flex SDK You have installed Iv. Configure the environment Go to www.java.com to download the Java Virtual Machine. The machine has installed Java. skip this step. Decompress the Adobe Flex SDK to the C-drive root directory and rename it to flex. Note that the flex directory contains bin and other directories. Decompress alchemy to the C root directory and rename it to alchemy. Note that the directory under alchemy is directly bin. Modify the profile file under the c: \ cygwin \ etc directory and add the bin directory of the Flex SDK to the path of cygwin. Like this Path =/usr/local/bin:/usr/x11r6/bin:/cygdrive/C/flex/bin: $ path The red part is newly added. Open cygwin and switch to the alchemy directory. The path to the alchemy directory is/cygdriver/C/alchemy. In cygwin, CD is the directory, and CD... is returned to the upper-level directory. For detailed commands about Bash, please search Baidu. Run. /config, and enter the following code according to the echo prompt, and press enter (if you do not enter the following code in cygwin, enter the following code; the following prompt is displayed) Source/cygdrive/C/alchemy-Setup Disable cygwin. Edit the alchemy-setup file in the C: \ alchemy directory (this file is generated by executing the./config command) Change # export ADL =/path/to/fyou/bin/ADL (or adl.exe) to export ADL =/cygdrive/C/flex/bin/adl.exe, note: Remove # annotator Edit bash in the C: \ cygwin \ etc directory. bashrc file, add the following three lines at the end of the file (Be sure to open it with the UE Editor, copy the line break at the end of all the text in the file, and paste it to the end of the next two lines) Source/cygdrive/C/alchemy-Setup Path = $ alchemy_home/achacks:/cygdrive/C/flex/bin: $ path Export path Open c: \ cygwin, switch to the/cygdriver/C/alchemy/bin directory, and execute the following command: (the creation failure llvm-stub.exe may be prompted. Ignore this) Ln-s llvm-stub llvm-stub.exe Run Alb-on; Which gcc Switch to the project directory of C and run it (of course, you can use the sample provided by Adobe for testing, the directory is/cygdriver/C/alchemy/samples/stringecho ): Run Gcc-O3-wall-SWC stringecho. C-o stringecho. SWC If the operation succeeds, the two rows are displayed. $ GCC stringecho. C-O3-wall-SWC-O stringecho. SWC Warning: while resolving call to function 'main' arguments were dropped! The result is as follows: [Compiler] Error #1063: Unable to open file:/cygdrive/C/alchemy/flashlibs/global. ABC. [Compiler] Error #1063: Unable to open file:/cygdrive/C/alchemy/flashlibs/playerglobal. ABC. The generated SWC is obviously not just a few K, and you have to change it after checking it: Http://forums.adobe.com/thread/201580 Open hacks. pl under \ alchemy \ achacks If ('uname' = ~ /Cygwin /) Change If ('/bin/uname' = ~ /Cygwin /) Then execute the GCC line. |