myhtml icon indicating copy to clipboard operation
myhtml copied to clipboard

4.0.5 vs2017 cmake error

Open donglu opened this issue 6 years ago • 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".

donglu avatar Sep 20 '18 15:09 donglu

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

donglu avatar Sep 20 '18 15:09 donglu

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

lexborisov avatar Sep 20 '18 19:09 lexborisov

I error too

ybkyozy avatar Nov 20 '18 17:11 ybkyozy