1. Make sure your Mac OS X version is up-to-date
Before you do anything else, you'll need to update your operating system to OS X Mavericks (10.9) or later. This free update is necessary to ensure that all of the required tools install correctly. To install the update, visit the following link and click the top-right blue 'Upgrade' button to upgrade your OS if needed.
- Brew cask install qt-creator Brew cask will install the application and it will appear in spotlight but not global /Application folder the because instead it creates a symbolic link to the /Applications folder. If you want to have it show up in the global /Applications folder you'll need to manually link it yourself via the following command.
- Qt Creator V4.6.1 Mac版 (暂未上线) 是一个跨平台的 Qt IDE.
If you are not sure whether you have the right version of OS X, click the top-left Apple menu and choose About this Mac.. to find out.
2. Install and Run Xcode
Though we will use Qt Creator for our programs in CS 106B, Mac OS X requires you to install their Xcode system to get a C++ compiler on your machine. To install Xcode, visit https://developer.apple.com/xcode/ and click on the 'View in Mac App Store' button. The app store will open, and you should download Xcode. Xcode is a large app, so the download and installation may take some time.
Qt Creator For Mac
Unless you grow up on a mac, the use of the option key in place of control is frustrating. Alt-tab doesn't work like windows or KDE - it cycles open applications, not open windows. Mpeg2 converter mac torrent pirate bay. There is no home/end key until you change the qt-creator configuration, and then home/end is missing in most applications, replaced with annoying top of file / end.
Once your Xcode has installed, you have to actually run the Xcode application one time in order to to install certain essential components. Open the newly downloaded Xcode application and accept the license agreement.
3. Download and install Qt Creator
Go to the Qt Creator official download site to download this software. Near the middle of the page, there is a gray bar of links; in that bar, click the link named 'Qt Offline Installers'. Now scroll down to 'OS X Host', and choose Qt 5.5.1 for Mac (588 MB). (The exact version may change over time, but make sure to choose the Mac option.) Your download will begin. The file is very large, so it may take some time. Once you have downloaded the Qt Creator .dmg installer, double-click it to mount it and launch the enclosed installer application, which will install Qt Creator on your computer. You can choose all default options during the installation.
You can now open up Qt Creator using Spotlight (the magnifying glass at the top right of your screen) and typing in 'Qt Creator'.
4. Try to compile/run a sample project
Let's make sure that all the parts are working together properly by building and running a sample Qt Creator project that uses the Stanford C++ libraries. The Stanford C++ libraries also interact with Java, so if this project runs properly for you, then you will be sure that your Qt Creator and Java JDK are both set up properly. Here's what to do:
- Download the following project ZIP file to your computer.
- simple-project.zip (linked fixed 09/21 10:30pm; sorry!)
- Un-zip the file's contents to a directory of your choice. You should have a directory named SampleProject with several files and folders inside.
- Open the project. In Qt Creator, choose 'File' → 'Open File or Project..' or press Ctrl+O (or Command+O on Mac). Navigate to the SampleProject folder and open the file SampleProject.pro.
- Qt Creator will ask you a few questions about how to set up the build process for this project. You can just accept the defaults and click 'Configure Project'.
- Build it. Now you should be able to Build (Ctrl+B or Command+B) your project in Qt Creator. If it builds properly, your C++ compiler and the Stanford C++ libraries are at least compiling properly.
- Run it. Now that it's built, you should be able to Run (Ctrl+R or Command+R) your SampleProject. This is the part where Java is needed, so if your Java isn't properly installed, this is probably where it will fail. If it runs properly, you will see a window appear with a smiley face. Congratulations, you're done! Now your machine should work just fine for working on our homework assignments.
If you encounter any problems during your attempt to compile and run the sample project, check out our Qt Creator troubleshooting page. Otherwise, congratulations; you're done!
Requirements
Qt requires a macOS platform SDK and corresponding toolchain to be installed on the system. You can get this by installing the Xcode command line tools:
Or by downloading and installing Xcode.
Compiler Versions
Qt for macOS is tested and compatible with several versions of GCC (GNU Compiler Collection) and Clang (as available from Xcode). For a list of tested configurations, refer to the Reference Configuration section of the supported platforms page.
QDoc Dependencies
Since version 5.11, QDoc uses Clang to parse C++ code. If you wish to build QDoc manually, refer to Installing Clang for QDoc for specific build requirements.
Steps for Building
The following instructions describe how to build Qt from the source package. You can download the Qt 5 sources from the Downloads page. For more information, visit the Getting Started with Qt page.
Step 1: Install the License File (Commercially Licensed Qt Only)
If you use Qt with a commercial license, the Qt tools look for a local license file. If you are using a binary installer or the commercial Qt Creator, your licenses are automatically fetched and stored in your local user profile (
$HOME/Library/Application Support/Qt/qtlicenses.ini
file).If you do not use any binary installer or Qt Creator, you can download the respective license file from your Qt Account Web portal and save it to your user profile as
$HOME/.qt-license
. If you prefer a different location or file name, you need to set the QT_LICENSE_FILE
environment variable to the respective file path.Step 2: Unpack the Archive
Unpack the archive if you have not done so already. For example, if you have the
qt-everywhere-opensource-src-%VERSION%.tar.gz
package, type the following commands at a command line prompt:This creates the directory
/tmp/qt-everywhere-opensource-src-%VERSION%
containing the files from the archive.Step 3: Build the Qt Library
To configure the Qt library for your machine type, run the
./configure
script in the package directory.By default, Qt is configured for installation in the
/usr/local/Qt-%VERSION%
directory, but this can be changed by using the -prefix
option.By default, Qt is built as a framework, but you can built it as a set of dynamic libraries (dylibs) by specifying the
-no-framework
option.Qt can also be configured to be built with debugging symbols. This process is described in detail in the Debugging Techniques document.
The Configure Options page contains more information about the configure options.
To create the library and compile all the examples and tools, type:
If
-prefix
is outside the build directory, you need to install the library, examples, and tools in the appropriate place. To do this, type:This command requires that you have administrator access on your machine.
Note: There is a potential race condition when running make install with multiple jobs. I need m audio usb midisport 2x2 driver for mac. It is best to only run one make job (-j1) for the install.
Step 4: Set the Environment Variables
In order to use Qt, some environment variables need to be extended.
This is done like this:
In
.profile
(if your shell is bash), add the following lines:In
.login
(in case your shell is csh or tcsh), add the following line:If you use a different shell, please modify your environment variables accordingly.
Qt is now installed.
Step 5: Build the Qt Documentation
For the Qt reference documentation to be available in Qt Assistant, you must build it separately:
Limitations
Fink
If you have installed the Qt for X11 package from Fink, it will set the
QMAKESPEC
environment variable to darwin-g++
. This will cause problems when you build the Qt for macOS package. To fix this, simply unset your QMAKESPEC
or set it to macx-g++
before you run configure
. To get a fresh Qt distribution, run make confclean
on the command-line.Qt Creator Macos Download
© 2020 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.