I’m using Ubuntu 18.04 LTS and installed Haxe using the following command:
sudo apt-get install haxe
Then, I installed openfl and lime:
haxelib install openfl
haxelib install lime
After that I created a sample project using:
openfl create project
Finally, I tried to compile it running:
openfl build flash
And I’m getting the following:
/usr/lib/haxe/std/haxe/macro/Context.hx:210: characters 9-42 : Invalid input value
/usr/lib/haxe/lib/openfl/8,0,2/src/openfl/_internal/utils/ExtraParams.hx:13: characters 7-32 : Called from
–macro:1: character 0 : Called from
Aborted
I also tried building using the html5 target but got a segmentation fault.
Haxe version is 3.4.4.
OpenFL and Lime versions are 8.9.0 and 7.3.0, respectively.
I tried downgrading OpenFL and Lime to 8.0.2 and 6.3.1, but still got the same error.
Yes, that was the output of when I tried to downgrade the OpenFL version to 8.0.2.
The output is the same for 8.9.0:
/usr/lib/haxe/std/haxe/macro/Context.hx:210: characters 9-42 : Invalid input value
/usr/lib/haxe/lib/openfl/8,9,0/src/openfl/_internal/macros/ExtraParams.hx:12: characters 7-31 : Called from
–macro:1: character 0 : Called from
Aborted
Welcome to openfl
There are 2 nice articles covering it:
Start here https://www.openfl.org/download/
for example you didnt mention you did “haxelib run openfl setup”, also read the special linux-instructions