cpacia / BitcoinCash-Wallet

Bitcoin Cash P2P SPV Wallet
MIT License
72 stars 38 forks source link

Error when building from source #10

Open mschoenebeck opened 6 years ago

mschoenebeck commented 6 years ago

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]
jchavannes commented 6 years ago

@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.

cculianu commented 5 years ago

The joys of Go. :)

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