I’ve recently started playing with Adobe Alchemy, a beta project for compiling C/C++ libraries into Actionscript.

I was having problems compiling the sample app – the GCC couldn’t find the Actionscript libraries and I was seeing a duplication in the path:

cc1 error: /usr/lib/alchemy/usr/lib/alchemy/avm2-libc/avm2/AVM2Env.h

I posted it up on the Alchemy forums and it would seem I wasn’t the only one experiencing this problem.

Turns out it’s an unnecessary Perl hack, in the hacks.pl script in the /alchemy/achacks/ directory.

Commenting out the following lines of the pfix function:

$p =~ s/(^|^-[-\w]+=?)(\/usr\/include\/)/$1${home}\/avm2-libc\/include\//;
$p =~ s/(^|^-[-\w]+=?)(\/usr\/)/$1${home}$2/;

and it stops the incorrect ‘fix’ of the file path.

Try again, and the SWC compiles. Who says forums don’t work? There’s a lot of excitement about this project, glad to see them so active.

One Comment

  1. Thanks for this tip, I couldn’t figure it out myself. Oddly enough I didn’t run into this error when I built alchemy on another machine. I think the key difference was that I specified the paths as a windows location on the cygdrive on the other machine.


One Trackback/Pingback

  1. By Find a Way « Marc Hibbins on 03 Dec 2008 at 11:28 am

    [...] Design & Development AboutSemantic Web « I Know There’s an Answer The Fix [...]

Is a dream a lie if it don’t come true, or is it something worse?