scala-network / GUI-miner

An easy to use GUI miner available for Windows, macOS and Linux
https://www.stellite.cash/miner
BSD 3-Clause "New" or "Revised" License
64 stars 61 forks source link

Building on OSX #6

Open reppolice opened 5 years ago

reppolice commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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

reppolice commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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!