Difference between revisions of "Win32 version of Scribus"

From Scribus Wiki
Jump to navigation Jump to search
 
(112 intermediate revisions by 21 users not shown)
Line 1: Line 1:
In february 2005 Trolltech [http://www.trolltech.com/newsroom/announcements/00000192.html announced] that version 4 of the QT library used by Scribus will be available for Windows under the GNU General Public License (GPL). This brings the possibility of a native Windows port of Scribus a step closer. It's still a '''long''' way off though, and not really in anyone's plans. First QT4 needs to be released ("second quarter of 2005"), then Scribus would need to be updated to QT4 (a substantial job in itself), then ported to Windows. So it might happen at some point, but don't hold your breath!--[[User:Joeboy|Joeboy]] 13:49, 9 Mar 2005 (UTC)
+
[[Category:Windows]][[Category:Installation]][[Category:EN]]
 +
==Native Windows version release information==
 +
* [[Official:Windows|Scribus on Windows]] -- See this page first for all the important install info on the native Windows version.
 +
** This '''will not run''' on Win95, Win98 or WinME. Scribus requires the capabilities of Windows 2000, XP, Vista, Server 200x, or Windows 7, 8, or 10. Attempts to run Scribus on Win9x or WinME will fail due to the absence of a number of system requirements which cannot practically be met.
 +
** With the release of 1.3.2, help documentation from [http://docs.scribus.net docs.scribus.net] has been integrated with the main package across all platforms.
  
----
+
==64-bit Windows (of any of those compatible versions mentioned above)==
 +
Scribus 1.4.6 is available as a 64-bit version that can be installed on Windows Vista 64-bit, Microsoft Windows 7 64-bit, and Microsoft Windows 8 64-bit.<br>
 +
For previous versions, there is no 64-bit version of Scribus. Nonetheless, the 32-bit version works without a hitch, and without any other considerations as you use the installer for your Windows machine.
  
 +
==Python==
 +
If you install Scribus using the installer from Sourceforge, you should have a working version of Python 2.7 with Scribus 1.5.x. Some scripts that you may wish to use or write yourself may need Python packages not supplied with Scribus, and you cannot add them yourself. The answer in this situation is to install Python 2.7 on your system, along with any necessary or desired packages, such as PIL (Python Imaging Library).
  
Hence I've created this page for posting notes relating to the ongoing effort to compile Scribus under Cygwin/X11 for win32. Since that is our next best option.  
+
In order for Scribus to use this system-based Python you need to deactivate the version included with Scribus. This is actually a simple matter. Go to C:\Program Files\Scribus 1.5.3\ (or whatever Scribus version you have installed), and look for a directory named python\. Just change its name to anything else, like oldpython\, and when you next start Scribus it will use the system Python.
  
However, don't forget we already have one working recipe for [[Installing Scribus on Win32]] using version 1.2.1 binary snapshots compiled for Cygwin/QT3/X11. :)
+
== Notes ==
  
Now efforts to '''compile''' the latest Scribus for Cygwin/X11 are ongoing, though I haven't been successful yet. However I have had gotten as far as a running a successful configure of the 1.3 version from CVS, and there is a patch available for the 1.2.1 version at the kde-cygwin download area.
+
* [http://sourceforge.net/project/showfiles.php?group_id=1897 Ghostscript 8.53] or newer required for EPS, PS import and printing.
 +
** When you first run Scribus, you must go to Edit>Preferences>External Tools and change "name of executable" to wherever you have installed Ghostscript to.  You must choose the "gswin32c.exe" version for Scribus to run!  For example, set it to:  "C:/Program Files/gs/gs8.53/bin/gswin32c.exe"
  
Here are some notes from some of the experiences I've had so far:
+
== Obtaining GDI+ ==
  
 +
Scribus under Windows 2000 requires the [http://www.microsoft.com/downloads/details.aspx?FamilyID=6a63ab9c-df12-4d41-933c-be590feaa05a&DisplayLang=en GDI+ library] from Microsoft. There are other legal sources for the library for those who don't use IE or don't want to go through the "Genuine Windows" validation process — which has come under severe criticism and has been reported to produces false negatives in some cases (at the [http://go.microsoft.com/fwlink/?linkid=63634 Windows Genuine Advantage Forum], for example):
  
-----------------------------
+
* GDI+ is also distributed [http://download.freenet.de/archiv_g/gdi+_6816.html here]. This is part of the download archive within the portal of one of Germany's major ISPs. You don't need to understand German to use the page, just find the "zum Download" button and then, on the next page, the "Download starten" button. This will download Microsoft's own installer for the US English version of the library.
  
 +
* Possibly the simplest way of meeting the GDI+ requirement is to search the file gdiplus.dll on your hard disk and copy it into the directory that contains the Scribus executable. (The "official" download does not install any files beyond gdiplus.dll either.) There are freely available applications whose installer puts the file into their application directory. Such applications are:
 +
** [http://www.mp3tag.de/en/ Mp3Tag]
  
<pre>
+
When obtaining GDI+ from an "unofficial" source such as one of the above, it is important to remember that older versions of the file were suffering from a [http://www.microsoft.com/technet/security/bulletin/MS04-028.mspx critical bug] that affected the processing of JPEG files. The bug was reported in September 2004, and as of September 2006, the current version is of gdiplus.dll is 5.1.3102.1360.
  379  rm -fr Scribus/
 
  380  cvs -z3 co -r Version13x Scribus
 
  381  tar jcvf tar-Scribus13cvs.tar Scribus
 
  382  cd Scribus/
 
  383  export CFLAGS="-fdata-sections"
 
  384  export CXXFLAGS="-fdata-sections"
 
  385  export LDFLAGS="-Wl,--enable-runtime-pseudo-reloc,--script /usr/local/lib/qt/mkspecs/cygwin-g++/i386pe.x-no-rdata,-lqt-mt"
 
  386  make -f Makefile.cvs
 
 
 
noone@sector0 ~/src/Scribus
 
$ ./configure
 
checking build system type... i686-pc-cygwin
 
checking host system type... i686-pc-cygwin
 
checking target system type... i686-pc-cygwin
 
checking for a BSD-compatible install... /usr/bin/install -c
 
checking for -p flag to install... yes
 
checking whether build environment is sane... yes
 
checking for gawk... gawk
 
checking whether make sets $(MAKE)... yes
 
checking for pkg-config... no
 
checking for libart2-config... /usr/bin/libart2-config
 
checking for style of include used by make... GNU
 
checking for gcc... gcc
 
checking for C compiler default output file name... configure: error: C compiler cannot create executables
 
See `config.log' for more details.
 
noone@sector0 ~/src/Scribus
 
$</pre>
 
 
 
config.log:
 
...
 
configure:2617: checking for C compiler default output file name
 
configure:2620: gcc -fdata-sections  -Wl,--enable-runtime-pseudo-reloc,--script /home/cboothe/src/qt-3/mkspecs/cygwin-g++/i386pe.x-no-rdata ,-lqt-mt conftest.c  >&5
 
gcc: ,-lqt-mt: No such file or directory
 
--[[User:Hap0|Hap0]] 19:39, 18 Mar 2005 (UTC)
 
 
 
-----------------------------
 
 
 
With the following commands i already got Scribus configuring fine, but i accidently deleted it again so now with that config it gives an error when checking for qt. The error message in config.log is very similar to the error i got when making scribus after my succesful ./configure.
 
 
 
--[[User:Jo-hannes|jo-hannes]] 07:12, 18 Mar 2005 (UTC)
 
 
 
Export commands:
 
 
 
<pre>
 
export CFLAGS="-fdata-sections"
 
export CXXFLAGS="-fdata-sections"
 
export LDFLAGS="-Wl,--enable-runtime-pseudo-reloc,--script /usr/local/lib/qt/mkspecs/cygwin-g++/i386pe.x-no-rdata,-lqt-mt"
 
</pre>
 
 
 
The error at checking for Qt:
 
 
 
<pre>
 
checking for Qt... configure: error: Qt (>= Qt 3.3) (library qt-mt) not found. Please check your installation!
 
For more details about this problem, look at the end of config.log.
 
Make sure that you have compiled Qt with thread support!
 
</pre>
 
 
 
And the error in config.log
 
<pre>
 
configure:40114: checking for Qt
 
configure: 40182: /opt/qt/3.3/include/qstyle.h
 
taking that
 
configure:40297: rm -rf SunWS_cache; g++ -o conftest.exe -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -O2 -fno-exceptions -fno-check-new -fno-common -I/opt/qt/3.3/include -I/usr/X11R6/include  -DQT_THREAD_SUPPORT  -L/opt/qt/3.3/lib -L/usr/X11R6/lib  conftest.cc  -lqt-mt -lpng -lz -lm -ljpeg  -lXext -lX11 -lSM -lICE  -lpthread 1>&5
 
collect2: ld terminated with signal 11 [Segmentation fault], core dumped
 
/opt/qt/3.3/lib/libqt-mt.dll.a(.text+0x0):crtstuff.c: multiple definition of `___do_sjlj_init'
 
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/crtbegin.o(.text+0x0):crtstuff.c: first defined here
 
/opt/qt/3.3/lib/libqt-mt.dll.a(.text+0x3c52a0):crtstuff.c: multiple definition of `QGList::count() const'
 
/cygdrive/c/DOKUME~1/johannes/LOKALE~1/Temp/ccNwGMgn.o(.text$_ZNK6QGList5countEv+0x0):conftest.cc: first defined here
 
/opt/qt/3.3/lib/libqt-mt.dll.a(.data+0x78cc4):qrtlcodec.cpp: multiple definition of `vtable for QGList'
 
/cygdrive/c/DOKUME~1/johannes/LOKALE~1/Temp/ccNwGMgn.o(.rdata$_ZTV6QGList+0x0):conftest.cc: first defined here
 
/opt/qt/3.3/lib/libqt-mt.dll.a(.data+0x5fb3c):qrtlcodec.cpp: multiple definition of `typeinfo for QPtrCollection'
 
/cygdrive/c/DOKUME~1/johannes/LOKALE~1/Temp/ccNwGMgn.o(.rdata$_ZTI14QPtrCollection+0x0):conftest.cc: first defined here
 
/opt/qt/3.3/lib/libqt-mt.dll.a(.data+0x62604):qrtlcodec.cpp: multiple definition of `typeinfo name for QPtrCollection'
 
/cygdrive/c/DOKUME~1/johannes/LOKALE~1/Temp/ccNwGMgn.o(.rdata$_ZTS14QPtrCollection+0x0):conftest.cc: first defined here
 
/opt/qt/3.3/lib/libqt-mt.dll.a(.data+0x607ec):qrtlcodec.cpp: multiple definition of `typeinfo for QGList'
 
/cygdrive/c/DOKUME~1/johannes/LOKALE~1/Temp/ccNwGMgn.o(.rdata$_ZTI6QGList+0x0):conftest.cc: first defined here
 
/opt/qt/3.3/lib/libqt-mt.dll.a(.data+0x63ba4):qrtlcodec.cpp: multiple definition of `typeinfo name for QGList'
 
/cygdrive/c/DOKUME~1/johannes/LOKALE~1/Temp/ccNwGMgn.o(.rdata$_ZTS6QGList+0x0):conftest.cc: first defined here
 
configure:40300: $? = 1
 
configure: failed program was:
 
#include "confdefs.h"
 
#include <qglobal.h>
 
#include <qapplication.h>
 
#include <qcursor.h>
 
#include <qstylefactory.h>
 
#include <private/qucomextra_p.h>
 
#if ! (QT_VERSION >= 0x030300)
 
#error 1
 
#endif
 
</pre>
 
 
 
----
 
Jo-Hanes:
 
<pre>
 
collect2: ld terminated with signal 11 [Segmentation fault], core dumped
 
</pre>
 
shows that ld, the linker that's called by gcc after it finishes compiling the source file, has crashed. That's pretty weird and very likely to indicate a bug in ld (probably the cygwin version).
 
 
 
That said, if it worked before it seems reasonable to expect it to work now. Could you have made some changes to environment variables or installed libraries since then?
 
 
 
--[[User:Ringerc|Ringerc]] 08:16, 18 Mar 2005 (UTC)
 
 
 
 
 
----
 
As i remember, i had installed the cvs version of qt in /usr/local/lib and then it worked. dont know if there were any other switches. now i have the qt-snapshot installed and it doesnt work. variables could have changed, yes. but dunno into what. libraries werent installed as is remember.
 
will try to get it working again.
 
 
 
--[[User:Jo-hannes|jo-hannes]] 10:52, 18 Mar 2005 (UTC)
 

Latest revision as of 21:49, 14 January 2018

Native Windows version release information

  • Scribus on Windows -- See this page first for all the important install info on the native Windows version.
    • This will not run on Win95, Win98 or WinME. Scribus requires the capabilities of Windows 2000, XP, Vista, Server 200x, or Windows 7, 8, or 10. Attempts to run Scribus on Win9x or WinME will fail due to the absence of a number of system requirements which cannot practically be met.
    • With the release of 1.3.2, help documentation from docs.scribus.net has been integrated with the main package across all platforms.

64-bit Windows (of any of those compatible versions mentioned above)

Scribus 1.4.6 is available as a 64-bit version that can be installed on Windows Vista 64-bit, Microsoft Windows 7 64-bit, and Microsoft Windows 8 64-bit.
For previous versions, there is no 64-bit version of Scribus. Nonetheless, the 32-bit version works without a hitch, and without any other considerations as you use the installer for your Windows machine.

Python

If you install Scribus using the installer from Sourceforge, you should have a working version of Python 2.7 with Scribus 1.5.x. Some scripts that you may wish to use or write yourself may need Python packages not supplied with Scribus, and you cannot add them yourself. The answer in this situation is to install Python 2.7 on your system, along with any necessary or desired packages, such as PIL (Python Imaging Library).

In order for Scribus to use this system-based Python you need to deactivate the version included with Scribus. This is actually a simple matter. Go to C:\Program Files\Scribus 1.5.3\ (or whatever Scribus version you have installed), and look for a directory named python\. Just change its name to anything else, like oldpython\, and when you next start Scribus it will use the system Python.

Notes

  • Ghostscript 8.53 or newer required for EPS, PS import and printing.
    • When you first run Scribus, you must go to Edit>Preferences>External Tools and change "name of executable" to wherever you have installed Ghostscript to. You must choose the "gswin32c.exe" version for Scribus to run! For example, set it to: "C:/Program Files/gs/gs8.53/bin/gswin32c.exe"

Obtaining GDI+

Scribus under Windows 2000 requires the GDI+ library from Microsoft. There are other legal sources for the library for those who don't use IE or don't want to go through the "Genuine Windows" validation process — which has come under severe criticism and has been reported to produces false negatives in some cases (at the Windows Genuine Advantage Forum, for example):

  • GDI+ is also distributed here. This is part of the download archive within the portal of one of Germany's major ISPs. You don't need to understand German to use the page, just find the "zum Download" button and then, on the next page, the "Download starten" button. This will download Microsoft's own installer for the US English version of the library.
  • Possibly the simplest way of meeting the GDI+ requirement is to search the file gdiplus.dll on your hard disk and copy it into the directory that contains the Scribus executable. (The "official" download does not install any files beyond gdiplus.dll either.) There are freely available applications whose installer puts the file into their application directory. Such applications are:

When obtaining GDI+ from an "unofficial" source such as one of the above, it is important to remember that older versions of the file were suffering from a critical bug that affected the processing of JPEG files. The bug was reported in September 2004, and as of September 2006, the current version is of gdiplus.dll is 5.1.3102.1360.