I tried it. Although no errors but I still do not rebuild the lime. I tried to change source C in folder legacy\project\src\ but it does not work at all.
d:\DevTools\HaxeToolkit>haxelib dev lime d:\DevTools\HaxeToolkit\lib\lime\2,0,6\
Development directory set to d:\DevTools\HaxeToolkit\lib\lime\2,0,6
d:\DevTools\HaxeToolkit>haxelib install format
You already have format version 3.1.2 installed
Set format to version 3.1.2 [y/n/a] ? a
Library format current version is now 3.1.2
d:\DevTools\HaxeToolkit>lime rebuild windows -Dlegacy -verbose
___
/\_ \ __
\//\ \ /\_\ ___ ___ __
\ \ \ \/\ \ /' __` __`\ /'__`\
\_\ \_\ \ \/\ \/\ \/\ \/\ __/
/\____\\ \_\ \_\ \_\ \_\ \____\
\/____/ \/_/\/_/\/_/\/_/\/____/
Lime Command-Line Tools (2.1.0)
Initializing project...
Reading HXCPP config: C:\Users\CPU10664-local\.hxcpp_config.xml
Using target platform: WINDOWS
Running command: REBUILD
d:\DevTools\HaxeToolkit>lime rebuild tools -verbose
- Changing directory: d:\DevTools\HaxeToolkit\lib\lime\2,0,6,67\tools
- Running command: haxe tools.hxml
The Changing directory: d:\DevTools\HaxeToolkit\lib\lime\2,0,6,67\tools don’t really match with your d:\DevTools\HaxeToolkit\lib\lime\2,0,6, strange.
And since I’m guessing the directory doesn’t exists that could explain why the rebuild stopped early.
Did you clone to the lib\lime\2,0,6 directory? It’s a bit peculiar to clone it there, and could interfere with haxelib.
You could try the command lime rebuild lime windows -Dlegacy, it should skip the tools and could allow the rebuild to happen.
When cloning Lime with Git did you include the submodules? Curl is a separate repository included as a link and it needs certain flags ( I think the --recursive clone options should do it but not entirely certain) to pull properly. You could try running this:
But since he’s trying to rebuild the legacy ndll it shouldn’t have been an issue, I guess the lime rebuild lime doesn’t take -Dlegacy into account.
Maybe try cloning in a different location than the haxelib directory and retry with that.
cd /c/Development/Haxe
git clone https://github.com/openfl/lime
cd lime
git submodule init
git submodule update
cd ..
haxelib dev lime lime
git clone https://github.com/openfl/openfl
haxelib dev openfl openfl
haxelib run lime rebuild windows
haxelib run lime rebuild tools
haxelib run lime setup
lime rebuild windows -Dlegacy
You can use --recursive when cloning Lime, but I usually forget
You can shorten haxelib run lime to just lime and skip setup if you already have the lime shortcut
Of course, you need a copy of Visual Studio C++ installed on Windows to build any C++ files. I also have to run these commands from “Git Bash” (after installing https://git-scm.com/download/win)
Thank all your help!
Tomorrow, I will try it.
Explain a bit, when I rebuild, it really works.
But when I try to create a syntax error in the src of Lime legacy and try rebuild, it still work.
I tried again rebuild with -clean and it is no error message at all.