Skip to content

Unable to build onnxruntime 1.6.0 from source #7382

Answered by shuiyu486
shuiyu486 asked this question in Other Q&A
Discussion options

You must be logged in to vote

I think that you are missing dependencies and yes you need dependencies even if building CPU version for Windows. Try running:
git submodule update --init --recursive and then re-try building.

Thanks, I can continue to build after using "git submodule update --init --recursive", but encountered a new failure (about pthread)::

Check CMakeError.log:
`Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output:
Change Dir: G:/SourceCode/onnxruntime-1.6.0/onnxruntime-1.6.0/build/Windows/RelWithDebInfo/CMakeFiles/CMakeTmp

Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe cmTC_e1e6d.vcxproj /p:Confi…

Replies: 6 comments 12 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
9 replies
@snnn
Comment options

@shuiyu486
Comment options

@shuiyu486
Comment options

@snnn
Comment options

@shuiyu486
Comment options

Answer selected by shuiyu486
Comment options

You must be logged in to vote
1 reply
@shuiyu486
Comment options

Comment options

You must be logged in to vote
2 replies
@shuiyu486
Comment options

@shuiyu486
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #7355 on April 20, 2021 17:29.