lexborisov / myhtml

Fast C/C++ HTML 5 Parser. Using threads.
GNU Lesser General Public License v2.1
1.66k stars 147 forks source link

4.0.5 vs2017 cmake error #160

Open donglu opened 6 years ago

donglu commented 6 years ago

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 commented 6 years ago

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

lexborisov commented 6 years ago

@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 commented 6 years ago

I error too