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

4.0.5 vs2017 cmake error #160

Open
donglu opened this issue Sep 20, 2018 · 3 comments
Open

4.0.5 vs2017 cmake error #160

donglu opened this issue Sep 20, 2018 · 3 comments

Comments

@donglu
Copy link

donglu commented Sep 20, 2018

Environment:
cmake version 3.12.1
vs2017 x86

The C compiler identification is MSVC 19.15.26726.0
The CXX compiler identification is MSVC 19.15.26726.0
Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.15.26726/bin/Hostx86/x86/cl.exe
Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.15.26726/bin/Hostx86/x86/cl.exe -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Detecting C compile features
Detecting C compile features - done
Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.15.26726/bin/Hostx86/x86/cl.exe
Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.15.26726/bin/Hostx86/x86/cl.exe -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Detecting CXX compile features
Detecting CXX compile features - done
Looking for pthread.h
Looking for pthread.h - not found
Found Threads: TRUE
CMake Error at CMakeLists.txt:21 (message):
Could NOT find pthreads (missing: CMAKE_USE_PTHREADS_INIT)

Configuring incomplete, errors occurred!
See also "D:/Project/C++/myhtml-4.0.5-vs2017-build/CMakeFiles/CMakeOutput.log".
See also "D:/Project/C++/myhtml-4.0.5-vs2017-build/CMakeFiles/CMakeError.log".

@donglu donglu changed the title vs2017 cmake error 4.0.5 vs2017 cmake error Sep 20, 2018
@donglu
Copy link
Author

donglu commented Sep 20, 2018

I use build without threads to solve it.Is it correct?

@lexborisov
Copy link
Owner

@donglu
If you do not need threads, then yes, that's right.
But in general, it should be build fine. What version of Windows do you have and cmake?

@ybkyozy
Copy link

ybkyozy commented Nov 20, 2018

I error too

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

3 participants