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 该如何运行 #63

Closed
sanrentai opened this issue May 10, 2024 · 4 comments
Closed

windows 该如何运行 #63

sanrentai opened this issue May 10, 2024 · 4 comments
Labels
question Further information is requested

Comments

@sanrentai
Copy link

已经按readme下载了libtorch, llvm-mingw,配置了环境变量

在运行mlp的时候报错

# command-line-arguments
C:\Users\CaoChun\.g\go\pkg\tool\windows_amd64\link.exe: running gcc failed: exit status 1
lld: error: unable to find library -lgotorch
clang-17: error: linker command failed with exit code 1 (use -v to see invocation)
@lwch lwch added the question Further information is requested label May 18, 2024
@lwch
Copy link
Owner

lwch commented May 18, 2024

windows下需要添加以下环境变量

LIBRARY_PATH="D:\libtorch\lib"
Path="D:\libtorch\lib;<mingw所在路径>\bin"

@sanrentai
Copy link
Author

windows下需要添加以下环境变量

LIBRARY_PATH="D:\libtorch\lib"
Path="D:\libtorch\lib;<mingw所在路径>\bin"

这两个环境变量都添加了,还是这个提示

@sanrentai
Copy link
Author

看了一下源码,// #cgo LDFLAGS: -lgotorch
安装的第2步,下载[libgotorch],windows 应该把 gotorch_cpu.dll 改成 gotorch.dll

@lwch
Copy link
Owner

lwch commented May 23, 2024

看了一下源码,// #cgo LDFLAGS: -lgotorch 安装的第2步,下载[libgotorch],windows 应该把 gotorch_cpu.dll 改成 gotorch.dll

是的

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

No branches or pull requests

2 participants