Official:Compile Install with Macports: Difference between revisions

From Scribus Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
[[Category:Official|Compiling and installing with Macports on MacOSX]] [[Category:Installation|Compiling and installing with Macports on MacOSX]]  [[Category:MacOS|Compiling and installing with Macports on MacOSX]]
[[Category:Official|Compiling and installing with Macports on MacOSX]] [[Category:Installation|Compiling and installing with Macports on MacOSX]]  [[Category:MacOS|Compiling and installing with Macports on MacOSX]]
==Compiling and Installing Scribus 1.3.5+ On Mac OS X==
==Compiling and Installing Scribus On Mac OS==


This document outlines the build process for Scribus 1.3.5 or higher from SVN on Mac OS X. This does not currently outline the processs for packaging and bundling Scribus (yet).
This document outlines the build process for Scribus 1.3.5 or higher from subversion on Mac OS. Note there are not significant differences apart from dependency versions as you go up Scribus versions. This does not currently outline the process for packaging and bundling Scribus (yet).


===What you need:===
===What you need:===


* MacPorts installer (renamed from darwinports in version since 1.5)
* MacPorts installer (renamed from darwinports in version since 1.5) from www.macports.org
* Qt 4.5.x from Trolltech
* Qt 4.5.x for Scribus 1.3, Qt 5.14.0 or higher for Scribus 1.5/1.6, and Qt 6.2.0 for 1.7/1.8.
* XCode from Apple, either from the OS X install DVD or downloaded from http://www.apple.com
* XCode from Apple, from the App store, or on really old mac OSes (OSX), either from the OS X install DVD or downloaded from http://developer.apple.com
* Scribus SVN
* Scribus SVN


Line 19: Line 19:
* Install MacPorts (downloadable from [http://www.macports.org www.macports.org])
* Install MacPorts (downloadable from [http://www.macports.org www.macports.org])
* Install Qt4 4.5.0+ for OSX (downloadable from [http://www.trolltech.com www.trolltech.com])
* Install Qt4 4.5.0+ for OSX (downloadable from [http://www.trolltech.com www.trolltech.com])
Steps to build and install Scribus 1.5+ on macOS
* Install XCode from the App store
* Install MacPorts (downloadable from [http://www.macports.org www.macports.org])
* Install Qt 5.14.0+ for macOS for Scribus 1.5/1.6, or Qt 6.2.0+ for macOS for Scribus 1.7/1.8 (downloadable from [http://www.qt.io www.qt.io])


Install a few ports from MacPorts. Any other required dependencies will be installed automatically if they are not already. If you have already installed macports for other software, then you should run <code>sudo port selfupdate</code> and <code>sudo port upgrade installed</code> in order that the newest versions of your current ports and libaries are installed.
Install a few ports from MacPorts. Any other required dependencies will be installed automatically if they are not already. If you have already installed macports for other software, then you should run <code>sudo port selfupdate</code> and <code>sudo port upgrade installed</code> in order that the newest versions of your current ports and libaries are installed.


* Install CMake (<code>sudo port install cmake</code> )
* Install all the dependencies (<code>sudo port install cmake subversion harfbuzz-icu hunspell hunspell-en_GB_ise hunspell-en_US libcdr-0.1 libetonyek libfreehand libmspub libpagemaker libqxp libvisio-0.1 libzmf podofo poppler boost</code>)
* Install freetype2 (<code>sudo port install freetype</code>) The one included with OSX 10.4.9 is not as good as available from darwinports.
* Install lcms (<code>sudo port install lcms</code>). This will also install jpeg, zlib, tiff
* Install cairo (<code>sudo port install cairo</code>). This will install fontconfig too.
* Install libxml2 (<code>sudo port install libxml2</code>).
* Install subversion (<code>sudo port install subversion</code>) OR optionally install subversion from another source.
* Optionally (recommended)<code>sudo port install podofo</code>
* Optionally (recommended)<code>sudo port install boost</code>
* Optionally (recommended)<code>sudo port install boost</code>
* Optionally (recommended)<code>sudo port install ghostscript</code>
* Optionally (recommended)<code>sudo port install ghostscript</code>
* Optionally (recommended)<code>sudo port install graphicsmagick</code>
* Optionally (recommended)<code>sudo port install graphicsmagick</code>
* Make a directory where you want to download to (eg, in Terminal, <code>mkdir -p ~/scribus/135</code>)
* Make a directory where you want to download to (eg, in Terminal, <code>mkdir -p ~/scribus/source</code>)
* Change to this directory (<code>cd ~/scribus/135</code>)
* Change to this directory (<code>cd ~/scribus/source</code>)


Check out Scribus from SVN
Check out Scribus from SVN
Line 44: Line 44:
* <code>make install</code>
* <code>make install</code>


Now you can run Scribus 1.3.5+ from OSX if all has gone well.
Now you can run Scribus from macOS if all has gone well.

Revision as of 21:32, 21 February 2023

Compiling and Installing Scribus On Mac OS

This document outlines the build process for Scribus 1.3.5 or higher from subversion on Mac OS. Note there are not significant differences apart from dependency versions as you go up Scribus versions. This does not currently outline the process for packaging and bundling Scribus (yet).

What you need:

  • MacPorts installer (renamed from darwinports in version since 1.5) from www.macports.org
  • Qt 4.5.x for Scribus 1.3, Qt 5.14.0 or higher for Scribus 1.5/1.6, and Qt 6.2.0 for 1.7/1.8.
  • XCode from Apple, from the App store, or on really old mac OSes (OSX), either from the OS X install DVD or downloaded from http://developer.apple.com
  • Scribus SVN

Building and Installing

Steps to build and install Scribus 1.3.5 on OSX/Aqua

  • Install X11 (available on the OSX CDs or from the Apple site)
  • Install XCode (available on the OSX CDs or from the Apple developer site)
  • Install MacPorts (downloadable from www.macports.org)
  • Install Qt4 4.5.0+ for OSX (downloadable from www.trolltech.com)

Steps to build and install Scribus 1.5+ on macOS

  • Install XCode from the App store
  • Install MacPorts (downloadable from www.macports.org)
  • Install Qt 5.14.0+ for macOS for Scribus 1.5/1.6, or Qt 6.2.0+ for macOS for Scribus 1.7/1.8 (downloadable from www.qt.io)

Install a few ports from MacPorts. Any other required dependencies will be installed automatically if they are not already. If you have already installed macports for other software, then you should run sudo port selfupdate and sudo port upgrade installed in order that the newest versions of your current ports and libaries are installed.

  • Install all the dependencies (sudo port install cmake subversion harfbuzz-icu hunspell hunspell-en_GB_ise hunspell-en_US libcdr-0.1 libetonyek libfreehand libmspub libpagemaker libqxp libvisio-0.1 libzmf podofo poppler boost)
  • Optionally (recommended)sudo port install boost
  • Optionally (recommended)sudo port install ghostscript
  • Optionally (recommended)sudo port install graphicsmagick
  • Make a directory where you want to download to (eg, in Terminal, mkdir -p ~/scribus/source)
  • Change to this directory (cd ~/scribus/source)

Check out Scribus from SVN

  • svn co svn://scribus.info/Scribus/trunk/
  • Make a build directory mkdir builddir
  • Change to the build directory (cd builddir)
  • Run the cmake command: cmake -DBUILD_OSX_BUNDLE=1 -DWANT_CAIRO=1 -DCMAKE_INSTALL_PREFIX:PATH=/Users/username/Applications/Scribus.App/Contents/ ../trunk/Scribus/
  • make
  • make install

Now you can run Scribus from macOS if all has gone well.