Menu:

Sponsor

Discover Master of Alchemy, our first iPad/iPhone and iPod touch game!

Follow Me

 

Forum's topics

Latest Files

Archives

Top Rated

Categories

Photo Gallery


Alessandro Crugnola on January 7, 2010 in actionscript

Alchemy installation problems under OSX

I’m writing this little issue I discovered today in the alchemy installation under OSX, in case someone else is having the same problem…

In fact, today I decided to makes a little swc library for an actionscript project using alchemy ( because of the lacks of union in flash ), so I downloaded the alchemy toolkit for OSX.
I spent a couple of hours trying to make it working on my Snow Leopard and because I’m not a shell and perl expert I finally moved to the linux toolkit under ubuntu ( even if on linux the Flex builder is really far to be usable!)

Anyway, this evening I decided to spend some more time trying to understand why when I was trying to execute the alchemy “gcc” script ( the ones inside the achacks folder, which is a perl script) nothing happened.
After long time with old style “print” debugging strategy, at the end I discovered an error in the “config” script in the main alchemy installation folder.

At this line (line 33):
if echo $MACHTYPE | grep darwin &> /dev/null; then

I had to modify it into:
if echo $MACHTYPE | grep -i darwin &> /dev/null; then

because the command “echo $MACHTYPE” outputs “x86_64-Apple-Darwin”, with the uppercase “D”.

In fact, after that modification everything finally worked!

 

Bookmark and Share

 

Tags: alchemy , darwin , gcc , grep , osx 

 

1 comments
If you want to do Alchemy without C/C++, you can use haXe which maps the Alchemy optimized opcodes into the flash.Memory API, see http://ncannasse.fr/blog/virtual_memory_api


Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)


Type the characters you see in the picture above.





 

TrackBacks

TrackBack URL for this entry: http://www.sephiroth.it/cgi-bin/mt/mt-tb.cgi/278