-
-
Notifications
You must be signed in to change notification settings - Fork 379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Builds with HXP Project files are not more possible in Lime begining from 7.4.0 #1333
Comments
I believe that this is supervention of that refactoring 20f626d |
Fast fix before patch is to make a copy of |
Have you tried updating to the latest HXP and doing a lime rebuild tools? |
Everything is up to date. Installed from scratch. Actually, I did a research and the result of that research in the comments above. I solved the situation for my own case. And hope you guys will solve it in next release. The problem, obviously, in libraries folder name and foregoing refactoring. |
I had the same issue in Windows when I first upgraded lime to 7.5.0. I solved it the same way you did by copying the lib folder. When I started to debug it, I realized that my HXP was out of sync. After updating, I no longer experience this problem in Windows. |
Yesterday I installed all from scratch.
as far as I see here, |
May be you should try to do the same, I mean a clean install. I guess you will see the bug as it is. |
I'm having the same issue. |
It still here. In current release it can be solved by coping folder
|
I'm not having this issue using current Lime + OpenFL haxelib releases. Perhaps the issue may occur if you have an old Lime dev version with a "lib" directory? "lib" is not included in current releases |
Please, read my last comment above yours. There is no reference to lib folder in there. The bug is still reproducible with initial conditions mentioned in the first post with the latest environment installed from scratch which is Openfl 8.9.6 and Lime 7.7.0. Ad-hoc fix is to make a copy of |
Does this still happen in 7.9.0? (Like Joshua, I can't reproduce the issue.) |
This still happens for me on Windows with lime 7.9.0 and openfl 9.1.0, haxe 4.2.5. Linux works fine. Here's a repo that is PiratePig with an
The suggested workaround of copying |
Well that error isn't very informative. That's annoying. Here's a way to get a little more info: > set OPENFL_LOAD_DEBUG=1
> openfl build html5 (Note: But I doubt even that will be enough. If I'm reading the source code correctly, the only difference is it'll print "Result : null" before crashing with the same message. What I believe to be the problem section has no logging. Solution: let's insert our own logging. if (result == null)
{
trace("========================= " + library + "@" + method + " =========================");
trace(__sysName());
var slash = (__sysName().substr(7).toLowerCase() == "windows") ? "\\" : "/";
trace(slash);
var haxelib = __findHaxelib("lime");
trace(haxelib);
if (haxelib != "")
{
trace(haxelib + slash + "ndll" + slash + __sysName() + slash + library);
result = __tryLoad(haxelib + slash + "ndll" + slash + __sysName() + slash + library, library, method, args);
trace(result);
if (result == null)
{
trace(haxelib + slash + "ndll" + slash + __sysName() + "64" + slash + library);
result = __tryLoad(haxelib + slash + "ndll" + slash + __sysName() + "64" + slash + library, library, method, args);
trace(result);
}
}
} Once the logging is added, make sure to run |
Sorry for bumping this, but it still occurs in Lime 8.0.0. I can't build a simple hxp project on Windows (11, 64-bit), I get the same error like in the original post. (NativeCFFI.hx line 613) I'd be happy to copy the required ndll's to wherever they're needed, but I'm afraid that's not something I can ask for the rest of the team/testers to do, so a solution would be great. The HXP project is such a powerful thing, but currently unusable (works flawlessly on macOS, though) Thanks. |
I recall discussing a similar issue last year. If it really is the same, you might be able to fix it by adding Failing that, the easiest answer seems to be copying lime.ndll. Either copy lime/ndll/ into lime/src/ as mentioned above, or copy lime.ndll in particular into the same folder as project.hxp. |
Update: #1615 is about to be released, so from now on our official answer can be "compile with Closing this because the original problem (HXP projects not working on some devices) is resolved. That said, if anyone finds any information about what's wrong with Neko, we could start a new issue for that. |
Hi everybody,
besides that the documentation for HXP project file is not consistent with the reality (package names, fields), the possibility of building project with HXP has been broken at all in version 7.4.0.
Command:
haxelib run lime build Project.hxp flash -verbose
The code:
Result:
Downgrading to 7.3.0 solves the problem.
The text was updated successfully, but these errors were encountered: