lexborisov/myhtml

4.0.5 vs2017 cmake error

donglu opened this issue · 3 comments

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".

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

@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?

I error too