相关疑难解决方法(0)

将字符串列表传递给for循环

如何将列表传递给forbash?

我试过了

echo "some
different
lines
" | for i ; do 
  echo do something with $i; 
done
Run Code Online (Sandbox Code Playgroud)

但这不起作用.我也试图找到一个解释,man但没有man for

编辑:

我知道,我可以使用while,但我想我曾经看过一个解决方案for,他们没有定义变量,但可以在循环内使用它

bash

6
推荐指数
2
解决办法
6166
查看次数

从6.5.0开始,需要xcb-cursor0或libxcb-cursor0来加载Qt xcb平台插件

我在 Ubuntu 20.04.6 LTS 上使用 Qt。我收到了有关 Qt 更新的通知,因此我更新了 Qt。之后,每当我尝试打开 Qt Creator 时,都会收到此错误:

\n
from 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin. \nCould not load the Qt platform plugin "xcb" in "" even though it was found.\nThis application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.\n\nAvailable platform plugins are: minimalegl, scb, eglfs, minimal, linuxfb, vkkhrdisplay, offscreen, vnc, wayland, wayland-egl.\n
Run Code Online (Sandbox Code Playgroud)\n

我尝试卸载并重新安装 Qt,但没有帮助。我还研究了 Stack Overflow 和其他平台上提供的其他问题和答案,但没有一个能解决我的问题。 …

c++ ubuntu qt qt6

6
推荐指数
1
解决办法
3646
查看次数

标签 统计

bash ×1

c++ ×1

qt ×1

qt6 ×1

ubuntu ×1