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

fatal error LNK 1104 #13

Closed
Defa6 opened this issue Mar 25, 2022 · 2 comments
Closed

fatal error LNK 1104 #13

Defa6 opened this issue Mar 25, 2022 · 2 comments

Comments

@Defa6
Copy link

Defa6 commented Mar 25, 2022

Hello,
I am trying to run this example, but when I'm writing "cmake --build ." in the terminal, I always get this error:

LINK : fatal error LNK1104: Datei "onnxruntime-win-x64\onnxruntime-win-x64\lib\onnxruntime.lib.lib" kann nicht geöffnet werden. [...\build\yolo_ort.vcxproj]

Maybe the "lib.lib" from onnxruntime.lib.lib is the problem, but I don't know how to solve it.
I am using the win-x64-1.10.0 onnxruntime version.

Thanks for your help.

@itsnine
Copy link
Owner

itsnine commented Mar 26, 2022

@Defa6 hello, how did you specify the path to onnxruntime before build? I tested on windows 10 with win-x64-onnxruntime-1.10.0 and it works. I specified path to onnxruntime as follows:
cmake .. -DONNXRUNTIME_DIR=C:/libs/onnxruntime-win-x64-1.10.0/

@Defa6
Copy link
Author

Defa6 commented Mar 26, 2022

Ah okay, I found my mistake. I haven't use the C:/ for the path.
Thanks :)

@Defa6 Defa6 closed this as completed Mar 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants