Debian Ubuntu Building From Source: Difference between revisions

From Scribus Wiki
Jump to navigation Jump to search
(Created page with "Category:Development =Build Scribus from source on Debian, Ubuntu, and other Debian derivatives= =Requirements= Add the deb-src line appropriate for your distribution or wha...")
 
Line 6: Line 6:


==Build dependencies==
==Build dependencies==
If you only want to know how to get the libraries and packages needed to build Scribus then the following command is the only one you need to know:
If you only want to know how to get the libraries and packages needed to build Scribus then the following command is the only one you should need to know:
  sudo apt-get build-dep scribus-ng
  sudo apt-get build-dep scribus-ng
On a fresh ubuntu, this gives no result. So if that's not enought, depending on the error message you got when compiling, you will have to install other libraries. These will be best found and installed using synaptic :
* qt4-dev-tools and dependencies for all QT related errors as "missing: QT_QMAKE_EXECUTABLE"


==Rebuilding an existing source package==
==Rebuilding an existing source package==

Revision as of 17:43, 25 July 2012

Build Scribus from source on Debian, Ubuntu, and other Debian derivatives

Requirements

Add the deb-src line appropriate for your distribution or whatever is closest to it as shown in Debian to the '/etc/apt/sources.list' file on your system.

Build dependencies

If you only want to know how to get the libraries and packages needed to build Scribus then the following command is the only one you should need to know:

sudo apt-get build-dep scribus-ng

On a fresh ubuntu, this gives no result. So if that's not enought, depending on the error message you got when compiling, you will have to install other libraries. These will be best found and installed using synaptic :

  • qt4-dev-tools and dependencies for all QT related errors as "missing: QT_QMAKE_EXECUTABLE"

Rebuilding an existing source package

This is usually needed when your release or achitecture does not have a pre-built package, but your needs may vary.'

sudo apt-get build-dep scribus-ng
sudo apt-get source scribus-ng
cd scribus-ng-.....(whatever the directory is)
sudo debuild -us -uc

Creative builds

If you have more complex needs such as using alternative developmental libraries Scribus depends upon or changing the build setup.

  • Get the build dependencies and a source package as above.
  • See the "debian/rules" file for the complete build set up used for the official Debian/Ubuntu package. Right now (Mar 2011) the official setup for an out of tree build is as follows:
cmake \
-DWANT_DEBUG:STRING=$(DEBUG_FLAG) \
-DWANT_LIB32:BOOL=1 \
-DWANT_CAIRO:BOOL=1 \
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
-DWANT_NORPATH:BOOL=1 \
-DWANT_DISTROBUILD:BOOL=1 \
-DRPATH_STYLE:STRING=none \
-DWANT_VERSIONING:BOOL=1 \
-DCUSTOM_VERSIONTAG:STRING=-ng \
-DCMAKE_CXX_FLAGS:STRING='$(OPT_FLAG)' \
-DCMAKE_C_FLAGS:STRING='$(OPT_FLAG)' scribus-ng-1.4.0

If you are doing your own builds you should be able to ascertain what the above means.