How to include an extern library? #102
Unanswered
Jia-WeiFang
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I want to include the Pytorch C++ library (https://pytorch.org/) in ALXR.
I put the folder downloaded from their official website under the cpp folder (directory: alvr/server/cpp/libtorch),
and add a new line ".include("cpp/libtorch/include")" in build.rs to help the compiler find the pytorch library (libtorch).
However, for some reason, even though the code can find the library correctly, it still fails in the building process with the error message "error: linking with
link.exe
failed: exit code: 1120".Does anyone have the experience of including external libraries in ALXR?
How can I solve this problem?
Thanks a lot for your help!!!
Beta Was this translation helpful? Give feedback.
All reactions