Mesonfilenotfounderror:[errno 2]没有这样的文件或目录:'mono'

问题描述 投票:0回答:1
所有工作有效。除了,当我尝试做

meson test -c builddir

时,梅森给了我一个:
FileNotFoundError: [Errno 2] No such file or directory: 'mono'

在Linux上运行简单的测试用例需要什么?
    

问题是,在Windows上运行时,可执行文件是
mono

Suffix

.exe

。当您使用Linux时,快速简便的修复是简单地将后缀更改为
meson-build
1个回答
0
投票

exe = executable( 'main.bin', # Do not use .exe here 'main.cu', link_args: '-fopenmp', cuda_args: '-Xcompiler=-fopenmp', ) test('simple_run', exe)

可以很好地运行。决定尝试在Linux上尝试使用
.exe
文件
mono

文件的决定来自Meson中的此精确
line


最新问题
© www.soinside.com 2019 - 2025. All rights reserved.