Failed to cmake on x64 with MSVC #71994

Closed
opened 2019-11-28 03:53:40 +01:00 by Lin Gao · 6 comments

We failed to build Blender on x64 with MSVC. It failed to cmake This issue can be reproduced on master branch latest commit 4659fa5. And it can cmake pass on dff7abf commit . Could you please help take a look at this? Thank you!

Environment:
Windows + VS2017

Steps to Reproduce:

  1. git clone git://git.blender.org/blender.git D:\Blender\src
  2. Open a VS 2017 x64 command prompt and browse to D:\Blender
  3. mkdir build_x64 && pushd build_x64
  4. cmake -G "Visual Studio 15 2017 Win64" -DCMAKE_SYSTEM_VERSION==10.0.17134.0 -DWITH_GTESTS=1 -DWITH_CYCLES=0 -DWITH_CYCLES_OPENSUBDIV=0 -DWITH_CYCLES_OSL=0 -DWITH_PYTHON_INSTALL=0 -DWITH_PYTHON_INSTALL_NUMPY=0 ..\src

Actual result:
[executing command] cmake -G "Visual Studio 15 2017 Win64" -DCMAKE_SYSTEM_VERSION==10.0.17134.0 -DWITH_GTESTS=1 -DWITH_CYCLES=0 -DWITH_CYCLES_OPENSUBDIV=0 -DWITH_CYCLES_OSL=0 -DWITH_PYTHON_INSTALL=0 -DWITH_PYTHON_INSTALL_NUMPY=0 ..\src

  • The C compiler identification is MSVC 19.25.28326.96
  • The CXX compiler identification is MSVC 19.25.28326.96
  • Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe
  • Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/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/Enterprise/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe
  • Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe -- works
  • Detecting CXX compiler ABI info
  • Detecting CXX compiler ABI info - done
  • Detecting CXX compile features
  • Detecting CXX compile features - done
  • WITH_DRACO requires WITH_PYTHON_INSTALL to be ON, disabling WITH_DRACO for now
  • Performing Test SUPPORT_SSE_BUILD
  • Performing Test SUPPORT_SSE_BUILD - Success
  • SSE Support: detected.
  • Performing Test SUPPORT_SSE2_BUILD
  • Performing Test SUPPORT_SSE2_BUILD - Success
  • SSE2 Support: detected.
  • Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.24.0.windows.2")
    CMake Warning at C:/Program Files/CMake/share/cmake-3.15/Modules/InstallRequiredSystemLibraries.cmake:558 (message):
system runtime library file does not exist:
'MSVC_REDIST_DIR-NOTFOUND/x64/Microsoft.VC142.CRT/msvcp140.dll'

Call Stack (most recent call first):

build_files/cmake/platform/platform_win32.cmake:142 (include)
CMakeLists.txt:915 (include)

CMake Warning at C:/Program Files/CMake/share/cmake-3.15/Modules/InstallRequiredSystemLibraries.cmake:558 (message):

system runtime library file does not exist:
'MSVC_REDIST_DIR-NOTFOUND/x64/Microsoft.VC142.CRT/vcruntime140.dll'

Call Stack (most recent call first):

build_files/cmake/platform/platform_win32.cmake:142 (include)
CMakeLists.txt:915 (include)

CMake Warning at C:/Program Files/CMake/share/cmake-3.15/Modules/InstallRequiredSystemLibraries.cmake:558 (message):

system runtime library file does not exist:
'MSVC_REDIST_DIR-NOTFOUND/x64/Microsoft.VC142.CRT/concrt140.dll'

Call Stack (most recent call first):

build_files/cmake/platform/platform_win32.cmake:142 (include)
CMakeLists.txt:915 (include)

CMake Warning at C:/Program Files/CMake/share/cmake-3.15/Modules/InstallRequiredSystemLibraries.cmake:558 (message):

system runtime library file does not exist:
'MSVC_REDIST_DIR-NOTFOUND/x64/Microsoft.VC142.OPENMP/vcomp140.dll'

Call Stack (most recent call first):

build_files/cmake/platform/platform_win32.cmake:142 (include)
CMakeLists.txt:915 (include)
  • 64 bit compiler detected.
  • Visual Studio 2019 detected.
    CMake Error at build_files/cmake/platform/platform_win32.cmake:206 (message):


Windows requires pre-compiled libs at: 'D:/Blender/src/../lib/win64_vc15'.
Please run `make update` in the blender source folder to obtain them.

Call Stack (most recent call first):

CMakeLists.txt:915 (include)
  • Configuring incomplete, errors occurred!
    See also "D:/Blender/build_x64/CMakeFiles/CMakeOutput.log".
    [command took 7 seconds]
