Mercurial > hgrepos > Python2 > PyMuPDF
comparison mupdf-source/thirdparty/zint/README.macos @ 2:b50eed0cc0ef upstream
ADD: MuPDF v1.26.7: the MuPDF source as downloaded by a default build of PyMuPDF 1.26.4.
The directory name has changed: no version number in the expanded directory now.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Mon, 15 Sep 2025 11:43:07 +0200 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 1:1d09e1dec1d9 | 2:b50eed0cc0ef |
|---|---|
| 1 % README.macos 2024-01-18 | |
| 2 % Tested on macOS 12.7.2 Monterey VirtualBox (thanks to https://github.com/myspaghetti/macos-virtualbox) | |
| 3 | |
| 4 1. Prerequisites for building zint and zint-qt | |
| 5 ============================================== | |
| 6 | |
| 7 Start a terminal. | |
| 8 | |
| 9 First if not already installed, install the developer command line tools | |
| 10 | |
| 11 xcode-select --install | |
| 12 | |
| 13 This can take a (very) long time. Once done, check for updates by selecting "System Preferences" > "Software Update", | |
| 14 and clicking "Advanced" and "OK" (with all the checkboxes set) to trigger the check. If updates are found, install. | |
| 15 This can also take a long time. | |
| 16 | |
| 17 With the latest versions of the command line tools, "/usr/include" no longer has the standard C include files. Set | |
| 18 SDKROOT to overcome this (https://stackoverflow.com/a/60002595/664741) | |
| 19 | |
| 20 export SDKROOT=$(xcrun --sdk macosx --show-sdk-path) | |
| 21 | |
| 22 Install Homebrew (unless already installed) | |
| 23 | |
| 24 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
| 25 | |
| 26 Install CMake, libpng and Qt5 (git, make, cc & c++ should already be available with command line tools) | |
| 27 | |
| 28 brew install cmake | |
| 29 brew install libpng | |
| 30 brew install qt5 | |
| 31 | |
| 32 Add the Qt5 bin directory to the PATH | |
| 33 | |
| 34 export PATH='/usr/local/opt/qt@5/bin':"$PATH" | |
| 35 | |
| 36 Clone the latest zint source | |
| 37 | |
| 38 git clone https://git.code.sf.net/p/zint/code zint | |
| 39 | |
| 40 | |
| 41 2. Build | |
| 42 ======== | |
| 43 | |
| 44 The rest is standard CMake | |
| 45 | |
| 46 cd zint | |
| 47 mkdir build | |
| 48 cd build | |
| 49 cmake .. | |
| 50 make | |
| 51 sudo make install | |
| 52 | |
| 53 This installs into "/usr/local". You can then move the GUI "/usr/local/bin/zint-qt.app" into the main "/Applications" | |
| 54 folder if you wish. | |
| 55 | |
| 56 | |
| 57 3. CMake options | |
| 58 ================ | |
| 59 | |
| 60 See "README.linux". |
