openfl / lime

A foundational Haxe framework for cross-platform development
https://lime.openfl.org/
MIT License
761 stars 376 forks source link

Cant compile simple Lime projects for Mac #324

Closed DanielUranga closed 9 years ago

DanielUranga commented 9 years ago

Im using latest git versions of hxcpp and lime, both built following instructions (lime rebuild tools, lime rebuild mac, etc), OS X 10.10.1 Yosemite.

haxelib list
...
hxcpp: 3.0.0 3.0.2 3.1.30 3.1.37 3.1.39 3.1.48 [dev:/Users/dokkogroup/Documents/haxe/hxcpp]
lime:  2.0.1 2.0.4 2.0.5 [dev:/Users/dokkogroup/Documents/haxe/lime]
....

64-bits neko:

DokkoGroups-MacBook-Pro:TextRendering dokkogroup$ whereis neko
/usr/bin/neko
DokkoGroups-MacBook-Pro:TextRendering dokkogroup$ file /usr/bin/neko
/usr/bin/neko: Mach-O 64-bit executable x86_64

But when I try to build for mac:

DokkoGroups-MacBook-Pro:HelloWorld dokkogroup$ lime test mac
Called from openfl/_v2/utils/ByteArray.hx line 757
Called from openfl/_v2/Lib.hx line 248
Called from openfl/_v2/Lib.hx line 391
Called from openfl/_v2/Lib.hx line 193
Called from /usr/lib/haxe/std/neko/Lib.hx line 30
Uncaught exception - load.c(237) : Failed to load library : lime.ndll (dlopen(lime.ndll, 1): image not found)

Building for neko works ok though:

DokkoGroups-MacBook-Pro:HelloWorld dokkogroup$ lime test neko
Main.hx:15: Hello World
jgranick commented 9 years ago

Did you run the following?

lime rebuild mac
lime rebuild mac -Dlegacy
DanielUranga commented 9 years ago

I was missing "lime rebuild mac -Dlegacy", I think that should be documented in the "Building from source" section in Readme.md

jgranick commented 9 years ago

https://github.com/openfl/lime/commit/32d2d48 :smile: