我正在尝试使用介子 0.51.1 交叉编译应用程序
我的构建系统:Linux
主机系统:Windows
该应用程序依赖于 meson wrap db 中的 freetype2: https ://wrapdb.mesonbuild.com/v1/projects/freetype2/2.9.1/1/get_wrap
我不断收到以下错误:
meson.build: ERROR: Could not find Windows resource compiler
投诉是关于 freetype 的 meson.build 文件中的以下行:
winmod = import('windows')
base_sources += [
'builds/windows/ftdebug.c',
winmod.compile_resources('src/base/ftver.rc'),
]
我的交叉文件如下所示:
[binaries]
c = ['ccache', 'i686-w64-mingw32-gcc']
cpp = ['ccache', 'i686-w64-mingw32-g++']
ar = 'i686-w64-mingw32-ar'
strip = 'i686-w64-mingw32-strip'
exe_wrapper = 'WINEPREFIX=~/.wine64 wine'
windres = 'i686-w64-mingw32-windres'
[properties]
needs_exe_wrapper = true
[host_machine]
system = 'windows'
cpu_family = 'i686'
cpu = 'i686'
endian = 'little'
i686-w64-mingw32-windres 已安装:
$ i686-w64-mingw32-windres --version
GNU windres (GNU Binutils) 2.32.51.20190707
Copyright (C) 2019 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) any later version.
This program has absolutely no warranty.
我尝试按照听到https://mesonbuild.com/Windows-module.html的描述设置 WINDRES 变量。它也无济于事。