OpenFL and Lime not starting due to segmentation error

I recently discovered (on Mac OS X Mavericks) OpenFL and LIME (with command line tools) not working due to a “segmentation error”.

Before I go into more detail, here is a little background.

  • I originally received Haxe + Neko from the installer provided from the OpenFL website.
  • I installed OpenFL from the instructions.
  • Later, when using standard Haxe encoding, I need Neko, but it was not installed explicitly.
  • I installed Neko from the Neko website.

And now, I get this error when I enter lime or openfl or using any of their functions (e.g. create):

 Called from lime/utils/ByteArray.hx line 109 Called from lime/system/System.hx line 286 Called from lime/system/System.hx line 405 Uncaught exception - Segmentation fault 

Anyway, I don’t know if the background has anything with this. I looked in the Ubuntu forums, but nothing worked for me. Any help would be greatly appreciated; I cannot find much in "similar questions" or anywhere else for that matter.

Haxe 3.1.3 compiler + OpenFL 3.0.0 beta. (As described by haxelib upgrade .)

+6
source share
1 answer

Neko is not initializing on your computer. When Lime loads, it tries to call neko_init in lime.ndll and fails. This can be caused by several things, so follow a few steps to verify.

  • Entering neko in the terminal should display version information. Before continuing, make sure it says 2.0.0. You can also display where neko executes the command with the command which neko . This is usually a symlink from /usr/lib/neko/neko to /usr/bin/neko .
  • The file std.ndll was not found. Usually this file and other standard neko ndll files are located in /usr/lib/neko . Make sure you have the NEKOPATH environment variable pointing to this directory.
  • If the above seems to be correct, you can completely remove Haxe and Neko and reinstall. Instead of using the installer from the OpenFL website, you might be luckier with haxe.org . It must have neko complete with the installer version.
+3
source

Source: https://habr.com/ru/post/984405/


All Articles