Haxelib run openfl setup issue

Hi folks, I manually installed openfl with (haxelib local D:\SDK\openfl-4,3,1.zip; haxelib local D:\SDK\lime-3,3,0.zip) because haxelib had some issue with my network, IMHO, how can I setup openfl manually?


haxelib run openfl setup prints Blocking.

how to solve this problem? Thanks…

1 Like

openfl setup attempts to install (or update) the following:

  • openfl
  • openfl-samples
  • actuate
  • box2d
  • format
  • swf
  • lime
  • lime-samples
  • hxcpp

These are not all required to have a working install, OpenFL requires Lime, and for SWF assets, requires the SWF library.

“openfl-samples” and “lime-samples” provide the samples used for openfl create and lime create, some of the samples use either Actuate, Box2D the “layout” or “format” library.

HXCPP is needed for C++ builds, and in the latest haxelib release, is still used for storing configuration XML (such as for the Android target)

The final step of “setup” copies “openfl.sh” (renaming as “openfl”) and “openfl.exe” from “openfl/templates/bin” to the Haxe install directory (usually C:\HaxeToolkit\haxe). It also copies similar files from “lime/templates/bin” for the “lime” command

can I manually copy this files? and I can’t call openfl from cmd
prints: openfl’ is not recognized as an internal or external command

Thanks for advice

The openfl and lime commands are shortcuts for haxelib run openfl or haxelib run lime, if you want, you can copy those files manually, since “C:\HaxeToolkit\haxe” is in the PATH by default. That should make things a bit easier

1 Like

thanks, solved with haxelib run openfl command

but why it works with haxelib run openfl and not just openfl ?

Try this:

  1. Open your Haxe folder (C:/HaxeToolkit/haxe by default).
  2. Create a new text file.
  3. Open the text file and paste “@haxelib run openfl %*” (no quotes).
  4. Rename the text file to “openfl.bat” (replacing the “.txt” part). Say yes when it asks for confirmation.

You should now be able to use the openfl command.

@player_03 thanks a lot, it works

But what about macos ? copy openfl.sh to /usr/local/lib/haxe (rename to openfl) , but not works

run haxelib run openfl setup.

Hi
I installed openfl manually (since it always timeout )
the same issue when run haxelib run openfl setup
Any solution?
Is there a way run haxelib run openfl setup without update ? (I’ve installed lime manually)

tang@192 ~ % haxelib run openfl setup

Failed. Triggering retry due to HTTP timeout

Failed. Triggering retry due to HTTP timeout

retry sucessful

lime is up to date

Failed. Triggering retry due to HTTP timeout

Failed. Triggering retry due to HTTP timeout

Failed. Triggering retry due to HTTP timeout

hxcpp is up to date

Failed. Triggering retry due to HTTP timeout

Failed. Triggering retry due to HTTP timeout

retry sucessful

Failed. Triggering retry due to HTTP timeout

Failed. Triggering retry due to HTTP timeout

retry sucessful

Downloading lime-samples-7,0,0.zip...

Download complete: 0KB in 15.6s (0KB/s)

Failed to download https://lib.haxe.org:443/files/3.0/lime-samples-7,0,0.zip. (1/3)

Blocked

Download complete: 0KB in 11.3s (0KB/s)

Failed to download https://lib.haxe.org:443/files/3.0/lime-samples-7,0,0.zip. (2/3)

Blocked

Download complete: 0KB in 12.4s (0KB/s)

Download complete: 0KB in 10s (0KB/s)

Failed to download https://lib.haxe.org:443/files/3.0/lime-samples-7,0,0.zip. (3/3)

SSL - The connection indicated an EOF

Error: [file_open,/usr/local/lib/haxe/lib/lime-samples-7,0,0.zip]

tang@192 ~ %

This should be the failure of haxelib. You can manually install the required libraries, such as lime-samples-7,0,0.

issue:https://community.haxe.org/t/http-timeout-how-do-i-fix-it/3476/2