https requests with Haxe 3.4 on MacOS

45 views
Skip to first unread message

Andreas Jung

unread,
Feb 12, 2017, 5:16:11 AM2/12/17
to Haxe
Hi,

tried to compile this code on Mac

class Main {
  static public function main():Void {

    var output = haxe.Http.requestUrl('https://plone.org');
    trace(output);
  }
}

to Python.

Error:

__main__._HxException: Https is only supported with -lib hxssl

So I installed

haxelib install hxssl

and recompiled

haxe -main Main -python o.py -lib hxssl

axe -main Main -python o.py -lib hxssl
/usr/local/lib/haxe/lib/hxssl/3,0,0-alpha/sys/ssl/Socket.hx:335: characters 9-12 : Type not found : Lib
/usr/local/lib/haxe/lib/hxssl/3,0,0-alpha/sys/ssl/Socket.hx:334: lines 334-336 : Missing return: Dynamic
/usr/local/lib/haxe/lib/hxssl/3,0,0-alpha/sys/ssl/Socket.hx:338: characters 33-36 : Type not found : Lib

How to fix that?

Andreas
Reply all
Reply to author
Forward
0 new messages