tong / hxssl

Haxe→C++/Neko OpenSSL bindings
30 stars 45 forks source link

Failed to load library #40

Closed MatthijsKamstra closed 9 years ago

MatthijsKamstra commented 9 years ago

I am getting this error with Neko target, even with this simple example https://github.com/tong/hxssl/tree/master/examples/03-https

Called from sys.ssl._Socket.SocketInput::socket_recv_char line 68
Uncaught exception - load.c(237) : Failed to load library : hxssl.ndll (dlopen(hxssl.ndll, 1): image not found)

On osx with hxssl version: 3.0.0-alpha

hexonaut commented 9 years ago

Looks like hxssl.ndll is not in your library path. You will need to copy or link the Mac ndll to a library directory. I'm not familiar with Mac, so I'm not sure which directory this would be.

MatthijsKamstra commented 9 years ago

Hi @Blank101, thx for responding! You are talking about this directory: https://github.com/tong/hxssl/tree/master/ndll And this is automatically installed via haxelib. So I am not sure what I need to do besides adding it to my build.xml.

<haxelib name="hxssl" />

Is this problem related to my haxe version: Haxe Compiler 3.1.3?

I have tried to rebuild the lib

lime rebuild hxssl ios
lime rebuild hxssl neko

but it didn't seem to have any effect.

hexonaut commented 9 years ago

Ah, wasn't aware you were using OpenFL. I don't use OpenFL, so my knowledge of how it works is very limited. You may want to talk to the OpenFL people for this as this doesn't seem to be a hxssl issue.

MatthijsKamstra commented 9 years ago

Hi again,

I can confirm it has something to do with Openfl. The same code works fine with a .hxml build.

thx

MatthijsKamstra commented 9 years ago

I have no idea what I changed, but suddenly it works in Openfl as well. Except Neko target; it crashes

Tried to add it in the build.xml

<ndll name="hxssl" haxelib="hxssl" />

but when I removed it again, it still works with a Mac target...