c++ - 当交叉编译(Linux 到 Windows)Vulkan 加载器时,有许多未定义的 Vulkan 对象引用
问题描述
使用 mingw-32 cmake 时,来自https://github.com/KhronosGroup/Vulkan-Loader的代码无法编译这是我正在使用的 cmake 命令:x86_64-w64-mingw32-cmake -DVULKAN_HEADERS_INSTALL_DIR=/usr/x86_64-w64-mingw32/ -DVulkanRegistry_DIR=/usr/x86_64-w64-mingw32/share/vulkan/registry/ -DUSE_MASM=OFF ..
哪些输出:
-- The C compiler identification is GNU 11.1.0
-- The CXX compiler identification is GNU 11.1.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/x86_64-w64-mingw32-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/x86_64-w64-mingw32-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found VulkanHeaders: /usr/x86_64-w64-mingw32/include
-- Found VulkanRegistry: /usr/x86_64-w64-mingw32/share/vulkan/registry
-- Detected Vulkan Version 1.2.182
-- Looking for secure_getenv
-- Looking for secure_getenv - not found
-- Looking for __secure_getenv
-- Looking for __secure_getenv - not found
CMake Warning at loader/CMakeLists.txt:27 (message):
Using non-secure environmental lookups. This loader will not properly
disable environent variables when run with elevated permissions.
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.7.3")
-- Configuring done
-- Generating done
-- Build files have been written to: /home/flippers2652/Documents/Temp/Vulkan-Loader/build
make 的输出:https ://pastebin.pl/view/7467739f
谢谢你。
PS发行版是manjaro。
解决方案
问题是我有一个 MASM 汇编器。这导致它尝试了一个它没有做的组装事情。
推荐阅读
- python - 为什么这个 tkinter 登录窗口不起作用?
- sql - 如何使用 sql 选择查询通过动态字段名称更新值
- julia - 使用 Plotly Julia 的下拉选择
- java - 从后台删除应用程序时也没有获取位置更新
- stored-procedures - 当我的存储过程出错时如何设置参数?
- android - 如何获取窗口(如对话框、弹出菜单...)
- reactjs - componentDidMount 没有获得道具值
- asp.net-core - FluentValidation with ASP.NET Core:确保验证处于活动状态
- docker - 为什么让 Docker 选择一个端口
- angular - 无法绑定到“ngModel”,因为它不是“ng-toggle”的已知属性