Blog

I write code, this blog is a dream.

2014.11.11Old openfl project, one year later, will it blend?

Two months ago I wanted to do a small update to my old game Miliworlds but I failed to install a working openfl environment and had no time to fight the system.

Tonight I decided to fix the problem.

After installing and uninstalling things and searching the web it turned out the problem came from a bad combination of haxe and hxcpp versions (Thank you IRC log):

  • haxe 3.2.0
  • hxcpp 3.1.39

I had to install github's version of hxcpp and recompile a few platforms:

haxelib git hxcpp http://github.com/HaxeFoundation/hxcpp
cd `haxelib config`
cd hxcpp/git/project
neko build.n clean
neko build.n
neko build.n android
neko build.n ios

I also had to add a -Dlime-legacy flag at the end of each command call so lime wouldn't complain about missing haxelib/lime/2,0,0-alpha,8/ndll/IPhone/liblime.iphoneos.a (I am pretty sure I can find a way to compile that but adding the -Dlime-legacy just worked so why bother:).

lime test project.xml ios -simulator -ipad -Dlime-legacy

Since the problem was due to my non-standard setup, it looks like openfl grew stabler during the year. That's good news.