We failed to build Blender on x64 with MSVC. It failed to cmake This issue can be reproduced on master branch latest commit 4659fa5. And it can cmake pass on dff7abf commit . Could you please help take a look at this? Thank you! Environment: Windows + VS2017 Steps to Reproduce: 1. git clone git://git.blender.org/blender.git D:\Blender\src 2. Open a VS 2017 x64 command prompt and browse to D:\Blender 3. mkdir build_x64 && pushd build_x64 4. cmake -G "Visual Studio 15 2017 Win64" -DCMAKE_SYSTEM_VERSION==10.0.17134.0 -DWITH_GTESTS=1 -DWITH_CYCLES=0 -DWITH_CYCLES_OPENSUBDIV=0 -DWITH_CYCLES_OSL=0 -DWITH_PYTHON_INSTALL=0 -DWITH_PYTHON_INSTALL_NUMPY=0 ..\src Actual result: [executing command] cmake -G "Visual Studio 15 2017 Win64" -DCMAKE_SYSTEM_VERSION==10.0.17134.0 -DWITH_GTESTS=1 -DWITH_CYCLES=0 -DWITH_CYCLES_OPENSUBDIV=0 -DWITH_CYCLES_OSL=0 -DWITH_PYTHON_INSTALL=0 -DWITH_PYTHON_INSTALL_NUMPY=0 ..\src - The C compiler identification is MSVC 19.25.28326.96 - The CXX compiler identification is MSVC 19.25.28326.96 - Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe - Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/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/Enterprise/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe - Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe -- works - Detecting CXX compiler ABI info - Detecting CXX compiler ABI info - done - Detecting CXX compile features - Detecting CXX compile features - done - WITH_DRACO requires WITH_PYTHON_INSTALL to be ON, disabling WITH_DRACO for now - Performing Test SUPPORT_SSE_BUILD - Performing Test SUPPORT_SSE_BUILD - Success - SSE Support: detected. - Performing Test SUPPORT_SSE2_BUILD - Performing Test SUPPORT_SSE2_BUILD - Success - SSE2 Support: detected. - Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.24.0.windows.2") CMake Warning at C:/Program Files/CMake/share/cmake-3.15/Modules/InstallRequiredSystemLibraries.cmake:558 (message): ``` system runtime library file does not exist: 'MSVC_REDIST_DIR-NOTFOUND/x64/Microsoft.VC142.CRT/msvcp140.dll' ``` Call Stack (most recent call first): ``` build_files/cmake/platform/platform_win32.cmake:142 (include) CMakeLists.txt:915 (include) ``` CMake Warning at C:/Program Files/CMake/share/cmake-3.15/Modules/InstallRequiredSystemLibraries.cmake:558 (message): ``` system runtime library file does not exist: 'MSVC_REDIST_DIR-NOTFOUND/x64/Microsoft.VC142.CRT/vcruntime140.dll' ``` Call Stack (most recent call first): ``` build_files/cmake/platform/platform_win32.cmake:142 (include) CMakeLists.txt:915 (include) ``` CMake Warning at C:/Program Files/CMake/share/cmake-3.15/Modules/InstallRequiredSystemLibraries.cmake:558 (message): ``` system runtime library file does not exist: 'MSVC_REDIST_DIR-NOTFOUND/x64/Microsoft.VC142.CRT/concrt140.dll' ``` Call Stack (most recent call first): ``` build_files/cmake/platform/platform_win32.cmake:142 (include) CMakeLists.txt:915 (include) ``` CMake Warning at C:/Program Files/CMake/share/cmake-3.15/Modules/InstallRequiredSystemLibraries.cmake:558 (message): ``` system runtime library file does not exist: 'MSVC_REDIST_DIR-NOTFOUND/x64/Microsoft.VC142.OPENMP/vcomp140.dll' ``` Call Stack (most recent call first): ``` build_files/cmake/platform/platform_win32.cmake:142 (include) CMakeLists.txt:915 (include) ``` - 64 bit compiler detected. - Visual Studio 2019 detected. CMake Error at build_files/cmake/platform/platform_win32.cmake:206 (message): ``` ``` ``` ``` ``` Windows requires pre-compiled libs at: 'D:/Blender/src/../lib/win64_vc15'. Please run `make update` in the blender source folder to obtain them. ``` Call Stack (most recent call first): ``` CMakeLists.txt:915 (include) ``` - Configuring incomplete, errors occurred! See also "D:/Blender/build_x64/CMakeFiles/CMakeOutput.log". [command took 7 seconds]
Author

Added subscriber: @spacelg

Added subscriber: @spacelg
Member

Added subscriber: @LazyDodo

Added subscriber: @LazyDodo
Member

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Ray molenkamp self-assigned this 2019-11-28 04:16:17 +01:00
Member

as mentioned on the page you used to file this report

What not to report here
For feature requests, feedback, questions or issues building Blender, see communication channels.

So i'm going to have to close your ticket, that being said building instructions for windows are available here: https://wiki.blender.org/wiki/Building_Blender/Windows

as mentioned on the page you used to file this report >What not to report here >For feature requests, feedback, questions or **issues building Blender**, see [communication channels. ](https://wiki.blender.org/wiki/Communication/Contact#User_Feedback_and_Requests) So i'm going to have to close your ticket, that being said building instructions for windows are available here: https://wiki.blender.org/wiki/Building_Blender/Windows
Member

You're most likely missing the svn libs, they changed a while ago so be sure to grab a fresh copy of those.

The C compiler identification is MSVC 19.25.28326.96
The CXX compiler identification is MSVC 19.25.28326.96

Interesting vs version you have btw......

You're most likely missing the svn libs, they changed a while ago so be sure to grab a fresh copy of those. >The C compiler identification is MSVC 19.25.28326.96 >The CXX compiler identification is MSVC 19.25.28326.96 Interesting vs version you have btw......
Author

@LazyDodo (LazyDodo)

Thanks for your info. We checkout the new svn libs win64_vc15 and rebuild blender pass. Thank you so much.

For Interesting vs version you have btw......

We mainly use open source engineering to test vs unreleased compilers.

@LazyDodo (LazyDodo) Thanks for your info. We checkout the new svn libs win64_vc15 and rebuild blender pass. Thank you so much. For Interesting vs version you have btw...... We mainly use open source engineering to test vs unreleased compilers.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#71994
No description provided.