Installing from SVN on Mac OS X: Difference between revisions

From Scribus Wiki
Jump to navigation Jump to search
No edit summary
 
No edit summary
 
(43 intermediate revisions by 4 users not shown)
Line 1: Line 1:
[[Category:MacOS|Official]]
[[Category:Official]] [[Category:Installation|Installing from CVS/SVN on Mac OS X]] [[Category:MacOS]]
{{HOWTO Index}}
{{Announcement|Please check [[:Category:MacOS]] for more current solutions especially [[Scribus and Homebrew]] <strike>or [http://sourceforge.net/projects/scribus/files/scribus-svn/1.5.1.svn/ Bleeding Edge nightlies] supplied by Scribus Team on Sourceforge.</strike>|Macports (preferred option of the Scribus devs) and Homebrew are the 2 most popular methodologies to do this. }}
----


=Introduction=
=Introduction=
This document outlines the build process for Scribus 1.3.5 or higher from CVS/SVN.
This document outlines the build process for Scribus 1.4.x.svn/1.5.x.svn from SVN.  
This is an official Scribus Team document and as such is the currently support build preference on OSX/Aqua and is also subject to a different licence to the rest of the wiki. This does not currently outline the processs for packaging and bundling Scribus (yet).
This is the currently supported build preference on OS X and is also subject to a [http://docs.scribus.net/index.php?lang=en&page=doccopyright different licence] to the rest of the wiki. This does not currently outline the processs for packaging and bundling Scribus .
OS X Tiger is not supported via Macports. Please see [[Installing Scribus on Mac OS X via Fink]] if you need to install on Tiger.


=What we use=
=What we use=
* darwinports
* MacPorts or use [[Scribus and Homebrew|Homebrew]] (formula has been tested and works as of [[User:Kunda|Kunda]] ([[User talk:Kunda|talk]]) 01:56, 13 June 2014 (CEST))
* Qt from Trolltech
* Qt
* XCode from Apple
* XCode from Apple
* Scribus CVS/SVN
* Scribus SVN


=Building and Installing=
=Install development packages=
Steps to build and install Scribus 1.3.5 on OSX/Aqua(tested on Intel only)
Steps to build and install Scribus 1.4.x/1.5.x on OSX (Intel only)
* Install XCode (available on the OSX CDs or from the Apple developer site)
* Install XCode (available on the Apple developer site)
* Install darwinports (downloadable from darwinports.com)
* Install MacPorts (downloadable from www.macports.org)  
* Install Qt4 for OSX (downloadable from www.trolltech.com)
* Install Qt4 for Scribus 1.4.x, or Qt5 for Scribus 1.5.x, downloaded from [[http://qt-project.org/downloads]]. You can also install it via macports if desired.
* Install a few ports from darwinports
 
=Building and Installing other required libraries with MacPorts=
* Install a few ports from MacPorts (any dependencies not already installed will be installed automatically)
** Install CMake (sudo port install cmake)
** Install CMake (sudo port install cmake)
** Install freetype2 (sudo port install freetype). The one included with OSX 10.4.9 is not as good as available from darwinports.
** Install freetype2 (sudo port install freetype).
** Install lcms (sudo port install lcms). This will also install jpeg, zlib, tiff
** Install lcms2 (sudo port install lcms2). This will also install jpeg, zlib, tiff
** Install cairo (sudo port install cairo). this will install fontconfig too.
** Install cairo (sudo port install cairo). This will install fontconfig too.
** You may need to install libpng/libmng/libtool/autoconf/automake, this needs checking on a clean install.
** Install libxml2 (sudo port install libxml2).
** Optionally (recommended) install ghostscript (sudo port install ghostscript)
** Install subversion (sudo port install subversion), OR optionally install subversion from another source.
* Make a directory where you want to download to (eg, in Terminal, mkdir -p ~/scribus/135)
** Install ghostscript (sudo port install ghostscript)
* Change to this directory (cd ~/scribus/135)
** Install podofo
* Check out Scribus from cvs (in the future SVN)
** If you didn't install Qt from the download page and want to install from macports, run sudo port install qt4-mac/qt5-mac
** export CVSROOT=:pserver:anoncvs:@scribus.info:/cvs
 
** cvs -z3 co -r Version135x Scribus
<big>You can of course do this all in one line (sudo port install cmake lcms cairo libxml2 ghostscript freetype podofo)</big>
 
=Building and Installing Scribus=
* Make a directory where you want to download to (eg, in Terminal, mkdir -p ~/scribus/150)
* Change to this directory (cd ~/scribus/150)
* Check out Scribus from SVN
** svn co svn://scribus.net/trunk/ (for Scribus 1.5.x)
** svn co svn://scribus.net/branches/Version14x (for Scribus 1.4.x)
* Make a build directory (mkdir builddir)
* Make a build directory (mkdir builddir)
* Change to the build directory (cd 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/ ../Scribus/
* Run the cmake command, with the installation path set as you desire. Two common locations would be under /Applications or /Users/<your username>/Applications. As I like to keep compiled software separate to system installed applications, I use the second, but this is a personal preference:
<code> cmake -DQT_PREFIX="/Users/'''<your username>'''/Qt/5.3/clang_64" -DBUILD_OSX_BUNDLE=1 -DWANT_UNIVERSAL_BUNDLE=0 -DWANT_HUNSPELL=1 -DWANT_GRAPHICSMAGICK=1 -DCMAKE_INSTALL_PREFIX:PATH=/Users/'''<your username>'''/Applications/ScribusTrunk.app/Contents/ ../trunk/Scribus/
</code>
or
<code> cmake -DQT_PREFIX="/Users/'''<your username>'''/Qt/4.8.6/clang_64" -DBUILD_OSX_BUNDLE=1 -DWANT_UNIVERSAL_BUNDLE=0 -DWANT_HUNSPELL=1 -DWANT_GRAPHICSMAGICK=1 -DCMAKE_INSTALL_PREFIX:PATH=/Users/'''<your username>'''/Applications/Scribus14x.app/Contents/ ../Version14x/Scribus/
</code>
* make
* make
* make install
* make install


=Finish=
=Finish=
Now you can run Scribus 1.3.5+ from OSX if all has gone well.
Now you can run Scribus from OSX if all has gone well.
=Related Links=
* [[Scribus and Homebrew]]
* <strike>[http://bugs.scribus.net/view.php?id=10640 Issue on Bugtracker about this page]</strike>
[[Category:Official]]
[[Category:Official]]

Latest revision as of 22:02, 23 October 2015

Announcement: Please check Category:MacOS for more current solutions especially Scribus and Homebrew or Bleeding Edge nightlies supplied by Scribus Team on Sourceforge.
Macports (preferred option of the Scribus devs) and Homebrew are the 2 most popular methodologies to do this.


Introduction

This document outlines the build process for Scribus 1.4.x.svn/1.5.x.svn from SVN. This is the currently supported build preference on OS X and is also subject to a different licence to the rest of the wiki. This does not currently outline the processs for packaging and bundling Scribus . OS X Tiger is not supported via Macports. Please see Installing Scribus on Mac OS X via Fink if you need to install on Tiger.

What we use

  • MacPorts or use Homebrew (formula has been tested and works as of Kunda (talk) 01:56, 13 June 2014 (CEST))
  • Qt
  • XCode from Apple
  • Scribus SVN

Install development packages

Steps to build and install Scribus 1.4.x/1.5.x on OSX (Intel only)

  • Install XCode (available on the Apple developer site)
  • Install MacPorts (downloadable from www.macports.org)
  • Install Qt4 for Scribus 1.4.x, or Qt5 for Scribus 1.5.x, downloaded from [[1]]. You can also install it via macports if desired.

Building and Installing other required libraries with MacPorts

  • Install a few ports from MacPorts (any dependencies not already installed will be installed automatically)
    • Install CMake (sudo port install cmake)
    • Install freetype2 (sudo port install freetype).
    • Install lcms2 (sudo port install lcms2). This will also install jpeg, zlib, tiff
    • Install cairo (sudo port install cairo). This will install fontconfig too.
    • Install libxml2 (sudo port install libxml2).
    • Install subversion (sudo port install subversion), OR optionally install subversion from another source.
    • Install ghostscript (sudo port install ghostscript)
    • Install podofo
    • If you didn't install Qt from the download page and want to install from macports, run sudo port install qt4-mac/qt5-mac

You can of course do this all in one line (sudo port install cmake lcms cairo libxml2 ghostscript freetype podofo)

Building and Installing Scribus

  • Make a directory where you want to download to (eg, in Terminal, mkdir -p ~/scribus/150)
  • Change to this directory (cd ~/scribus/150)
  • Check out Scribus from SVN
  • Make a build directory (mkdir builddir)
  • Change to the build directory (cd builddir)
  • Run the cmake command, with the installation path set as you desire. Two common locations would be under /Applications or /Users/<your username>/Applications. As I like to keep compiled software separate to system installed applications, I use the second, but this is a personal preference:

cmake -DQT_PREFIX="/Users/<your username>/Qt/5.3/clang_64" -DBUILD_OSX_BUNDLE=1 -DWANT_UNIVERSAL_BUNDLE=0 -DWANT_HUNSPELL=1 -DWANT_GRAPHICSMAGICK=1 -DCMAKE_INSTALL_PREFIX:PATH=/Users/<your username>/Applications/ScribusTrunk.app/Contents/ ../trunk/Scribus/ or cmake -DQT_PREFIX="/Users/<your username>/Qt/4.8.6/clang_64" -DBUILD_OSX_BUNDLE=1 -DWANT_UNIVERSAL_BUNDLE=0 -DWANT_HUNSPELL=1 -DWANT_GRAPHICSMAGICK=1 -DCMAKE_INSTALL_PREFIX:PATH=/Users/<your username>/Applications/Scribus14x.app/Contents/ ../Version14x/Scribus/

  • make
  • make install

Finish

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

Related Links