-
Clone Flow9 repository
git clone https://github.com/area9innovation/flow9
-
Add
flow9/bin
toPATH
in.profile
& relogin into system:PATH=$PATH:/path/to/flow9/bin
-
Install Java 8 Runtime Environment to run
flowc1
.Your distro may have this package in repositories, called
openjdk-8-jre
orjre8-openjdk
. -
Install Haxe 3.4.7 to be able to compile into js target.
Your distro may have it too, or check the haxe website.
-
Run
haxelib setup
and specify the path for haxe libraries. -
Run
haxelib install pixijs 4.7.1
to install PixiJS required for canvas rendering in js.
Now you're ready to compile flow programs to js target like so:
flowc1 js=flow_program.js html=flow_program.html flow_program.flow
Open flow_program.html
in browser to see the result. Check browser console for output.
If you need to rebuild the flowc1
binary:
-
Install Java 8 Development Kit to install
javac
that can compileflowc1
.Your distro may have this package in repositories, called
openjdk-8-jdk
orjdk8-openjdk
. -
Change to flow9 directory & run
build-flowc
.
Setup haxe by performing step 5
Install pixijs by performing step 6