mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-07 19:50:45 +00:00
Merge branch 'master' into overview2
This commit is contained in:
commit
cc7877afd7
@ -4,32 +4,45 @@
|
|||||||
|
|
||||||
- [Qt 5.12.2] (the current LTS release as of OSCAR 1.0.0)
|
- [Qt 5.12.2] (the current LTS release as of OSCAR 1.0.0)
|
||||||
- [macOS 10.12 Sierra] or higher for building (required by Qt 5.12)
|
- [macOS 10.12 Sierra] or higher for building (required by Qt 5.12)
|
||||||
- [Xcode] 9.2 or later with command-line tools
|
- Command-Line Tools for Xcode 9.2, and optionally [Xcode] itself
|
||||||
- Xcode 9.2 is the last version that runs on macOS 10.12
|
- Xcode 9.2 is the last version that runs on macOS 10.12
|
||||||
- Xcode 10.1 is the last version that runs on macOS 10.13
|
- Xcode 10.1 is the last version that runs on macOS 10.13
|
||||||
|
- Xcode 10.3 is the latest version that runs on macOS 10.14
|
||||||
|
|
||||||
NOTE: Official builds are currently made with [macOS 10.13 High Sierra] and [Xcode] 10.1.
|
NOTE: Official builds are currently made with [macOS 10.14 Mojave] and Command-Line Tools for [Xcode] 10.3.
|
||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
1. Install Mac OS X 10.12.6 Sierra (or later) and apply all updates.
|
1. Install Mac OS X 10.12.6 Sierra (or later) and apply all updates.
|
||||||
* Optionally create a "build" user.
|
* Optionally create a "build" user.
|
||||||
|
|
||||||
2. Install Xcode 9.2 (or later, if using a newer version of macOS) and command-line tools:
|
2. (Optional) Install Xcode 9.2 (or later, if using a newer version of macOS), approx. 7GB:
|
||||||
1. Open Xcode_9.2.xip to expand it with Archive Utility. This will take a while.
|
1. Open Xcode_9.2.xip to expand it with Archive Utility. This will take a while.
|
||||||
2. Delete the .xip archive.
|
2. Delete the .xip archive.
|
||||||
3. Move Xcode.app into /Applications.
|
3. Move Xcode.app into /Applications.
|
||||||
4. Launch Xcode.app and agree to the license.
|
4. Launch Xcode.app and agree to the license.
|
||||||
5. Uncheck "Show this window..." and close the window.
|
5. Uncheck "Show this window..." and close the window.
|
||||||
6. Xcode > Quit
|
6. Xcode > Quit
|
||||||
7. Mount Command_Line_Tools_macOS_10.12_for_Xcode_9.2.dmg
|
|
||||||
8. Launch Command Line Tools (macOS Sierra version 10.12).pkg
|
|
||||||
9. Proceed through all the prompts until the installation is complete, then Close.
|
|
||||||
10. Eject Command Line Developer Tools.
|
|
||||||
|
|
||||||
3. Install Qt 5.12.2 (as "build" user, if created):
|
3. Install the command-line developer tools, approx. 0.6GB:
|
||||||
|
|
||||||
|
1. Launch Terminal.app and run:
|
||||||
|
|
||||||
|
xcode-select --install
|
||||||
|
|
||||||
|
2. Click "Install".
|
||||||
|
3. Click "Agree".
|
||||||
|
|
||||||
|
This will download and install the latest version of the Command-Line Tools for Xcode for your version of macOS, without requiring a developer account.
|
||||||
|
|
||||||
|
_Alternatively, the command-line tools installer .dmg can be downloaded from the [Xcode] download site, but you will need a (free) developer account and will
|
||||||
|
need to pick the appropriate download for your version of macOS._
|
||||||
|
|
||||||
|
4. Install Qt 5.12.2 (as "build" user, if created), approx. 3GB:
|
||||||
1. Mount qt-opensource-mac-x64-5.12.2.dmg
|
1. Mount qt-opensource-mac-x64-5.12.2.dmg
|
||||||
2. Launch qt-opensource-mac-x64-5.12.2
|
2. Launch qt-opensource-mac-x64-5.12.2
|
||||||
3. Next, Skip, Continue, Continue
|
3. Next, Skip, Continue, (optionally change the installation directory), Continue
|
||||||
|
* Qt is entirely self-contained and can be installed anywhere. It defaults to ~/Qt5.12.2.
|
||||||
|
* If you only have the command-line tools installed, the Qt installer will complain that "You need to install Xcode and set up Xcode command line tools." Simply click OK.
|
||||||
4. Expand Qt 5.12.2 and select "macOS", Continue
|
4. Expand Qt 5.12.2 and select "macOS", Continue
|
||||||
5. Select "I have read and agree..." and Continue, Install
|
5. Select "I have read and agree..." and Continue, Install
|
||||||
6. Uncheck "Launch Qt Creator", Done
|
6. Uncheck "Launch Qt Creator", Done
|
||||||
@ -40,21 +53,44 @@ NOTE: Official builds are currently made with [macOS 10.13 High Sierra] and [Xco
|
|||||||
1. Build OSCAR:
|
1. Build OSCAR:
|
||||||
|
|
||||||
git clone https://gitlab.com/pholy/OSCAR-code.git
|
git clone https://gitlab.com/pholy/OSCAR-code.git
|
||||||
|
cd OSCAR-code
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
~/Qt5.12.2/5.12.2/clang_64/bin/qmake ../OSCAR-code/OSCAR_QT.pro
|
~/Qt5.12.2/5.12.2/clang_64/bin/qmake ../oscar/oscar.pro
|
||||||
make
|
make
|
||||||
|
|
||||||
The application is in oscar/OSCAR.app.
|
The application is in OSCAR.app.
|
||||||
|
|
||||||
2. (Optional) Package for distribution:
|
2. (Optional) Package for distribution:
|
||||||
|
|
||||||
cd oscar
|
|
||||||
~/Qt5.12.2/5.12.2/clang_64/bin/macdeployqt OSCAR.app -dmg
|
~/Qt5.12.2/5.12.2/clang_64/bin/macdeployqt OSCAR.app -dmg
|
||||||
|
|
||||||
The dmg is at OSCAR.dmg.
|
The dmg is at OSCAR.dmg.
|
||||||
|
|
||||||
|
## (Optional) Using Qt Creator
|
||||||
|
|
||||||
|
1. Launch Qt Creator where you installed Qt above, by default ~/Qt5.12.2/Qt Creator.app.
|
||||||
|
2. File > Open File or Project... and select ~/OSCAR-code/oscar/oscar.pro (or wherever you cloned it above), then click "Configure Project".
|
||||||
|
3. Configure building:
|
||||||
|
1. Click on "Projects" in the left panel.
|
||||||
|
2. Under **Build Settings**, in the "Edit build configuration" drop-down menu, select "Release".
|
||||||
|
3. Click to expand "Details" for the **qmake** build step.
|
||||||
|
4. Uncheck "Enable Qt Quick Compiler", click "No" to defer recompiling.
|
||||||
|
4. Configure packaging for distribution:
|
||||||
|
1. Copy the "Build directory" path from the **Build Settings** panel above. (Default is "/Users/build/OSCAR-code/build-oscar-Desktop_Qt_5_12_2_clang_64bit-Release")
|
||||||
|
2. Tools > External > Configure...
|
||||||
|
3. Select "Add Tool" from the "Add" drop-down menu near the bottom of the window.
|
||||||
|
4. Set the name to "Deploy".
|
||||||
|
5. Set the Description to "Creates a distributable .dmg".
|
||||||
|
6. Set the Executable to the full path where you installed Qt: "/Users/build/Qt5.12.2/5.12.2/clang_64/bin/macdeployqt".
|
||||||
|
7. Set the Arguments to "OSCAR.app -dmg".
|
||||||
|
8. Set the working directory to the build directory path copied in step 1.
|
||||||
|
9. Click OK.
|
||||||
|
5. To compile, select Build > Build Project "oscar". The application is in OSCAR.app.
|
||||||
|
6. To create a .dmg, select Tools > External > Deploy. The dmg is at OSCAR.dmg.
|
||||||
|
|
||||||
[Qt 5.12.2]: http://download.qt.io/archive/qt/5.12/5.12.2/qt-opensource-mac-x64-5.12.2.dmg
|
[Qt 5.12.2]: http://download.qt.io/archive/qt/5.12/5.12.2/qt-opensource-mac-x64-5.12.2.dmg
|
||||||
[macOS 10.13 High Sierra]: https://itunes.apple.com/us/app/macos-high-sierra/id1246284741?ls=1&mt=12
|
[macOS 10.14 Mojave]: https://apps.apple.com/us/app/macos-mojave/id1398502828?ls=1&mt=12
|
||||||
[macOS 10.12 Sierra]: https://itunes.apple.com/us/app/macos-sierra/id1127487414?ls=1&mt=12
|
[macOS 10.13 High Sierra]: https://apps.apple.com/us/app/macos-high-sierra/id1246284741?ls=1&mt=12
|
||||||
|
[macOS 10.12 Sierra]: https://apps.apple.com/us/app/macos-sierra/id1127487414?ls=1&mt=12
|
||||||
[Xcode]: https://developer.apple.com/download/more/
|
[Xcode]: https://developer.apple.com/download/more/
|
||||||
|
Loading…
Reference in New Issue
Block a user