-
Notifications
You must be signed in to change notification settings - Fork 282
Manual install and usage
Pierre Champion edited this page Jul 29, 2019
·
8 revisions
Compilation without hover, DEPRECATED, please use hover.
Download example.zip
And extract the zip
Go read first: go-gl/glfw
# Build the flutter simpleDemo project
cd example/simpleDemo/
cd flutter_project/demo/
flutter build bundle
cd ../..
# Download the share library, the one corresponding to your flutter version.
go run engineDownloader.go
# REQUIRED before every `go build`. The CGO compiler need to know where to look for the share library
export CGO_LDFLAGS="-L${PWD}"
# The share library must stay next to the generated binary.
# Get the libraries
go get -u -v github.com/go-flutter-desktop/go-flutter
# Build the example project
go build main.go
# `go run main.go` is not working ATM.
Go read first: go-gl/glfw
# Build the flutter simpleDemo project
cd example/simpleDemo/
cd flutter_project/demo/
flutter build bundle
cd ../..
# Download the share library, the one corresponding to your flutter version.
go run engineDownloader.go
# REQUIRED before every `go build`. The CGO compiler need to know where to look for the share library
set CGO_LDFLAGS=-L%cd%
# The share library must stay next to the generated binary.
# If you ran into a MinGW ld error, checkout: https://github.com/go-flutter-desktop/go-flutter/issues/34
# Get the libraries
go get -u -v github.com/go-flutter-desktop/go-flutter
# Build the example project
go build main.go
# `go run main.go` is not working ATM.
Go read first: go-gl/glfw
# Build the flutter simpleDemo project
cd example/simpleDemo/
cd flutter_project/demo/
flutter build bundle
cd ../..
# Download the share library, the one corresponding to your flutter version.
go run engineDownloader.go
# REQUIRED before every `go build`. The CGO compiler need to know where to look for the share library
export CGO_LDFLAGS="-F${PWD} -Wl,-rpath,@executable_path"
# The share library must stay next to the generated binary.
# Get the libraries
go get -u -v github.com/go-flutter-desktop/go-flutter
# Build the example project
go build main.go
# `go run main.go` is not working ATM.