Ubuntu上的QT5中未定义配置

Ubuntu上的QT5中未定义配置,qt,ubuntu,Qt,Ubuntu,我的目标是在Ubuntu(Ubuntu18.04.4LTS)上的QtCreator5中执行简单的“HelloWorld”代码。为此,我安装了QtCreator及其库。当我创建一个非Qt项目的简单C++应用程序并执行它时,我得到以下错误: Impossible to deploy : no defined configuration Error while compilation/deployment of the project (kit : desktop) When executing st

我的目标是在Ubuntu(Ubuntu18.04.4LTS)上的QtCreator5中执行简单的“HelloWorld”代码。为此,我安装了QtCreator及其库。当我创建一个非Qt项目的简单C++应用程序并执行它时,我得到以下错误:

Impossible to deploy : no defined configuration
Error while compilation/deployment of the project (kit : desktop)
When executing step "Send files via SFTP"
我验证了使用过的工具包,在Qt版本字段中,路径(qt5)中有:Qt 5.9.5

此外,当将“外围设备类型”字段置于“桌面”和“移动设备”字段置于“本地PC”时,我得到以下错误:

In file included from ../wx/main.cpp:1:0:
/usr/include/c++/7/iostream:38:10: fatal error: bits/c++config.h: No 
such file or directory
#include <bits/c++config.h>
      ^~~~~~~~~~~~~~~~~~
compilation terminated.
Makefile:315: recipe for target 'main.o' failed
make: *** [main.o] Error 1
16:50:39: Le processus "/usr/bin/make" s'est terminé avec le code 2.
Erreur lors de la compilation/déploiement du projet wx (kit : Desktop)
The kit Desktop has configuration issues which might be the root cause 
for this problem.
When executing step "Make"
包含在../wx/main.cpp:1:0:
/usr/include/c++/7/iostream:38:10:致命错误:bits/c++config.h:否
这样的文件或目录
#包括
^~~~~~~~~~~~~~~~~~
编译终止。
Makefile:315:目标“main.o”的配方失败
make:**[main.o]错误1
16:50:39:Le processus”/usr/bin/make“这是代码2的最新终端。
项目wx的汇编/开发(工具包:桌面)
工具包桌面存在配置问题,这可能是根本原因
对于这个问题。
执行步骤“Make”时

有什么想法吗?谢谢

看起来它(未完全)设置为部署到另一个(嵌入式)设备,但我只使用一台笔记本电脑。你说的是哪种设备?确保你的工具包中配置了“设备:本地PC”,而不是其他设备。我在更改了“外围类型”和“移动设备”(如你建议的)字段后编辑了问题,并在收到新错误:bits/C++config.h没有这样的文件或目录,问题似乎与跨平台编译问题有关。为了重新解决这个问题,我安装了带有“sudo apt install g++-multilib”的multilib包,它运行良好。谢谢看起来它(不完全)设置为部署到另一个(嵌入式)设备,但我只使用一台笔记本电脑。你说的是哪种设备?确保你的工具包中配置了“设备:本地PC”,而不是其他设备。我在更改了“外围类型”和“移动设备”(如你建议的)字段后编辑了问题,并在收到新错误:bits/C++config.h没有这样的文件或目录,问题似乎与跨平台编译问题有关。为了重新解决这个问题,我安装了带有“sudo apt install g++-multilib”的multilib包,它运行良好。非常感谢。