Do not install macports or homebrew. If you have installed it, you need to create a new user, and use this for the whole process. jhbuild does not work, if there is such an environment installed.
One possible way to use jhbuild alongside brew is to unlink all brew modules before running jhbuild. After finishing the build they can be relinked. This is untested though and might fail.
Open a Terminal, and type in git
, confirm popup from Appstore with "Install" to install development tools.
Please take the OS version dependent problems for each step into account. The errors will vary with different versions of the libraries. If you encounter a yet unknown error, feel free to add it to this set of instructions.
./build-gtk3.sh
itstool might fail in configure step searching for libxml2 python bindings.
Follow these steps to resolve the issue:
- Open a shell with option 4
- Change Python to version 2.7 with
export PYTHON=/usr/bin/python2.7
- Run the configure step manually with
./configure --prefix $HOME/gtk/inst
- Exit the shell with
exit
- Continue the build with option 2
The build might fail on expat:
configure: error: C compiler cannot create executables
Follow these steps to resolve the issue:
- Open a shell with option 4
- Run the configure step manually with
./configure --prefix $HOME/gtk/inst
- Exit the shell with
exit
- Continue the build with option 2
$HOME/.new_local/bin/jhbuild shell
Execute in this folder.
./build-poppler.sh
./build-portaudio.sh
./build-libzip.sh
If there is an error like:
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
Follow these steps to resolve the issue:
- Install Xcode (get it from here) if you don't have it yet.
- Accept the Terms and Conditions.
- Ensure Xcode app is in the /Applications directory (NOT /Users/{user}/Applications).
- Point xcode-select to the Xcode app Developer directory using the following command:
- sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
- Make sure your Xcode app path is correct.
- Xcode: /Applications/Xcode.app/Contents/Developer
- Xcode-beta: /Applications/Xcode-beta.app/Contents/Developer
Steps are from this source. A big thanks to tjmetha and Rob Bednark!
Recording and playing audio is not yet supported for MacOS.
./build-sndfile.sh
jhbuild build adwaita-icon-theme
./complete-build.sh $HOME/gtk
export PATH="$HOME/.local/bin:$HOME/gtk/inst/bin:$PATH"
cmake -DCMAKE_INSTALL_PREFIX:PATH=$HOME/gtk/inst ..
make -j 4
make install
./build-app.sh $HOME/gtk
We do not officially support builds with Homebrew. They are solely for convenience.
It is highly recommended to either use an official or nightly release. Should you still want to build your own version please refer to the app-build above.
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install cmake pkg-config gtk+3 poppler librsvg adwaita-icon-theme libzip portaudio libsndfile
git clone http://github.com/xournalpp/xournalpp.git
cd xournalpp
mkdir build
cd build
cmake ..
make