-
-
Notifications
You must be signed in to change notification settings - Fork 36
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
Build error under Linux #13
Comments
Hi, this part seems suspicious: Flutter artifact location path at "/bin/cache/artifacts/engine/linux-x64" does not exist! Try running 'flutter precache' The path should not start with /bin. It should start with wherever "flutter" executable is. But if "flutter" is not in PATH, the error message you got should have been completely different (Please make sure that flutter is in PATH). What does your PATH look like? I'm curous why flutter location in your case resolved in empty string. |
It looks like flutter lives in The symlink doesn't look necessary because Thanks for the quick answer. |
Removing the symlink did the trick. Not sure what to do with this issue then :-). Maybe the code should try to follow symlinks to resolve the path to flutter? |
I see where the problem is. I really didn't expect that there'd be symlink to wherever flutter is installed. Normally the way to install flutter is to add [flutter_root]/bin to PATH. Apparently that's not always the case. I think the best way to fix this should be resolve flutter if it is symlink when searching for artifacts. |
I think this should do the trick. I'll just need to test it on all platforms before publishing updated crate. |
Aha, I was looking at the code and just arrived at the same conclusion: adding canonicalize should do the trick. I will test your fix and test and report if it works for me. |
After reinstating the symlink and checking that it still fails on the previous version, I can report that commit 10ea0de indeed fixes the problem :-). Feel free to close this issue now or when the updated crate is published. |
Thank you for confirming this. I published updated crate so I'm closing this issue. |
Hello!
Thanks for making nativeshell! It had me very curious, so following the README I cloned the example repository and tried to run it, only to find the following output:
I installed flutter, enabled desktop support and switched to the master channel following the readme, here is the output of
flutter doctor
:Running
flutter -v create hello_world
followed by aflutter run -d linux
does result in me seeing the flutter hello world in my linux.I also tried
flutter precache
like recommended, and it did something the first time around (not on subsequent runs), but this doesn't appear to solve the problem.Anything I can do to fix the build?
I'm running manjaro with kernel 5.10.36-2.
I'm new to flutter, so apologies if I misstepped!
The text was updated successfully, but these errors were encountered: