go-flutter-desktop / go-flutter

Flutter on Windows, MacOS and Linux - based on Flutter Embedding, Go and GLFW.
https://hover.build/
BSD 3-Clause "New" or "Revised" License
5.84k stars 286 forks source link

can not run any demo #691

Open no-bibi opened 11 months ago

no-bibi commented 11 months ago

Hover doctor

➜  pointer_demo git:(master) hover doctor
hover: Hover version v0.47.2 running on darwin
hover: Sharing packaging tools
hover: darwin-bundle is supported
hover: darwin-dmg is supported
hover: darwin-pkg is supported
hover: Packaging linux-appimage is not supported on darwin
hover: To still package linux-appimage on darwin you need to run hover with the `--docker` flag.
hover: Packaging linux-deb is not supported on darwin
hover: To still package linux-deb on darwin you need to run hover with the `--docker` flag.
hover: Packaging linux-pkg is not supported on darwin
hover: To still package linux-pkg on darwin you need to run hover with the `--docker` flag.
hover: Packaging linux-rpm is not supported on darwin
hover: To still package linux-rpm on darwin you need to run hover with the `--docker` flag.
hover: Packaging linux-snap is not supported on darwin
hover: To still package linux-snap on darwin you need to run hover with the `--docker` flag.
hover: Packaging windows-msi is not supported on darwin
hover: To still package windows-msi on darwin you need to run hover with the `--docker` flag.
hover:
hover: Sharing flutter version
Flutter 3.10.5 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 796c8ef792 (10 weeks ago) • 2023-06-13 15:51:02 -0700
Engine • revision 45f6e00911
Tools • Dart 3.0.5 • DevTools 2.23.1
hover: Flutter engine commit: https://github.com/flutter/engine/commit/45f6e009110df4f34ec2cf99f63cf73b71b7a420
hover: ⚠ The go-flutter project tries to stay compatible with the beta channel of Flutter.
hover: ⚠     It's advised to use the beta channel: `flutter channel beta`
hover: Finding out the C compiler version
Apple clang version 14.0.0 (clang-1400.0.29.202)
Target: x86_64-apple-darwin21.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
hover: Sharing the content of go.mod
module pointer_demo/go

go 1.19

require (
    github.com/go-flutter-desktop/go-flutter v0.52.2
    github.com/pkg/errors v0.9.1
)

require (
    github.com/Xuanwo/go-locale v1.1.0 // indirect
    github.com/go-gl/gl v0.0.0-20211210172815-726fda9656d6 // indirect
    github.com/go-gl/glfw/v3.3/glfw v0.0.0-20220712193148-63cf1f4ef61f // indirect
    golang.org/x/sys v0.0.0-20220627191245-f75cf1eec38b // indirect
    golang.org/x/text v0.3.7 // indirect
)
hover: Sharing the content of hover.yaml
application-name: ""
executable-name: ""
package-name: ""
organization-name: ""
license: ""
target: lib/main_desktop.dart
branch: ""
cache-path: ""
opengl: ""
engine-version: ""
hover: Sharing the content of go/cmd
go/cmd/main.go  go/cmd/options.go

Error output

Using hover run to build my application, I get the following error:


hover: Downloading engine for platform darwin-debug_unopt at version 45f6e009110df4f34ec2cf99f63cf73b71b7a420...
Download completed in 2.02s
Download completed in 3.02s
hover: Failed to unzip engine framework: open /var/folders/mn/7czq6y1x1v17_xhp8bbkgjj40000gn/T/hover-engine-download2871745624/engine/FlutterEmbedder.framework.zip: no such file or directory
bruceauyeung commented 10 months ago
$ /media/vdc/projects/hover/hover run

hover: expected: 9064459a8b0dcd32877107f6002cc429a71659d1-(devel)
hover: Downloading engine for platform linux-debug_unopt at version 9064459a8b0dcd32877107f6002cc429a71659d1...
hover: Downloading file from
 'https://storage.googleapis.com/flutter_infra_release/flutter/9064459a8b0dcd32877107f6002cc429a71659d1/linux-x64/linux-x64-embedder'
 to '/tmp/hover-engine-download2934555460/engine.zip'
Download completed in 0.89s
hover: zip: not a valid zip file
hover: Downloading file from
 'https://storage.googleapis.com/flutter_infra_release/flutter/9064459a8b0dcd32877107f6002cc429a71659d1/linux-x64/artifacts.zip'
 to '/tmp/hover-engine-download2934555460/artifacts.zip'
Download completed in 91.51s
hover: Failed to copy downloaded libflutter_engine.so: lstat /tmp/hover-engine-download1630528764/engine/libflutter_engine.so: no such file or directory

after some debug(hover binary recompiled with some logs), this seems to be caused by unreachable link https://storage.googleapis.com/flutter_infra_release/flutter/9064459a8b0dcd32877107f6002cc429a71659d1/linux-x64/linux-x64-embedder

pchampio commented 10 months ago

Google have changed their infra for downloading the debug embedder framework.

I'm currently swamped with other commitments, so I will not have the time to thoroughly investigate this. However, I'd be more than happy to assist with your pull request if you decide to submit one. :smiley:

bruceauyeung commented 10 months ago

Google have changed their infra for downloading the debug embedder framework.

I'm currently swamped with other commitments, so I will not have the time to thoroughly investigate this. However, I'd be more than happy to assist with your pull request if you decide to submit one. 😃

i'd like to, but i can not find out the relationship of download url and engine revision looks like https://github.com/flutter/flutter/wiki/Custom-Flutter-Engine-Embedders is outdated.

thelazyindian commented 9 months ago

any solution available for this yet ?

zwz-coding commented 8 months ago

After I upgraded the flutter, I got the same issue. :(

doocaat commented 7 months ago

I fixed the paths files in my fork branch master, but I got a new error.

github.com/my-organization/simpleApplication/go/cmd
/usr/local/opt/go/libexec/pkg/tool/darwin_amd64/link: running cc failed: exit status 1
ld: warning: duplicate -rpath '.' ignored
ld: warning: duplicate -rpath '.' ignored
ld: warning: duplicate -rpath '.' ignored
ld: warning: duplicate -rpath '.' ignored
ld: library not found for -lflutter_engine
clang: error: linker command failed with exit code 1 (use -v to see invocation)

But maybe I've fixed it, it's just some localized problem of mine. Can someone check my version if everything is fine I will make a pull request to the main repository