diff options
author | Martin Endler <pokusew@seznam.cz> | 2019-05-12 03:10:00 +0200 |
---|---|---|
committer | Martin Endler <pokusew@seznam.cz> | 2019-05-12 03:10:00 +0200 |
commit | 537e41c18ae033a379743ef5001843882b05355d (patch) | |
tree | 1b0da2f8ccbec69d5d1472841e62e04026beea43 | |
parent | e88031b135787657fe8d024858aef5ce06a77669 (diff) | |
download | qtmips-537e41c18ae033a379743ef5001843882b05355d.tar.gz qtmips-537e41c18ae033a379743ef5001843882b05355d.tar.bz2 qtmips-537e41c18ae033a379743ef5001843882b05355d.zip |
Add Building from source on macOS section to README
-rw-r--r-- | README.md | 36 |
1 files changed, 36 insertions, 0 deletions
@@ -67,6 +67,42 @@ Alternatively, you can setup LD_LIBRARY_PATH=/path_to_QtMips/qtmips_machine /path_to_QtMips/qtmips_osemu ``` +Building from source on macOS +------------------------------- + +Install the latest version of **Xcode** from the App Store. +Then open a terminal and execute xcode-select --install to install Command Line Tools. +Then open Xcode, accept the license agreement and wait for it to install +any additional components. After you finally see the "Welcome to Xcode" screen, +from the top bar choose Xcode -> Preferences -> Locations -> Command Line Tools +and select an SDK version. + +Install [Homebrew](https://brew.sh/) and the following dependencies: +```bash +brew install qt libelf +``` + +Add Qt to the PATH. If you use Bash, you can do it like this: +```bash +echo 'export PATH="/usr/local/opt/qt/bin:$PATH"' >> ~/.bash_profile +``` + +Verify Qt is available in the PATH by running: +```bash +qmake --version +``` + +Finally, you can build the QtMips: +```bash +./build-macos.sh +``` + +After successful completion, you should see **build/qtmips-macos.zip** +which contains two files: qtmips_qui.app and qtmips_cli. + +You can unzip it and then copy qtmips_qui.app wherever you want. Double-click to start it. + + Download Binary Packages ------------------------ |