BitcoinCash-Wallet icon indicating copy to clipboard operation
BitcoinCash-Wallet copied to clipboard

Error when building from source

Open mschoenebeck opened this issue 7 years ago • 2 comments

When building from source make install throws the following error:


cd cmd/bitcoincash && go install
# github.com/cpacia/BitcoinCash-Wallet/gui/bootstrap
../../gui/bootstrap/run.go:72:8: undefined: astilectron.EventNameWindowEventMessage
../../gui/bootstrap/run.go:92:6: w.Send undefined (type *astilectron.Window has no field or method Send)
makefile:2: recipe for target 'install' failed
make: *** [install] Error 2

Google didn't help. I try to build with go-1.9...

EDIT: ./test_compile.sh also throws errors btw:

/home/mschoenebeck/.go/src/github.com/cpacia/BitcoinCash-Wallet
# github.com/cpacia/BitcoinCash-Wallet
./blockchain_test.go:450:40: too few values in struct initializer
./blockchain_test.go:451:38: too few values in struct initializer
./blockchain_test.go:460:8: cannot use "github.com/btcsuite/btcd/wire".BlockHeader literal (type "github.com/btcsuite/btcd/wire".BlockHeader) as type StoredHeader in assignment
./blockchain_test.go:461:6: cannot use "github.com/btcsuite/btcd/wire".BlockHeader literal (type "github.com/btcsuite/btcd/wire".BlockHeader) as type StoredHeader in assignment
./blockchain_test.go:462:7: start.Timestamp undefined (type StoredHeader has no field or method Timestamp)
./blockchain_test.go:463:5: end.Timestamp undefined (type StoredHeader has no field or method Timestamp)
./blockchain_test.go:464:5: end.Bits undefined (type StoredHeader has no field or method Bits)
./blockchain_test.go:470:8: cannot use "github.com/btcsuite/btcd/wire".BlockHeader literal (type "github.com/btcsuite/btcd/wire".BlockHeader) as type StoredHeader in assignment
./blockchain_test.go:471:6: cannot use "github.com/btcsuite/btcd/wire".BlockHeader literal (type "github.com/btcsuite/btcd/wire".BlockHeader) as type StoredHeader in assignment
./blockchain_test.go:472:7: start.Timestamp undefined (type StoredHeader has no field or method Timestamp)
./blockchain_test.go:472:7: too many errors
FAIL	github.com/cpacia/BitcoinCash-Wallet [build failed]

mschoenebeck avatar Jan 24 '18 04:01 mschoenebeck

@mschoenebeck I was able to fix the astilectron error by checking out the tag v0.5.0 - https://github.com/asticode/go-astilectron/tree/v0.5.0

They must've introduced a breaking change to their master branch.

jchavannes avatar Feb 21 '18 17:02 jchavannes

The joys of Go. :)

Yeah people need to stick to specific tags in their deps or something...

cculianu avatar Sep 29 '18 12:09 cculianu