You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a directory in which you will be building Scribus: C:\Documents\Development\Scribus-1.5
In the rest of the document this will be referred to as the "scribus-root-path".
Obtain the source code of Scribus:
From the official Scribus official SVN repository: svn checkout svn://scribus.net/trunk/Scribus scribus
Or from the community managed Github repository: git clone https://github.com/scribusproject/scribus.git
You should now have a Documents\Development\Scribus-1.5\scribus folder containing the Scribus sources.
3. Get the third party dependency package
The scribus development team provides packages with all the third party dependencies needed to build scribus. For compiling 1.5.x,you need:
After having extracted the 3rd party dependencies:
Open with Visua Studio the Visual Studio Solution file (*.sln) located in the scribus-1.5.x-libs-* directory
If you get the question to upgrade the SDK version and the Platform Toolset, pick "No upgrade for both".
In the toolbar pick the debug or release configurations for the x64 platform, then run Build > Build Solution
6. Compile Scribus
Close "Visual Studio" (not strictly needed, but you never know...)
Open the "scribus" source code folder you have cloned / checked out.
Open with a text editor the Scribus-build-props.props file from the Win32\msvc2015 folder.
Locate the <SCRIBUS_LIB_ROOT></SCRIBUS_LIB_ROOT> tag.
Set its value to the path to scribus-1.5.x-libs-msvc2015
Locate the <QT5_DIR></QT5_DIR> tag.
Set the value for the x64 platform to the path where Qt is installed (C:\Qt\Qt5.9.7\msvc2015_64).
Open "Scribus.sln" with Visual Studio. Choose "no upgrade" for the "Windows SDK" and for "Platform Toolset options"
In the toolbar pick the debug or release configurations (you should pick the same as for the libraries) for the x64 platform, then run Build > Build Solution
The binaries should be located in <scribus-build-root>\Scribus-builds\Scribus-Debug-x64-v140
7. Running Scribus
The next step is to install Scribus and get it to run.
Four things are needed:
The Scribus compiled runtime.
The Scribus common 3rd party libs.
The Scribus 1.5.x specific 3rd party libs built in step 5.
Specific Qt DLLS and Qt Plugins.
Let us now go through each step in detail:
a. Install Scribus:
First install Scribus. Create a file named install-scribus.bat script in the "scribus-root-path" with the following content:
At the beginning of the script, you'll need to set the correct value for:
SCRIBUS_BUILDS_DIR: Relative path to the Scribus build dir (step 6).
SCRIBUS_BUILDS_MODE: "Release" or "Debug".
SCRIBUS_BUILD_PLATFORM: "x64" or "win32".
SCRIBUS_LIB_TOOLSET: currently, only "v140" is supported.
QT_DIR: the full path for the Qt files matching the current platform (if you have both "x86" and "win32", it must match SCRIBUS_LIB_PLATFORM!).
Run the install-scribus.bat file. It is important that you do this before the next step.
AUTHOR NOTE: This last step is not omptimized, yet. It copies some extra qt libs and plugins which are never used by Scribus.
We should also differentiate between release and debug builds. (I still can't make out if Scribus.exe links against the
debug DLLs if you build it for debug vs release. Qt debug DLLs have a small "d" at the end. E.g. "Qt5Cored.dll" vs "Qt5Core.dll").
Congratulations your done. You can finally run Scribus.exe.
Further informations
Getting MSVC
You will need to create a free Microsoft account to download as well as keep the software active.
You can choose to install only the c++ components if you wish and make the install lighter. On Visual studio 2017 in the installer under the "Workloads" tab if you choose "Desktop development with C++" it should be more than enough as it installs the 2017 and 2015 msvc toolchain.
Getting Qt
You can use bot the offline or online installer.
You can install both 32 and 64 bits components if you intend to build both.
Getting the dependency packages
The scribus development team provides two package with all the 3rd party dependencies needed to build scribus.
scribus-commmon-libs-YYYYMMDD.7z: common libraries for 14x and trunk, no compilation is required here
scribus-15x-libs-msvcXXXX-YYYYMMDD.7z: Scribus 15x specific libraries used for current Scribus 1.5.x releases
For building 15x dependencies, archives for Visual Studio 2013 and Visual Studio 2015 are provided. These archives allows to
build libraries for 32bit and 64bit platforms using the different available toolsets, including the Windows XP compatible ones.
The default configuration allows to build binaries compatible with Windows Vista and up. Windows XP is end of life therefore
we will mostly only need the scribus-15x-libs-msvc2015-YYYYMMDD.7z file.
These archives can be obtained from the below URL:
If you want to build using a different toolset, you can use msbuild through the command line. To do so you can use the provided
build-all-platform-libs.bat script. For example :
to build with Visual Studio 2015 default toolset for x64 platform: build-all-platform-libs.bat x64 v140
to build with Visual Studio 2015 Windows XP toolset for Win32 platform: build-all-platform-libs.bat Win32 v140_xp
Compiling Scribus
If you're using the msvc2013 toolset you will to edit the Win32\msvc2013\Scribus-build-props.props file, instead of the one in the msvc2015 directory.
Installing Scribus
c. Installing the Scribus 1.5.x specific 3rd party libs:
If you're building for Windows XP, set the value of "SCRIBUS_LIB_TOOLSET" as v140_xp.