OCIO 2.6.0 FTBFS with MinGW
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 70/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- cmake, cpp
- 领域
- build-system
调研方向
Start with src/libutils/oglapphelpers/dxapp.cpp at the failing _uuidof calls and inspect the WIN32 configuration around line 291 of CMakeLists.txt. Reproduce the MinGW build with DirectX enabled and trace how the toolchain is selected. Done means OCIO 2.6.0 builds successfully on MinGW without the reported dxapp.cpp errors.
由索引模型根据 Issue 内容生成。
描述
Newly released OCIO 2.6.0 FTBFS on MinGW because it enables DirectX OOTB:
FAILED: [code=1] src/libutils/oglapphelpers/CMakeFiles/oglapphelpers.dir/dxapp.cpp.obj
D:\M\msys64\ucrt64\bin\g++.exe -DOCIO_DIRECTX_ENABLED -DOCIO_GL_ENABLED -ID:/_/B/src/OpenColorIO-2.6.0/src/libutils/oglapphelpers -ID:/_/B/src/OpenColorIO-2.6.0/include/OpenColorIO/.. -ID:/_/B/src/OpenColorIO-2.6.0/include/OpenColorIO -ID:/_/B/src/OpenColorIO-2.6.0/src/OpenColorIO -ID:/_/B/src/build-UCRT64/include/OpenColorIO -ID:/_/B/src/build-UCRT64/src/OpenColorIO -isystem D:/_/B/src/build-UCRT64/ext/build/DirectX-Headers/directx-headers-src/include -march=nocona -msahf -mtune=generic -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wp,-D__USE_MINGW_ANSI_STDIO=1 -O3 -DNDEBUG -std=c++17 -fvisibility=hidden -fno-keep-inline-dllexport -DUSE_GCC -Wall -Wextra -Wswitch-enum -MD -MT src/libutils/oglapphelpers/CMakeFiles/oglapphelpers.dir/dxapp.cpp.obj -MF src\libutils\oglapphelpers\CMakeFiles\oglapphelpers.dir\dxapp.cpp.obj.d -o src/libutils/oglapphelpers/CMakeFiles/oglapphelpers.dir/dxapp.cpp.obj -c D:/_/B/src/OpenColorIO-2.6.0/src/libutils/oglapphelpers/dxapp.cpp
In file included from D:/M/msys64/ucrt64/include/winbase.h:2864,
from D:/M/msys64/ucrt64/include/windows.h:70,
from D:/M/msys64/ucrt64/include/rpc.h:16,
from D:/_/B/src/build-UCRT64/ext/build/DirectX-Headers/directx-headers-src/include/directx/d3d12.h:26,
from D:/_/B/src/build-UCRT64/ext/build/DirectX-Headers/directx-headers-src/include/directx/d3dx12.h:11,
from D:/_/B/src/OpenColorIO-2.6.0/src/libutils/oglapphelpers/hlsl.h:15,
from D:/_/B/src/OpenColorIO-2.6.0/src/libutils/oglapphelpers/dxapp.h:10,
from D:/_/B/src/OpenColorIO-2.6.0/src/libutils/oglapphelpers/dxapp.cpp:10:
D:/_/B/src/OpenColorIO-2.6.0/src/libutils/oglapphelpers/dxapp.cpp: In function 'void OpenColorIO_v2_6::{anonymous}::GetHardwareAdapter(IDXGIFactory1*, IDXGIAdapter1**, bool)':
D:/_/B/src/OpenColorIO-2.6.0/src/libutils/oglapphelpers/dxapp.cpp:59:112: error: expected primary-expression before ')' token
59 | if (SUCCEEDED(D3D12CreateDevice(adapter.Get(), D3D_FEATURE_LEVEL_11_0, _uuidof(ID3D12Device), nullptr)))
| ^
D:/_/B/src/OpenColorIO-2.6.0/src/libutils/oglapphelpers/dxapp.cpp:59:92: error: '_uuidof' was not declared in this scope
59 | if (SUCCEEDED(D3D12CreateDevice(adapter.Get(), D3D_FEATURE_LEVEL_11_0, _uuidof(ID3D12Device), nullptr)))
| ^~~~~~~
D:/_/B/src/OpenColorIO-2.6.0/src/libutils/oglapphelpers/dxapp.cpp:78:112: error: expected primary-expression before ')' token
78 | if (SUCCEEDED(D3D12CreateDevice(adapter.Get(), D3D_FEATURE_LEVEL_11_0, _uuidof(ID3D12Device), nullptr)))
| ^
D:/_/B/src/OpenColorIO-2.6.0/src/libutils/oglapphelpers/dxapp.cpp:78:92: error: '_uuidof' was not declared in this scope
78 | if (SUCCEEDED(D3D12CreateDevice(adapter.Get(), D3D_FEATURE_LEVEL_11_0, _uuidof(ID3D12Device), nullptr)))
| ^~~~~~~
D:/_/B/src/OpenColorIO-2.6.0/src/libutils/oglapphelpers/dxapp.cpp: In constructor 'OpenColorIO_v2_6::DxApp::DxApp(const char*, int, int)':
D:/_/B/src/OpenColorIO-2.6.0/src/libutils/oglapphelpers/dxapp.cpp:94:35: warning: missing initializer for member 'tagWNDCLASSEXA::style' [-Wmissing-field-initializers]
94 | WNDCLASSEXA windowClass = { 0 };
| ^
Note that in CMake if(WIN32) tests cover Windows as a platform in general (incl. MinGW), not a specific toolchain.
- 主要语言
- C++
- 星标
- 2.1k
- 派生
- 502
- 平均合并
- 6 天 3 小时
- 30 天内合并 PR
- 6
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
AcademySoftwareFoundation/OpenColorIO 的其他 Issue
-
Inconsistent run-time library usage for locale handling breaks GPU code generation on some systems.未关闭
难度 2/5 1-3 小时 新手友好度 86/100
AcademySoftwareFoundation/OpenColorIO#2351 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
AcademySoftwareFoundation/OpenColorIO#2340 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
AcademySoftwareFoundation/OpenColorIO#2329 ·
维护者通常 1 天内回复
-
Build failure on GCC/MinGW (MXE): std::ifstream constructor mismatch with Platform::filenameToUTF()未关闭
难度 2/5 1-3 小时 新手友好度 78/100
AcademySoftwareFoundation/OpenColorIO#2283 ·
维护者通常 1 天内回复
-
Documentation
难度 1/5 1 小时以内 新手友好度 72/100
AcademySoftwareFoundation/OpenColorIO#2280 · 1 条评论 ·
维护者通常 1 天内回复
查看 AcademySoftwareFoundation/OpenColorIO 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 74/100
eclipse-score/inc_someip_gateway#356 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
HarperFast/rocksdb-js#945 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 85/100
维护者通常 1 天内回复
-
[Other] error detected in the compilation of Strata/src/qwen35/q36_engine.cu可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭needs-format
难度 2/5 1-3 小时 新手友好度 69/100
Niko1221/Strata#3368 · 1 条评论 ·
维护者通常 3 天内回复