|
for the C/C++/Linux n00b SETUP HELL: install cygwin to "c:\cygwin": make sure to check boxes to install Perl, "Archive" (ZIP), and Devel/gcc:g++ (3.4.4.3 presumably) (is Perl necessary?) copy the alchemy directory to: c:\cygwin\home\Lee copy the flex sdk bin dir from c:\program files\etc. to "c:\flex" (to avoid paths with spaces in it!) run the alchemy config script once: run cygwin cd alchemy ./config edit the textfile "C:\cygwin\home\Lee\alchemy\alchemy-setup" uncomment and edit line 22 to: add "export ADL=c:\flex\adl.exe" edit .bashrc (in C:\cygwin\home\Lee) echo "LEE PROFILE" export FLEX_HOME=~/flex export ALCHEMY_HOME=~/alchemy # "This should be added before your PATH is modified" !! source /home/Lee/alchemy/alchemy-setup PATH=$ALCHEMY_HOME/achacks:/home/Lee/flex:$PATH export PATH alc-on Do this (just once, I think): cd $ALCHEMY_HOME/bin ln -s llvm-stub llvm-stub.exe COMPILING A SWC: cd to the directory with the source always do "alc-on" before compiling, cuz it doesn't work without it even though i added it to the startup (dunno) gcc stringecho.c -O3 -Wall -swc -o stringecho.swc -- should give you a swc. import the swc into your flex builder 4 project make sure compiler targets SDK v4 go to town. SHORTCUTS "alc-home" takes you to the Alchemy install folder. "alc-on" puts Alchemy gcc toolchain replacements at the front of your path. "alc-off" restores original path. "alc-util" shows you various Alchemy-related environment vars USEFUL TO KNOW "which gcc" - tells you which gcc it will use (should be the one in the achacks dir) ln - links shit rm - deletes links as well as files Ugh: Make sure to do "alc-on" and "alchemy-setup" even though you put it in the startup script :( (?) ... Objects: AS3_Val AS3_ArrayValue Methods: AS3_Release AS3_LibInit Now what? |
|
Page last modified on December 23, 2008, at 09:55 PM
|
|