Mac configuration QT

Mac configuration QT


Foreword:

System version: Ventura 13.2.1 (22D68)

Install homebrew first, refer to:

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




Mac configuration:

  1. Install Qt and Qt Creator:

Install via Homebrew (if you don't have Homebrew, install Homebrew first):

brew install qt
brew install qt-creator
  1. View qt information
brew info qt

Record the version and address:

==> 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

Version:qt: stable 6.4.2 (bottled), HEAD

address:/opt/homebrew/Cellar/qt/6.4.2_2

  1. Configure Qt

Configure the Qt version:

Configure step by step according to the arrow, and finally set the corresponding qt version in qt-creator

Untitled

Configure Kit:

Untitled

Note that the Qt version should be consistent with the previous setting

reference:

This article is good, just follow this installation.

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




Problems encountered:

Problem: After configuring Kits, when creating a new project, Kits cannot be used

Solution: Reconfigure Kits, delete the old configuration, configure again, pay attention to the Qt version below

I used Qt 6.4.2 (invalid) before, and I didn't care much about it at the time, but the kit has been unavailable since then.

Finally, reinstall qt and qt-creator, successfully solve the problem.

Untitled




Summarize:

In general, install qt and qt-creator through homebrew, and use

brew info qt 与 brew into qtcreator

To view the corresponding installation information to confirm whether all packages are installed.

There may be a problem that Kit cannot be used in the middle. It is recommended to reconfigure according to the above list. If it does not work, you can solve the problem by reinstalling qt and qt-creator.

Guess you like

Origin blog.csdn.net/CaptainDrake/article/details/130169143