C++ Can';无法在windows上编译结构-缺少ltdl.h
我正在尝试使用C++ Can';无法在windows上编译结构-缺少ltdl.h,c++,hyperledger-fabric,libtool,C++,Hyperledger Fabric,Libtool,我正在尝试使用go build构建链码 环境: 已安装go 1.8.3 windows/amd 视窗10 当我运行go build时,我得到以下错误: # github.com/hyperledger/fabric/vendor/github.com/miekg/pkcs11 ..\..\github.com\hyperledger\fabric\vendor\github.com\miekg\pkcs11\pkcs11.go:29:18: fatal error: ltdl.h: No s
go build
构建链码
环境:
- 已安装go 1.8.3 windows/amd
- 视窗10
go build
时,我得到以下错误:
# github.com/hyperledger/fabric/vendor/github.com/miekg/pkcs11
..\..\github.com\hyperledger\fabric\vendor\github.com\miekg\pkcs11\pkcs11.go:29:18: fatal error: ltdl.h: No such file or directory
compilation terminated.
我检查了,我的GCC安装不包含include文件夹中的ltdl.h文件
我发现了一篇带有a的SO帖子,但不是针对Windows的
有人能帮忙吗?在windows上,您可以不使用PKCS构建
go build--tags nopkcs11
尝试运行以下命令
sudo apt install libtool libltdl-dev
确保
go-get-u github.com/hyperledger/fabric/core/chaincode/shim
不会抛出错误,然后go-build
it.该死,我希望有人能想出如何让pkcs11在Windows上工作的方法。可能需要交叉编译或使用cygwin。