xgo
xgo copied to clipboard
vendor/github.com/miekg/pkcs11/pkcs11.go:29:18: fatal error: ltdl.h: No such file or directory
Hi, I'm trying to compile a peer for my blockchain that will run with arm-v7
I compile it with:
xgo --targets=linux/arm-7 ~/go/src/gitlab.com/company/edge_to_bc
and then I get:
Checking for required docker image karalabe/xgo-latest... found.
Cross compiling gitlab.com/company/edge_to_bc...
Building locally gitlab.com/company/edge_to_bc...
Bootstrapping linux/arm-7...
Compiling for linux/arm-7...
# gitlab.com/company/edge_to_bc/vendor/github.com/miekg/pkcs11
vendor/github.com/miekg/pkcs11/pkcs11.go:29:18: fatal error: ltdl.h: No such file or directory
compilation terminated.
2019/06/20 14:10:23 Failed to cross compile package: exit status 2.
I found out that I can add the dependency with:
sudo apt install libltdl-dev
But I can't see how to use it with: --deps= arguments. Is it possible ?