Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

windows下无法运行 #283

Open
Atanycosts opened this issue Aug 31, 2024 · 8 comments
Open

windows下无法运行 #283

Atanycosts opened this issue Aug 31, 2024 · 8 comments
Labels

Comments

@Atanycosts
Copy link

环境go1.21.5
按上一个issues仍然报错,无法运行
对应的包下已导入libbcos-c-sdk.dll
image
错误信息
package command-line-arguments imports github.com/FISCO-BCOS/go-sdk/v3/client imports github.com/FISCO-BCOS/bcos-c-sdk/bindings/go/csdk: build constraints exclude all Go files in F:\Coding\go\pkg\mod\github.com\!f!i!s!c!o-!b!c!o!s\[email protected]\bindings\go\csdk
image

第二个问题是找不到go-sdk 下的conf
image
,如果是自己创建的话,已尝试,不知道改怎么弄
image

@Atanycosts
Copy link
Author

Atanycosts

第二个问题已解决,conf是v2版本的,现在我在v3里找到了test的代码

@bxq2011hust
Copy link
Member

#252

请参考这个issue看看,如果还有问题欢迎继续反馈

@Atanycosts
Copy link
Author

Atanycosts commented Sep 2, 2024 via email

@bxq2011hust
Copy link
Member

build constraints exclude all Go files in
这个是因为没有打开cgo的支持,首页的README里面有开启CGO支持的命令go env -w CGO_ENABLED=1

@Atanycosts
Copy link
Author

build constraints exclude all Go files in 这个是因为没有打开cgo的支持,首页的README里面有开启CGO支持的命令go env -w CGO_ENABLED=1

已对您说的做了添加,但出现了新的错误 ,通过powershell也一样
image
测试的代码是v3/test/authTest/main.go

@Atanycosts
Copy link
Author

build constraints exclude all Go files in 这个是因为没有打开cgo的支持,首页的README里面有开启CGO支持的命令go env -w CGO_ENABLED=1

已尝试将动态连接库放进C盘的system32中, 还是报错

@github-staff github-staff deleted a comment from Atanycosts Sep 3, 2024
@Atanycosts
Copy link
Author

Atanycosts commented Sep 5, 2024 via email

@Atanycosts
Copy link
Author

你好,您所提及的我都试了,现在通过dumpbin找到了exe依赖的动态库,如下 是不是库依赖的有问题, 我已将libbcos-c-sdk放入go mod对应的包下 Atanycosts @.***  

------------------ 原始邮件 ------------------ 发件人: "FISCO-BCOS/go-sdk" @.>; 发送时间: 2024年9月2日(星期一) 上午10:01 @.>; @.@.>; 主题: Re: [FISCO-BCOS/go-sdk] windows下无法运行 (Issue #283) #252 请参考这个issue看看,如果还有问题欢迎继续反馈 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

我已运行成功,通过将bcos-c-sdk.dll重新放进C盘的system32后成功运行

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants
@bxq2011hust @Atanycosts and others