Mac配置QT

简介: Mac配置QT
+关注继续查看

Mac配置QT

前言:

系统版本:Ventura 13.2.1 (22D68)


先安装homebrew,参考:


https://blog.csdn.net/ZCC361571217/article/details/127333754


Mac配置:

1.安装Qt与Qt Creator:

通过Homebrew安装(若没Homebrew,先安装Homebrew):

brew install qt
brew install qt-creator

2.查看qt信息

brew info qt

记录其中的版本与地址:

==> qt: stable 6.4.2 (bottled), HEAD
Cross-platform application and UI framework
https://www.qt.io/
/opt/homebrew/Cellar/qt/6.4.2_2 (13,493 files, 571.1MB) *
  Poured from bottle using the formulae.brew.sh API on 2023-02-23 at 17:25:06
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/qt.rb
License: BSD-3-Clause and GFDL-1.3-no-invariants-only and GPL-2.0-only and (GPL-3.0-only with Qt-GPL-exception-1.0) and LGPL-3.0-only

版本:qt: stable 6.4.2 (bottled), HEAD


地址:/opt/homebrew/Cellar/qt/6.4.2_2


3.配置Qt

配置Qt版本:


根据箭头一步步配置,最终要往qt-creator中设置好相应qt版本

3c68c9ad7414bdc1f092dc2dd196799b.png

配置Kit:

4f1bfc524c6a2b889fd7b10b92a1ccfc.png

注意Qt版本要与之前设置的一致


参考:


这篇不错,按照这个安装即可。


https://blog.csdn.net/SCU_Cindy/article/details/128412106


遇到的问题:

问题:在配置Kits后,创建新项目时,无法使用Kits


解决:重新配置Kits,将老的配置删除,再次配置,重点注意下方的Qt version


我之前是Qt 6.4.2 (invalid),当时没怎么在意,结果后面kit一直无法用。


最后,重新安装qt和qt-creator,成功解决问题。

2268536ab2f780250c9c35ce3d12fb06.png

总结:

总的来说,通过homebrew来安装qt和qt-creator,安装完后采用


brew info qt 与 brew into qtcreator


来查看相应安装信息,以确认是否所有的包都安装上了。


中间可能会出现Kit无法使用的问题,建议按照上面的清单重新配置即可,如果实在不行,可以通过重新安装qt和qt-creator来解决问题。


相关文章
|
15天前
|
jenkins Java 持续交付
Mac下安装与配置Jenkins
Mac下安装与配置Jenkins
22 0
|
21天前
|
数据安全/隐私保护 Windows
Mac 或Windows下配置hosts文件
Mac 或Windows下配置hosts文件
20 0
|
26天前
Mac配置adb环境
Mac配置adb环境
19 0
|
26天前
|
Java Apache Maven
Mac 安装与配置Maven
Mac 安装与配置Maven
29 0
|
27天前
|
安全 网络协议 网络安全
Mac git 配置ssh
Mac git 配置ssh
13 0
|
28天前
|
缓存 网络安全 开发工具
Mac/Windows Git配置SSH和Git常用命令及iTerm2使用技巧
Mac/Windows Git配置SSH和Git常用命令及iTerm2使用技巧
56 0
|
1月前
|
前端开发 应用服务中间件 C++
使用Servlet实现表白墙网站(前后端互联)小项目,Mac的M1(没有setting)在哪里找到Setting页面,下载smart tomcat及smart tomcat的配置。(二)
使用Servlet实现表白墙网站(前后端互联)小项目,Mac的M1(没有setting)在哪里找到Setting页面,下载smart tomcat及smart tomcat的配置。
使用Servlet实现表白墙网站(前后端互联)小项目,Mac的M1(没有setting)在哪里找到Setting页面,下载smart tomcat及smart tomcat的配置。(二)
|
1月前
|
JSON 前端开发 JavaScript
使用Servlet实现表白墙网站(前后端互联)小项目,Mac的M1(没有setting)在哪里找到Setting页面,下载smart tomcat及smart tomcat的配置。(一)
使用Servlet实现表白墙网站(前后端互联)小项目,Mac的M1(没有setting)在哪里找到Setting页面,下载smart tomcat及smart tomcat的配置。
|
1月前
|
NoSQL Linux Redis
Redis安装与配置指南:适用于Windows、Mac和Linux系统的详细教程
Redis安装与配置指南:适用于Windows、Mac和Linux系统的详细教程
67 0
|
1月前
|
Java Linux Apache
Maven下载和配置教程:Windows、Mac和Linux系统安装指南
Maven下载和配置教程:Windows、Mac和Linux系统安装指南
80 0