Error compiling OpenFL/Flixel Project. Failed to load library : lime.ndll in Ubuntu

I’m trying to finish a code project on my desktop running ubuntu, but I get this every time i try to compile with lime on my flixel project (I have set it to be OpenFl/Lime 3.6.1/2.9.1):
Error embedding “/usr/share/haxelib/flixel/4,2,1/assets/fonts/nokiafc22.ttf”: load.c(237) : Failed to load library : lime.ndll (lime.ndll: cannot open shared object
file: No such file or directory)
Error embedding “/usr/share/haxelib/flixel/4,2,1/assets/fonts/monsterrat.ttf”: load.c(237) : Failed to load library : lime.ndll (lime.ndll: cannot open shared object
file: No such file or directory)
/usr/share/haxelib/flixel/4,2,1/flixel/system/macros/FlxDefines.hx:94: characters 53-57 : Please run ‘haxelib set openfl 3.6.1’ (Flixel is currently incompatible wit
h OpenFL 4.0.0 or newer).

The same project has no trouble in Windows. https://github.com/jrdoughty/devilstears
Have you guys ever seen this?

Are you using Lime from the source?

Can you make sure that lime.ndll is present for Linux?

I do in the 2.9.1 folder, but I’m noticing this when I I use haxelib list:
actuate: [1.8.7]
box2d: [1.2.3]
flixel-addons: [2.3.0]
flixel: [4.2.1]
format: [3.3.0]
haxelib: [3.3.0]
hxcpp: [3.4.64]
layout: [1.2.1]
lime-samples: [4.0.1]
lime: 2.9.1 git [dev:/usr/share/haxelib/lime/git]
openfl-samples: [4.9.0]
openfl: 3.6.1 git [dev:/usr/share/haxelib/openfl/git]

Its pointing to the git versions it seems despite my having used haxelib set lime 2.9.1 etc

Try and run haxelib dev lime then haxelib dev openfl

Made a difference it seems for openfl, but lime is not off of git.

I’m getting this:
dragon@dragon-desktop:~/Documents/Projects/devilstears$ sudo haxelib dev lime
Development directory disabled

my new list results:
dragon@dragon-desktop:~/Documents/Projects/devilstears$ haxelib list
actuate: [1.8.7]
box2d: [1.2.3]
flixel-addons: [2.3.0]
flixel: [4.2.1]
format: [3.3.0]
haxelib: [3.3.0]
hxcpp: [3.4.64]
layout: [1.2.1]
lime-samples: [4.0.1]
lime: 2.9.1 [git]
openfl-samples: [4.9.0]
openfl: [3.6.1] git

Try haxelib set lime 2.9.1 now, or if that fails, haxelib remove lime git

Boom! We’re in business! Thanks for the hand! I was scratching my head WAY too long on that.

1 Like