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.85k stars 283 forks source link

gcc: error: Studio: No such file or directory #619

Closed alimsk closed 2 years ago

alimsk commented 2 years ago

Hover doctor

$ hover doctor
hover: Hover version v0.46.6 running on linux
hover: Sharing packaging tools
hover: darwin-bundle is supported
hover: darwin-dmg is supported
hover: To package darwin-pkg these tools are required: mkbom,xar
hover: Install bomutils from your package manager or from https://github.com/hogliux/bomutils
hover: Install xar from your package manager or from https://github.com/mackyle/xar
hover: To still package darwin-pkg without the required tools installed you need to run hover with the `--docker` flag.
hover: To package linux-appimage these tools are required: appimagetool
hover: Install appimagetool from your package manager or from https://github.com/AppImage/AppImageKit#appimagetool-usage
hover: To still package linux-appimage without the required tools installed you need to run hover with the `--docker` flag.
hover: linux-deb is supported
hover: To package linux-pkg these tools are required: makepkg
hover: You need to be on Arch Linux or another distro that uses pacman as package manager to use this. Installing makepkg on other distros is hard and dangerous.
hover: To still package linux-pkg without the required tools installed you need to run hover with the `--docker` flag.
hover: To package linux-rpm these tools are required: rpmbuild
hover: You need to be on Red Hat Linux or another distro that uses rpm as package manager to use this. Installing rpmbuild on other distros is hard and dangerous.
hover: To still package linux-rpm without the required tools installed you need to run hover with the `--docker` flag.
hover: To package linux-snap these tools are required: snapcraft
hover: Install snapd from your package manager or from https://snapcraft.io/docs/installing-snapd
hover: To still package linux-snap without the required tools installed you need to run hover with the `--docker` flag.
hover: To package windows-msi these tools are required: wixl
hover: Install msitools from your package manager or from https://wiki.gnome.org/msitools/
hover: To still package windows-msi without the required tools installed you need to run hover with the `--docker` flag.
hover: 
hover: Sharing flutter version
Flutter 2.5.0 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 4cc385b4b8 (2 weeks ago) • 2021-09-07 23:01:49 -0700
Engine • revision f0826da7ef
Tools • Dart 2.14.0
hover: Flutter engine commit: https://github.com/flutter/engine/commit/f0826da7ef2d301eb8f4ead91aaf026aa2b52881
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
gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

hover: Sharing the content of go.mod
module github.com/structuredman/hover_test/go

go 1.17

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

require (
        github.com/Xuanwo/go-locale v1.0.0 // indirect
        github.com/go-gl/gl v0.0.0-20190320180904-bf2b1f2f34d7 // indirect
        github.com/go-gl/glfw/v3.3/glfw v0.0.0-20201108214237-06ea97f0c265 // indirect
        golang.org/x/sys v0.0.0-20200802091954-4b90ce9b60b3 // indirect
        golang.org/x/text v0.3.5 // indirect
)
hover: Sharing the content of hover.yaml
application-name: ""
executable-name: ""
package-name: ""
organization-name: com.testhover
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

i got the following error when running hover run\ error:

hover: Downloading engine for platform linux-debug_unopt at version f0826da7ef2d301eb8f4ead91aaf026aa2b52881...
Download completed in 6.99s
Download completed in 13.21s
hover: Cleaning the build directory
hover: Target file "lib/main_desktop.dart" not found.
hover: Let hover add the "lib/main_desktop.dart" file? 
hover: [y/N]? y
hover: Target file "lib/main_desktop.dart" has been created.
hover:        Depending on your project, you might want to tweak it.
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: Bundling flutter app

💪 Building with sound null safety 💪

hover: Compiling 'go-flutter' and plugins
github.com/go-flutter-desktop/go-flutter/internal/tasker
runtime/cgo
golang.org/x/text/internal/tag
github.com/go-flutter-desktop/go-flutter/internal/debounce
golang.org/x/text/internal/language
github.com/go-flutter-desktop/go-flutter/internal/execpath
github.com/go-flutter-desktop/go-flutter/plugin
golang.org/x/text/internal/language/compact
golang.org/x/text/language
github.com/Xuanwo/go-locale
# runtime/cgo
gcc: error: Studio: No such file or directory
gcc: error: Code/test_hover/go/build/outputs/linux-debug_unopt: No such file or directory
hover: Go build failed: exit status 2

initially, I created a flutter project with flutter create --platforms=linux test_hover.\ then i cd into that folder and initialize hover, hover init github.com/structuredman/hover_test.\ everything seems fine, then i run hover run and i got the above error.\ also i want to say that this is my first time trying hover.

thanks.

alimsk commented 2 years ago

maybe this has something to do with folder name?\ I saved this project in a folder containing spaces:

/home/mypc/Visual Studio Code/test_hover
provokateurin commented 2 years ago

Yeah it looks like the spaces are a problem.

alimsk commented 2 years ago

so this is a gcc bug?

provokateurin commented 2 years ago

Probably not. Hover has some other problems regarding paths with spaces

alimsk commented 2 years ago

hmmm ok