[haXe] Having trouble getting started
Henk Boom
lunarc.lists at gmail.com
Thu Jan 4 01:42:27 CET 2007
Hi, I'm trying to get started using haXe to create flash files, but
I'm having a few problems.
I first tried to install the linux binary, but it refused to work
(complained about needing a newer glibc than I had around), so I
compiled and installed it from source following the instructions at
http://haxe.org/compile . One thing I noticed is that the following
line from the linux section of the tutorial:
> sudo cp haxe/bin/* /usr/local/haxe/bin
Should probably be:
> sudo cp bin/* /usr/local/haxe/bin
As there is no haxe/bin as there is a haxe/std, but there is a ./bin
Now the haxe executable seems to run fine, but look what happens when
I try to compile the tools:
> henk at henk-linux ~/local/haxe/std/tools/haxedoc $ haxe haxedoc.hxml
> /home/henk/local/haxe/std/Hash.hx:200: characters 3-9 : StringBuf has no field add2
and
> henk at henk-linux ~/local/haxe/std/tools/haxelib $ haxe haxelib.hxml
> /home/henk/local/haxe/std/Hash.hx:200: characters 3-9 : StringBuf has no field add2
> /home/henk/local/haxe/std/IntHash.hx:191: characters 3-9 : StringBuf has no field add2
Slightly discouraged, I tried the hello world tutorial at
http://haxe.org/tutos/start/flash . However, something doesn't seem to
be working right:
> henk at henk-linux ~/dev/haxe/helloworld $ ls
> compile.hxml Test.hx
> henk at henk-linux ~/dev/haxe/helloworld $ cat Test.hx
> class Test {
> static function main() {
> trace("Hello World !");
> }
> }
> henk at henk-linux ~/dev/haxe/helloworld $ cat compile.hxml
> -swf test.swf
> -main Test
>
> henk at henk-linux ~/dev/haxe/helloworld $ haxe compile.hxml
> Class not found : Test
I'm not sure what I'm doing wrong, does anyone have any suggestions?
Henk Boom
More information about the Haxe
mailing list