Blender failed to build due to error C7555,error C1083 with MSVC on windows #101246

Closed
opened 2022-09-21 10:30:10 +02:00 by gongtongtong · 5 comments

Environment:
Windows: windows server 2019
VS: 2019

Blender failed to build due to error C7555: use of designated initializers requires at least '/std:c++20' and fatal error C1083: Cannot open include file: 'epoxy/gl.h': No such file or directory with MSVC on windows.
I have updated the reversion for the dependencies lib win64_vc15 in the Blender class. failed ifomition : error C7555: use of designated initializers requires at least '/std:c++20'.
Then I added the '/std:c++20', but the project also failed. The failure information in build(1).log.
Could you please help take a look at this? Thanks in advance!

Repro steps:
1.Open a VS 2019 x64 command prompt
2.git clone https://git.blender.org/blender.git F:\gitP\blender.git
3.git submodule update --init --recursive
4.cd F:\tools\blender\lib\win64_vc15
5.svn.exe cleanup 2>&1
6.svn.exe update --non-interactive --trust-server-cert 2>&1
7.cd F:\gitP\blender.git\build_amd64
8.set CL=/D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING /D_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS %CL%
9.msbuild /p:Platform=x64 /p:Configuration=Release Blender.sln /t:Rebuild /p:BuildInParallel=true 2>&1

Error Message:
error C7555: use of designated initializers requires at least '/std:c++20' [F:\gitP\blender.git\build_amd64\source\blender\editors\uvedit\bf_editor_uvedit.vcxproj]
fatal error C1083: Cannot open include file: 'epoxy/gl.h': No such file or directory (C:\repos\msvc\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1940) (compiling source file F:\gitP\blender.git\source\blender\gpu\intern\gpu_context.cc) [F:\gitP\blender.git\build_amd64\source\blender\gpu\bf_gpu.vcxproj]
log
build (1).log

**Environment:** Windows: windows server 2019 VS: 2019 Blender failed to build due to error C7555: use of designated initializers requires at least '/std:c++20' and fatal error C1083: Cannot open include file: 'epoxy/gl.h': No such file or directory with MSVC on windows. I have updated the reversion for the dependencies lib win64_vc15 in the Blender class. failed ifomition : error C7555: use of designated initializers requires at least '/std:c++20'. Then I added the '/std:c++20', but the project also failed. The failure information in build(1).log. Could you please help take a look at this? Thanks in advance! **Repro steps:** 1.Open a VS 2019 x64 command prompt 2.git clone https://git.blender.org/blender.git F:\gitP\blender.git 3.git submodule update --init --recursive 4.cd F:\tools\blender\lib\win64_vc15 5.svn.exe cleanup 2>&1 6.svn.exe update --non-interactive --trust-server-cert 2>&1 7.cd F:\gitP\blender.git\build_amd64 8.set _CL_=/D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING /D_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS %_CL_% 9.msbuild /p:Platform=x64 /p:Configuration=Release Blender.sln /t:Rebuild /p:BuildInParallel=true 2>&1 **Error Message:** error C7555: use of designated initializers requires at least '/std:c++20' [F:\gitP\blender.git\build_amd64\source\blender\editors\uvedit\bf_editor_uvedit.vcxproj] fatal error C1083: Cannot open include file: 'epoxy/gl.h': No such file or directory (C:\repos\msvc\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1940) (compiling source file F:\gitP\blender.git\source\blender\gpu\intern\gpu_context.cc) [F:\gitP\blender.git\build_amd64\source\blender\gpu\bf_gpu.vcxproj] **log** [build (1).log](https://archive.blender.org/developer/F13541916/build__1_.log)
Author

Added subscriber: @gongtongtong

Added subscriber: @gongtongtong
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

Changed status from 'Needs Triage' to: 'Archived'

Changed status from 'Needs Triage' to: 'Archived'
Member

Hi, thanks for the report. Build is failing due to complier error. Such issues are not handled on tracker.
Please use [#blender-builds ]] channel. [ https:*devtalk.blender.org/c/blender/building-blender/11 | Dev talk is also the place to discuss build failures.
see: What not to report here

Hi, thanks for the report. Build is failing due to complier error. Such issues are not handled on tracker. Please use [#blender-builds ]] channel. [[ https:*devtalk.blender.org/c/blender/building-blender/11 | Dev talk ](https:*blender.chat/channel/blender-builds) is also the place to discuss build failures. see: [What not to report here ](https://developer.blender.org/maniphest/task/edit/form/1/#:~:text=What%20not%20to,communication%20channels.)
Author

OK, Thank you!

OK, Thank you!
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#101246
No description provided.