Struggling with ndll

66 views
Skip to first unread message

François Barbut

unread,
Mar 21, 2017, 6:12:59 AM3/21/17
to Haxe
Hi,

I'd like to request APIs thru HTTPS in my neko project. (neko runs on a ubuntu 64 VM.)

Usually I call directly a cURL process via haxe.io.Process but this time, it doesn't work for a mysterious reason.

I tried to use hxsslhttps://github.com/tong/hxssl ) but the hxssl.ndll crashes the process.

I get this in the apache error log : 
Could not link to neko.
Could not link plugin to process (hxCFFILoader.h 670)

I tried to use hx-curlhttps://bitbucket.org/yar3333/haxe-curl )

curl.ndll is correctly located in /usr/lib/neko/  with correct rights but ...

Uncaught exception - load.c(237) : Failed to load library : /usr/lib/neko/curl.ndll (libneko.so: cannot open shared object file: No such file or directory)

Called from neko/Curl.hx line 277

What could I do to make it work with either hxssl or hx-curl ?


François Barbut

unread,
Mar 21, 2017, 6:31:20 AM3/21/17
to Haxe

I got some progress with hx-curl :

libneko.so didn't exist on the system , I fixed this with a simlink ...

lrwxrwxrwx 1 root root     25 Mar 21 10:26 /usr/lib/libneko.so -> /usr/lib/libneko.so.2.1.0
lrwxrwxrwx
1 root root     16 Jun 12  2016 /usr/lib/libneko.so.2 -> libneko.so.2.1.0
-rw-r--r-- 1 root root 105600 Jun 12  2016 /usr/lib/libneko.so.2.1.0


 

Ben Merckx

unread,
Mar 21, 2017, 7:13:37 PM3/21/17
to Haxe
Neko 2.1.0 should come with mbedtls and allow haxe 3.3+ to make secure requests without using hxssl/hx-curl (using haxe.Http).
Reply all
Reply to author
Forward
0 new messages