首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >./hidapi/hidapi/hidapi.h:没有这样的文件或目录

./hidapi/hidapi/hidapi.h:没有这样的文件或目录
EN

Ethereum用户
提问于 2021-04-26 08:31:01
回答 1查看 602关注 0票数 0

我克隆了围棋,并使用了go mod vender.当成功的时候,它失败了!错误信息是:

代码语言:javascript
复制
# github.com/karalabe/usb
vendor/github.com/karalabe/usb/hid_enabled.go:22:10: fatal error: ./hidapi/hidapi/hidapi.h: No such file or directory
   22 | #include "./hidapi/hidapi/hidapi.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
EN

回答 1

Ethereum用户

发布于 2021-08-28 04:49:03

前几天部署到时遇到了同样的问题。

一个解决办法就是

代码语言:javascript
复制
$ go mod vendor
$ cd vendor/github.com/karalabe
$ rm -rf usb
$ git clone https://github.com/karalabe/usb

这解决了丢失文件的问题,我不知道,但如果有其他不想要的副作用!所以要谨慎使用。

票数 0
EN
页面原文内容由Ethereum提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://ethereum.stackexchange.com/questions/97812

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档