我已经在C++中设置了一个简单的hello world,并使用meson & ninja作为构建链。这个项目编译得很好,但当我按下Run按钮时,它只会运行忍者,然后是忍者安装:
ninja
ninja install
ninja: no work to do.
[0/1] Installing files.
Nothing to install.我还收到了以下警告:
ide-run-manager[ 17574]: WARNING: Failed to locate any build targets# meson.build
project('test', 'cpp')
executable('hello', 'src/main.cpp')我一直在研究gnome-builder的非常有限的设置,但没有找到任何地方来设置Run应该运行的构建目标。我只想让它运行我的hello程序。
编辑:我在this reddit thread找到了解决方案。您必须将可执行文件标记为install。然后gnome-builder安装应用程序并运行它。
发布于 2020-04-15 17:29:31
https://stackoverflow.com/questions/61030065
复制相似问题