"FATAL ERROR RUNNING CMAKE" at Windows
Posted: Tue Sep 28, 2021 12:24 pm
I'm attempting to build according to the guide of https://github.com/LuxCoreRender/WindowsCompile with VS 2019
When I build LuxCore on Windows like below...
After running cmake-build-x64.bat... "FATAL ERROR RUNNING CMAKE" occurs.
When I opened the CMakeError.log file... it say they can't find "CheckInclusiveFile.c".
How can I solve this problem?
**********************************************************************
** Visual Studio 2019 Developer Command Prompt v16.11.3
** Copyright (c) 2021 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x86'
C:\git\luxcorerender\WindowsCompile>cmake-build-x64.bat
Detected Visual Studio (version 16.0)
Finding if CMake is installed...
CMake found at "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe "
--2021-09-23 21:31:15-- https://github.com/LuxCoreRender/Window ... _v2.6_3.7z
Resolving github.com (github.com)... 15.164.81.167
Connecting to github.com (github.com)|15.164.81.167|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-releases.githubuserconte ... tet-stream [following]
--2021-09-23 21:31:17-- https://github-releases.githubuserconte ... tet-stream
Resolving github-releases.githubusercontent.com (github-releases.githubusercontent.com)... 185.199.108.154, 185.199.110.154, 185.199.109.154, ...
Connecting to github-releases.githubusercontent.com (github-releases.githubusercontent.com)|185.199.108.154|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 105678346 (101M) [application/octet-stream]
Saving to: 'WindowsCompileDeps_v2.6_3.7z'
WindowsCompileDeps_v2.6_3.7z 100%[=================================================>] 100.78M 862KB/s in 99s
-- Using Win32 for window creation
-- Using WGL for context creation
-- Configuring incomplete, errors occurred!
See also "C:/git/luxcorerender/WindowsCompile/Build_CMake/LuxCore/CMakeFiles/CMakeOutput.log".
See also "C:/git/luxcorerender/WindowsCompile/Build_CMake/LuxCore/CMakeFiles/CMakeError.log".
--- FATAL ERROR RUNNING CMAKE ---
C:\git\luxcorerender\WindowsCompile\Build_CMake\LuxCore\CMakeFiles\CMakeTmp\CheckIncludeFile.c(1,10): fatal error C1083: Can't open the include file.. 'pthread.h': No such file or directory [C:\git\luxcorerender\WindowsCompile\Build_CMake\LuxCore\CMakeFiles\CMakeTmp\cmTC_45888.vcxproj]
When I build LuxCore on Windows like below...
After running cmake-build-x64.bat... "FATAL ERROR RUNNING CMAKE" occurs.
When I opened the CMakeError.log file... it say they can't find "CheckInclusiveFile.c".
How can I solve this problem?
**********************************************************************
** Visual Studio 2019 Developer Command Prompt v16.11.3
** Copyright (c) 2021 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x86'
C:\git\luxcorerender\WindowsCompile>cmake-build-x64.bat
Detected Visual Studio (version 16.0)
Finding if CMake is installed...
CMake found at "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe "
--2021-09-23 21:31:15-- https://github.com/LuxCoreRender/Window ... _v2.6_3.7z
Resolving github.com (github.com)... 15.164.81.167
Connecting to github.com (github.com)|15.164.81.167|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-releases.githubuserconte ... tet-stream [following]
--2021-09-23 21:31:17-- https://github-releases.githubuserconte ... tet-stream
Resolving github-releases.githubusercontent.com (github-releases.githubusercontent.com)... 185.199.108.154, 185.199.110.154, 185.199.109.154, ...
Connecting to github-releases.githubusercontent.com (github-releases.githubusercontent.com)|185.199.108.154|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 105678346 (101M) [application/octet-stream]
Saving to: 'WindowsCompileDeps_v2.6_3.7z'
WindowsCompileDeps_v2.6_3.7z 100%[=================================================>] 100.78M 862KB/s in 99s
-- Using Win32 for window creation
-- Using WGL for context creation
-- Configuring incomplete, errors occurred!
See also "C:/git/luxcorerender/WindowsCompile/Build_CMake/LuxCore/CMakeFiles/CMakeOutput.log".
See also "C:/git/luxcorerender/WindowsCompile/Build_CMake/LuxCore/CMakeFiles/CMakeError.log".
--- FATAL ERROR RUNNING CMAKE ---
C:\git\luxcorerender\WindowsCompile\Build_CMake\LuxCore\CMakeFiles\CMakeTmp\CheckIncludeFile.c(1,10): fatal error C1083: Can't open the include file.. 'pthread.h': No such file or directory [C:\git\luxcorerender\WindowsCompile\Build_CMake\LuxCore\CMakeFiles\CMakeTmp\cmTC_45888.vcxproj]