Skip to content
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

Building on OSX #6

Open
reppolice opened this issue Sep 8, 2018 · 6 comments
Open

Building on OSX #6

reppolice opened this issue Sep 8, 2018 · 6 comments

Comments

@reppolice
Copy link

reppolice commented Sep 8, 2018

Hi,

I can't believe you are using this repo for the builds, since a donovansolms directory seems to be hardcoded somewhere. After I put the source code in such a directory under my /go , I seemed to be doing all right until

DEBU[0027] Building for os linux and arch amd64
DEBU[0027] Executing go build -ldflags -s -X "main.AppName=Stellite GUI Miner v1.1.0" -X "main.BuiltAt=2018-09-09 00:44:59.065095 +0200 CEST m=+27.549576645" -o

gui/gui.go:168:11: unknown field 'Homepage' in struct literal of type bootstrap.Options
gui/gui.go:174:16: unknown field 'WindowOptions' in struct literal of type bootstrap.Options
gui/gui.go:182:9: cannot use func literal (type func(*astilectron.Astilectron, *astilectron.Window, *astilectron.Menu, *astilectron.Tray, *astilectron.Menu) error) as type bootstrap.OnWait in field value
gui/gui.go:210:17: unknown field 'MessageHandler' in struct literal of type bootstrap.Options
: exit status 2
make: *** [build] Error 1

Is this resolved by more directory "magic", or is something different going on here?

Thanks!

@reppolice
Copy link
Author

This is how it looks if I do not fiddle with directories and build under go/src

FATA[0092] bundling failed: bundling for environment linux/amd64 failed: building failed: # github.com/donovansolms/stellite-gui-miner/src/gui
../../../donovansolms/stellite-gui-miner/src/gui/gui.go:168:11: unknown field 'Homepage' in struct literal of type bootstrap.Options
../../../donovansolms/stellite-gui-miner/src/gui/gui.go:174:16: unknown field 'WindowOptions' in struct literal of type bootstrap.Options
../../../donovansolms/stellite-gui-miner/src/gui/gui.go:182:9: cannot use func literal (type func(*astilectron.Astilectron, *astilectron.Window, *astilectron.Menu, *astilectron.Tray, *astilectron.Menu) error) as type bootstrap.OnWait in field value
../../../donovansolms/stellite-gui-miner/src/gui/gui.go:210:17: unknown field 'MessageHandler' in struct literal of type bootstrap.Options

@donovansolms
Copy link
Member

This is how packages are referenced and imported in Go, it's not hardcoded paths.

The repo's ownership was transferred from my personal account which is why the root package is donovansolms. The imports in this repo haven't been updated to match the new location of the code.

The errors you are seeing, seems to be referencing bootstrap.Options from the astilectron framework. I don't see any commit that removed those options.

Have you installed astilectron and it's dependencies?

@reppolice
Copy link
Author

In terms of following your instructions yes. I can also build the asti demo.

@reppolice
Copy link
Author

So actually, I get the same error on Ubuntu. Do you guys actually build from this repo?
unknown field 'Homepage' in struct literal of type bootstrap.Options

@donovansolms
Copy link
Member

Hi, I've finally managed to get back to updating this and fixed the errors you experienced.

The paths are now fixed and the Astilectron API has been updated to resolve the Homepage issue

@reppolice
Copy link
Author

You probably did fix it, but a git pull still ended up with errors for me on Mac, will try later on Linux. Any ideas what was fixed? Could help some of us avoid the same mistakes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants