QT_解决的问题
linux下
Ubuntu22.04打开QT5只显示pro文件(Ubuntu安装QT)
sudo apt install gcc
sudo apt install g++
sudo apt install clang
sudo apt install clang+
sudo apt install make
sudo snap install cmake --classic
#安装Qt5的组件
sudo apt-get install build-essential
#安装Qt的开发工具
sudo apt-get install qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools
#安装qtcreator
sudo apt-get install qtcreator
#安装qt
sudo apt-get install qt5*
error: ‘QtSerialPort/QSerialPortInfo’ file not found
error: ‘QtSerialPort/QSerialPort’ file not found
error: Project ERROR: Unknown module(s) in QT: serialport
sudo apt-get install libqt5serialport5
sudo apt-get install libqt5serialport5-dev
fatal error: bits/c++config.h: No such file or directory
sudo apt-get install gcc-multilib g++-multilib
Error while building/deploying project…When executing step “qmake”
项目构建目录是红色,目录有问题
windows下
Error while building/deploying project Serial_communication (kit: Desktop Qt 5.14.2 MinGW 64-bit)
When executing step “qmake”
项目在中文路径下;
应用无法正常启动(0xc000007b)。
D:\app\qt5.14.2\5.14.2\5.14.2\mingw73_64\bin
将对应的编译器打开复制bin路径,添加环境变量
xxx dose not name a type
两个头文件互相包含对方;