Ubuntu下对Qt Creator安装编译器

安装g++:

sudo apt-get install g++

安装minGW-64:

sudo apt-get update
sudo apt-get install mingw-w64
i686-w64-mingw32-g++          //编译器将在64位系统上构建32位应用程序
x86_64-w64-mingw32-g++        //编译器将在64位系统上构建64位应用程序

 

Qt Creator配置:

1.【选项】-【Kits】-【编译器】,点“Re-detect”

2.【选项】-【Kits】-【Kits】,Compiler选项配置GCC编译器

posted @ 2022-03-18 18:38  AlexSun_2021  阅读(433)  评论(0编辑  收藏  举报