Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

OCIO 2.6.0 FTBFS with MinGW

未关闭
#2,358 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 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 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

AcademySoftwareFoundation/OpenColorIO 的其他 Issue

查看 AcademySoftwareFoundation/OpenColorIO 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。