Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable Win32 clipboard and IME functions when build target UWP (#2892) #2895

Closed
wants to merge 1 commit into from

Conversation

linuxaged
Copy link
Contributor

Fix #2892
Maybe more job to do to make clipboard and IME work on UWP platform.

@ocornut
Copy link
Owner

ocornut commented Nov 15, 2019 via email

@linuxaged
Copy link
Contributor Author

IME is not supported on UWP too, i think, the Error:

生成启动时间为 2019/11/15 16:54:03。
     1>节点 1 上的项目“C:\workspace\vcpkg\buildtrees\imgui\x86-uwp-dbg\install.vcxproj”(默认目标)。
     1>项目“C:\workspace\vcpkg\buildtrees\imgui\x86-uwp-dbg\install.vcxproj”(1)正在节点 1 上生成“C:\workspace\vcpkg\buildtrees\imgui\x86-uwp-dbg\ZERO_CHECK.vcxproj”(2) (默认目标)。
     2>PrepareForBuild:
         正在创建目录“Win32\Debug\ZERO_CHECK\”。
         正在创建目录“C:\workspace\vcpkg\buildtrees\imgui\x86-uwp-dbg\Debug\”。
         正在创建目录“Win32\Debug\ZERO_CHECK\ZERO_CHECK.tlog\”。
       InitializeBuildStatus:
         正在创建“Win32\Debug\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild”,因为已指定“AlwaysCreate”。
       CustomBuild:
         Checking Build System
       FinalizeBuildStatus:
         正在删除文件“Win32\Debug\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild”。
         正在对“Win32\Debug\ZERO_CHECK\ZERO_CHECK.tlog\ZERO_CHECK.lastbuildstate”执行 Touch 任务。
     2>已完成生成项目“C:\workspace\vcpkg\buildtrees\imgui\x86-uwp-dbg\ZERO_CHECK.vcxproj”(默认目标)的操作。
     1>项目“C:\workspace\vcpkg\buildtrees\imgui\x86-uwp-dbg\install.vcxproj”(1)正在节点 2 上生成“C:\workspace\vcpkg\buildtrees\imgui\x86-uwp-dbg\ALL_BUILD.vcxproj”(3) (默认目标)。
     3>项目“C:\workspace\vcpkg\buildtrees\imgui\x86-uwp-dbg\ALL_BUILD.vcxproj”(3)正在节点 2 上生成“C:\workspace\vcpkg\buildtrees\imgui\x86-uwp-dbg\imgui.vcxproj”(4) (默认目标)。
     4>PrepareForBuild:
         正在创建目录“imgui.dir\Debug\”。
         正在创建目录“imgui.dir\Debug\imgui.tlog\”。
         正在创建目录“Generated Files\”。
       GetInstalledSDKLocations:
         搜索以“UAP, 10.0.18362.0”为目标的 SDK。
         搜索以“Windows, 8.1”为目标的 SDK。
       ResolveSDKReferences:
           读取 SDK 清单文件“C:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs\Microsoft.VCLibs\14.0\SDKManifest.xml”。
           目标配置和体系结构“Debug|x86”
           在 SDK 清单中找不到“FrameworkIdentity”特性“FrameworkIdentity-Debug-x86”。 
           在 SDK 清单中找到了“FrameworkIdentity”特性“Name = Microsoft.VCLibs.140.00.Debug, MinVersion = 14.0.27323.0, Publisher = 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US'”。
           在 SDK 清单中找到了“APPX”位置特性“AppX-Debug-x86=.\AppX\Debug\x86\Microsoft.VCLibs.x86.Debug.14.00.appx”。
           在 SDK 清单中找到了“APPX”位置特性“AppX-Debug-x64=.\AppX\Debug\x64\Microsoft.VCLibs.x64.Debug.14.00.appx”。
           在 SDK 清单中找到了“APPX”位置特性“AppX-Debug-ARM=.\AppX\Debug\ARM\Microsoft.VCLibs.ARM.Debug.14.00.appx”。
           在 SDK 清单中找到了“APPX”位置特性“AppX-Debug-ARM64=.\AppX\Debug\ARM64\Microsoft.VCLibs.ARM64.Debug.14.00.appx”。
       ExpandSDKReferences:
         枚举“C:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs\Microsoft.VCLibs\14.0\”中的 SDK 引用“Microsoft.VCLibs, Version=14.0”。
       InitializeBuildStatus:
         正在创建“imgui.dir\Debug\imgui.tlog\unsuccessfulbuild”,因为已指定“AlwaysCreate”。
       CustomBuild:
         Building Custom Rule C:/workspace/vcpkg/buildtrees/imgui/src/head/master-c5302e73ef/CMakeLists.txt
       ClCompile:
         C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\bin\HostX64\x86\CL.exe /c /I"C:\workspace\vcpkg\buildtrees\imgui\x86-uwp-dbg\\" /I"Generated Files\\" /Iimgui.dir\Debug\ /Z7 /W3 /WX- /diagnostics:column /sdl /MP /Od /Ob0 /Oi /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _UNICODE /D UNICODE /D WINAPI_FAMILY=WINAPI_FAMILY_APP /D __WRL_NO_DEFAULT_LIB__ /Gm- /EHsc /RTC1 /MDd /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"imgui.dir\Debug\\" /Fd"imgui.dir\Debug\imgui.pdb" /Gd /TP /FU"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\lib\x86\store\references\platform.winmd" /analyze- /errorReport:queue  /utf-8 "C:\workspace\vcpkg\buildtrees\imgui\src\head\master-c5302e73ef\imgui.cpp" "C:\workspace\vcpkg\buildtrees\imgui\src\head\master-c5302e73ef\imgui_demo.cpp" "C:\workspace\vcpkg\buildtrees\imgui\src\head\master-c5302e73ef\imgui_draw.cpp" "C:\workspace\vcpkg\buildtrees\imgui\src\head\master-c5302e73ef\imgui_widgets.cpp"
         Microsoft (R) C/C++ Optimizing Compiler Version 19.23.28107 for x86
         Copyright (C) Microsoft Corporation.  All rights reserved.
         cl /c /I"C:\workspace\vcpkg\buildtrees\imgui\x86-uwp-dbg\\" /I"Generated Files\\" /Iimgui.dir\Debug\ /Z7 /W3 /WX- /diagnostics:column /sdl /MP /Od /Ob0 /Oi /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _UNICODE /D UNICODE /D WINAPI_FAMILY=WINAPI_FAMILY_APP /D __WRL_NO_DEFAULT_LIB__ /Gm- /EHsc /RTC1 /MDd /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"imgui.dir\Debug\\" /Fd"imgui.dir\Debug\imgui.pdb" /Gd /TP /FU"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\lib\x86\store\references\platform.winmd" /analyze- /errorReport:queue  /utf-8 "C:\workspace\vcpkg\buildtrees\imgui\src\head\master-c5302e73ef\imgui.cpp" "C:\workspace\vcpkg\buildtrees\imgui\src\head\master-c5302e73ef\imgui_demo.cpp" "C:\workspace\vcpkg\buildtrees\imgui\src\head\master-c5302e73ef\imgui_draw.cpp" "C:\workspace\vcpkg\buildtrees\imgui\src\head\master-c5302e73ef\imgui_widgets.cpp"
         cl /c /I"C:\workspace\vcpkg\buildtrees\imgui\x86-uwp-dbg\\" /I"Generated Files\\" /Iimgui.dir\Debug\ /Z7 /W3 /WX- /diagnostics:column /sdl /MP /Od /Ob0 /Oi /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _UNICODE /D UNICODE /D WINAPI_FAMILY=WINAPI_FAMILY_APP /D __WRL_NO_DEFAULT_LIB__ /Gm- /EHsc /RTC1 /MDd /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"imgui.dir\Debug\\" /Fd"imgui.dir\Debug\imgui.pdb" /Gd /TP /FU"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\lib\x86\store\references\platform.winmd" /analyze- /errorReport:queue  /utf-8 "C:\workspace\vcpkg\buildtrees\imgui\src\head\master-c5302e73ef\imgui.cpp" "C:\workspace\vcpkg\buildtrees\imgui\src\head\master-c5302e73ef\imgui_demo.cpp" "C:\workspace\vcpkg\buildtrees\imgui\src\head\master-c5302e73ef\imgui_draw.cpp" "C:\workspace\vcpkg\buildtrees\imgui\src\head\master-c5302e73ef\imgui_widgets.cpp"
         cl /c /I"C:\workspace\vcpkg\buildtrees\imgui\x86-uwp-dbg\\" /I"Generated Files\\" /Iimgui.dir\Debug\ /Z7 /W3 /WX- /diagnostics:column /sdl /MP /Od /Ob0 /Oi /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _UNICODE /D UNICODE /D WINAPI_FAMILY=WINAPI_FAMILY_APP /D __WRL_NO_DEFAULT_LIB__ /Gm- /EHsc /RTC1 /MDd /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"imgui.dir\Debug\\" /Fd"imgui.dir\Debug\imgui.pdb" /Gd /TP /FU"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\lib\x86\store\references\platform.winmd" /analyze- /errorReport:queue  /utf-8 "C:\workspace\vcpkg\buildtrees\imgui\src\head\master-c5302e73ef\imgui.cpp" "C:\workspace\vcpkg\buildtrees\imgui\src\head\master-c5302e73ef\imgui_demo.cpp" "C:\workspace\vcpkg\buildtrees\imgui\src\head\master-c5302e73ef\imgui_draw.cpp" "C:\workspace\vcpkg\buildtrees\imgui\src\head\master-c5302e73ef\imgui_widgets.cpp"
         imgui.cpp
         imgui_demo.cpp
         cl /c /I"C:\workspace\vcpkg\buildtrees\imgui\x86-uwp-dbg\\" /I"Generated Files\\" /Iimgui.dir\Debug\ /Z7 /W3 /WX- /diagnostics:column /sdl /MP /Od /Ob0 /Oi /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _UNICODE /D UNICODE /D WINAPI_FAMILY=WINAPI_FAMILY_APP /D __WRL_NO_DEFAULT_LIB__ /Gm- /EHsc /RTC1 /MDd /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"imgui.dir\Debug\\" /Fd"imgui.dir\Debug\imgui.pdb" /Gd /TP /FU"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\lib\x86\store\references\platform.winmd" /analyze- /errorReport:queue  /utf-8 "C:\workspace\vcpkg\buildtrees\imgui\src\head\master-c5302e73ef\imgui.cpp" "C:\workspace\vcpkg\buildtrees\imgui\src\head\master-c5302e73ef\imgui_demo.cpp" "C:\workspace\vcpkg\buildtrees\imgui\src\head\master-c5302e73ef\imgui_draw.cpp" "C:\workspace\vcpkg\buildtrees\imgui\src\head\master-c5302e73ef\imgui_widgets.cpp"
         cl /c /I"C:\workspace\vcpkg\buildtrees\imgui\x86-uwp-dbg\\" /I"Generated Files\\" /Iimgui.dir\Debug\ /Z7 /W3 /WX- /diagnostics:column /sdl /MP /Od /Ob0 /Oi /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _UNICODE /D UNICODE /D WINAPI_FAMILY=WINAPI_FAMILY_APP /D __WRL_NO_DEFAULT_LIB__ /Gm- /EHsc /RTC1 /MDd /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"imgui.dir\Debug\\" /Fd"imgui.dir\Debug\imgui.pdb" /Gd /TP /FU"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\lib\x86\store\references\platform.winmd" /analyze- /errorReport:queue  /utf-8 "C:\workspace\vcpkg\buildtrees\imgui\src\head\master-c5302e73ef\imgui.cpp" "C:\workspace\vcpkg\buildtrees\imgui\src\head\master-c5302e73ef\imgui_demo.cpp" "C:\workspace\vcpkg\buildtrees\imgui\src\head\master-c5302e73ef\imgui_draw.cpp" "C:\workspace\vcpkg\buildtrees\imgui\src\head\master-c5302e73ef\imgui_widgets.cpp"
         imgui_draw.cpp
         imgui_widgets.cpp
     4>C:\workspace\vcpkg\buildtrees\imgui\src\head\master-c5302e73ef\imgui.cpp(9629,27): error C2039: 'ImmGetContext': is not a member of '`global namespace'' [C:\workspace\vcpkg\buildtrees\imgui\x86-uwp-dbg\imgui.vcxproj]
     4>C:\workspace\vcpkg\buildtrees\imgui\src\head\master-c5302e73ef\imgui.cpp(9629,12): error C3861: 'ImmGetContext': identifier not found [C:\workspace\vcpkg\buildtrees\imgui\x86-uwp-dbg\imgui.vcxproj]
     4>C:\workspace\vcpkg\buildtrees\imgui\src\head\master-c5302e73ef\imgui.cpp(9635,15): error C2039: 'ImmSetCompositionWindow': is not a member of '`global namespace'' [C:\workspace\vcpkg\buildtrees\imgui\x86-uwp-dbg\imgui.vcxproj]
     4>C:\workspace\vcpkg\buildtrees\imgui\src\head\master-c5302e73ef\imgui.cpp(9635,38): error C3861: 'ImmSetCompositionWindow': identifier not found [C:\workspace\vcpkg\buildtrees\imgui\x86-uwp-dbg\imgui.vcxproj]
     4>C:\workspace\vcpkg\buildtrees\imgui\src\head\master-c5302e73ef\imgui.cpp(9636,15): error C2039: 'ImmReleaseContext': is not a member of '`global namespace'' [C:\workspace\vcpkg\buildtrees\imgui\x86-uwp-dbg\imgui.vcxproj]
     4>C:\workspace\vcpkg\buildtrees\imgui\src\head\master-c5302e73ef\imgui.cpp(9636,32): error C3861: 'ImmReleaseContext': identifier not found [C:\workspace\vcpkg\buildtrees\imgui\x86-uwp-dbg\imgui.vcxproj]
     4>已完成生成项目“C:\workspace\vcpkg\buildtrees\imgui\x86-uwp-dbg\imgui.vcxproj”(默认目标)的操作 - 失败。
     3>已完成生成项目“C:\workspace\vcpkg\buildtrees\imgui\x86-uwp-dbg\ALL_BUILD.vcxproj”(默认目标)的操作 - 失败。
     1>已完成生成项目“C:\workspace\vcpkg\buildtrees\imgui\x86-uwp-dbg\install.vcxproj”(默认目标)的操作 - 失败。

生成失败。

       “C:\workspace\vcpkg\buildtrees\imgui\x86-uwp-dbg\install.vcxproj”(默认目标) (1) ->
       “C:\workspace\vcpkg\buildtrees\imgui\x86-uwp-dbg\ALL_BUILD.vcxproj”(默认目标) (3) ->
       “C:\workspace\vcpkg\buildtrees\imgui\x86-uwp-dbg\imgui.vcxproj”(默认目标) (4) ->
       (ClCompile 目标) -> 
         C:\workspace\vcpkg\buildtrees\imgui\src\head\master-c5302e73ef\imgui.cpp(9629,27): error C2039: 'ImmGetContext': is not a member of '`global namespace'' [C:\workspace\vcpkg\buildtrees\imgui\x86-uwp-dbg\imgui.vcxproj]
         C:\workspace\vcpkg\buildtrees\imgui\src\head\master-c5302e73ef\imgui.cpp(9629,12): error C3861: 'ImmGetContext': identifier not found [C:\workspace\vcpkg\buildtrees\imgui\x86-uwp-dbg\imgui.vcxproj]
         C:\workspace\vcpkg\buildtrees\imgui\src\head\master-c5302e73ef\imgui.cpp(9635,15): error C2039: 'ImmSetCompositionWindow': is not a member of '`global namespace'' [C:\workspace\vcpkg\buildtrees\imgui\x86-uwp-dbg\imgui.vcxproj]
         C:\workspace\vcpkg\buildtrees\imgui\src\head\master-c5302e73ef\imgui.cpp(9635,38): error C3861: 'ImmSetCompositionWindow': identifier not found [C:\workspace\vcpkg\buildtrees\imgui\x86-uwp-dbg\imgui.vcxproj]
         C:\workspace\vcpkg\buildtrees\imgui\src\head\master-c5302e73ef\imgui.cpp(9636,15): error C2039: 'ImmReleaseContext': is not a member of '`global namespace'' [C:\workspace\vcpkg\buildtrees\imgui\x86-uwp-dbg\imgui.vcxproj]
         C:\workspace\vcpkg\buildtrees\imgui\src\head\master-c5302e73ef\imgui.cpp(9636,32): error C3861: 'ImmReleaseContext': identifier not found [C:\workspace\vcpkg\buildtrees\imgui\x86-uwp-dbg\imgui.vcxproj]

    0 个警告
    6 个错误

已用时间 00:00:01.39

@ocornut
Copy link
Owner

ocornut commented Nov 15, 2019 via email

@ocornut
Copy link
Owner

ocornut commented Nov 15, 2019

Merged, thank you!

@ocornut ocornut closed this Nov 15, 2019
ocornut added a commit that referenced this pull request Mar 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UWP compile error C2039: OpenClipboard: is not a member of global namespace
2 participants