MacOS开发

Mac 安装QT

2018-10-29  本文已影响412人  字节码
brew install qt
屏幕快照 2018-10-29 下午10.16.16.png

此步骤安装完成后,终端会显示安装完成后的最终目录
/usr/local/opt/qt

brew install qt-creator

或者
选择需要的版本下载即可

http://download.qt.io/official_releases/qtcreator/

通过brew info qt命令,查看详情

swaedeMacBook-Pro:projects swae$ brew info qt
qt: stable 5.11.2 (bottled), HEAD [keg-only]
Cross-platform application and UI framework
https://www.qt.io/
/usr/local/Cellar/qt/5.11.2 (9,502 files, 304.3MB)
  Poured from bottle on 2018-10-29 at 22:00:58
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/qt.rb
==> Dependencies
Build: pkg-config ✔
Optional: mysql-client ✘, postgresql ✘
==> Requirements
Build: Xcode ✔
==> Options
--with-examples
    Build examples
--with-mysql-client
    Build with mysql-client support
--with-postgresql
    Build with postgresql support
--without-proprietary-codecs
    Don't build with proprietary codecs (e.g. mp3)
--HEAD
    Install HEAD version
==> Caveats
We agreed to the Qt open source license for you.
If this is unacceptable you should uninstall.

qt is keg-only, which means it was not symlinked into /usr/local,
because Qt 5 has CMake issues when linked.

If you need to have qt first in your PATH run:
  echo 'export PATH="/usr/local/opt/qt/bin:$PATH"' >> ~/.bash_profile

For compilers to find qt you may need to set:
  export LDFLAGS="-L/usr/local/opt/qt/lib"
  export CPPFLAGS="-I/usr/local/opt/qt/include"

For pkg-config to find qt you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/qt/lib/pkgconfig"

==> Analytics
install: 32,552 (30 days), 87,950 (90 days), 402,650 (365 days)
install_on_request: 14,540 (30 days), 40,226 (90 days), 181,203 (365 days)
build_error: 0 (30 days)

问题

上一篇 下一篇

猜你喜欢

热点阅读