Git Product home page Git Product logo

Comments (1)

pezy avatar pezy commented on June 5, 2024

第一步 安装 Qt

分为两种情况: 1. 希望使用 Qt Quick 等先进Qt5技术, 2. 只需要 Qt 4.8的类库即可.

第一种, 直接去官网下载 Mac安装包, 在此不作过多说明, 开发时也不建议使用 Xcode, 不如直接使用 Qt Creator.

第二种, 建议使用 Homebrew 来安装.

brew install qt

第二步 新建Xcode 项目

打开 Xcode (以Xcode 6为例), 新建一个Command Line Tool 项目. 然后找到Link Binary With Libraries, 如下图所示:

2014-09-29 23 58 37

在里面点击 ➕ 并且选择Add Other... ,敲击Command+shift+g, 在弹出的编辑框中输入:

/usr/local/Cellar/qt/4.8.6/Frameworks/

然后选择你要加载的Qt 库就行了.

如何加载已有的 Qt 工程?

找到 .pro 所在路径, 敲击以下命令:

qmake -spec macx-xcode project.pro
open project.xcodeproj

这里的 project.pro 请换成你自己的.pro 名字.


参考资料:

from qtlab.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.