MacOSX version of Scribus: Difference between revisions

From Scribus Wiki
Jump to navigation Jump to search
No edit summary
m (→‎Stable: Added link to full installation instructions.)
 
(41 intermediate revisions by 11 users not shown)
Line 1: Line 1:
{{Discussion Index}}
[[Category:MacOS]]
=Native version of Scribus for Mac OSX=
==Stable==
* You can grab the latest stable version of Scribus from [[Download|here]] or you can get full installation instructions (including installation of GhostScript) [[OS X - Installing Scribus on your Mac the easy way|here]].


On the Scribus mailing list, Andreas Vox have started an interesting discussion on bringing Scribus natively to Mac OSX. Join in with your opinion!
==Development==
* Add Macports link
* Add Fink link
* [[Scribus and Homebrew]] (compile through package manager)


= Obsolete =
* Native Aqua version
** [[http://docs.scribus.net/index.php?lang=en&page=install5 Official Docs How to building the native Aqua version of Scribus 1.3.5 from SVN using MacPorts and Qt4 ]] - Instruction on building the native Aqua version of Scribus from SVN
* X11 version
** [[Installing Scribus on Mac with MacPorts]] - How to install and run Scribus 1.3.3.9 ''(27/05/2007)''
** [[Installing Scribus from CVS sources on Mac OS X]] - Howto on installing Scribus from CVS sources through Fink
** [[Installing Scribus on Mac OS X]] - Howto on installing the stable version of Scribus through Fink
** [[Installing Scribus on Mac Intel]] - from the Scribus Archives


http://nashi.altmuehlnet.de/pipermail/scribus/2005-March/009442.html
==Obsolete PPC OSX==
 
* <del>Scribus 1.3.x on MacOSX is still work in progress, but there are very usable, frequently updated binary test builds. Details are here http://www.scribus.net/?q=macosx</del>
I noticed that you still require X11 for the MacOSX version of Scribus.
* <del>Builds of the '''native Aqua version''' are now available from [http://sourceforge.net/project/showfiles.php?group_id=125235&package_id=201484 sourceforge] (choose the 1.3.5svn version)</del>
 
* <del>[http://aqua.scribus.net aqua.scribus.net] is the place go for the '''native Aqua version''', when you want to know more details and download the latest packages (but this link now seems to redirect to a general page)</del>
I managed to compile Scribus 1.2.1 with Qt/Mac native and I wondered
* <del>[http://bugs.scribus.net/view.php?id=2015 List of all known issues] &mdash; check this list before reporting new errors
if you'd like to get some hints how it is done. In fact it was quite
easy
once I solved my libtool problems (screenshot attached :-) )
 
So this is what I did:
 
0. Started with the Scribus 1.2.1 sources
 
1. configured Scribus to use Qt/Mac inbstead of the fink Qt version
 
2. replaced all gdk-* sourcefiles with empty files
 
3. commented out all #include <X11.h> etc.
 
4. Removed GC from scpainter
 
5. Rewrote scpainter::end():
 
void ScPainter::end()
{
        QImage qimg(m_width, m_height, 32, QImage::BigEndian);
        QRgb * bits = (QRgb *) qimg.bits();
        int words = qimg.numBytes() / 4;
        art_u8 * p = m_buffer;;
        for (int i=0; i < words; ++i) {
                art_u8 r = *p++;
                art_u8 g = *p++;
                art_u8 b = *p++;
                art_u8 a = *p++;
                *bits++ = qRgba(r,g,b,a);
        }
        bitBlt(m_target, 0, 0, &qimg);
}
 
 
6. libtool nuisances:
 
6a)  Apply fink patch to use correct -bundle for libtool
 
6b)  Remove -s option (stripping is no good idea if you want to link
plugins)
 
7. Make Scribus ignore any "-psn_*" commandline options passed by Qt
 
8. Adjust a few #includes to MacOSX
 
9. Created a rudimentary Scribus.app/ bundle (thanks to Ronald Florence
who did the same for LyX so I just had to replace a few strings)
 
The application still uses the files (plugins etc.) which Scribus
installs to /usr/local.
The following libraries get linked:
 
/Applications/local/Scribus.app/Contents/MacOS/scribus:
/sw/lib/libjpeg.62.dylib (compatibility version 63.0.0, current version 63.0.0)
/sw/lib/libart_lgpl_2.2.dylib (compatibility version 6.0.0, current version 6.16.0)
/usr/local/lib/libfreetype6.dylib (compatibility version 6.2.0, current version 6.3.4)
/usr/lib/libcups.2.dylib (compatibility version 2.0.0, current version 2.5.0)
/usr/lib/libssl.0.9.7.dylib (compatibility version 0.9.7, current version 0.9.7)
/usr/lib/libcrypto.0.9.7.dylib (compatibility version 0.9.7, current version 0.9.7)
/sw/lib/liblcms.1.dylib (compatibility version 2.0.0, current version 2.12.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 71.1.1)
/sw/lib/libtiff.3.dylib (compatibility version 3.6.0, current version 3.6.1)
libqt-mt.3.dylib (compatibility version 3.3.0, current version 3.3.3)
/sw/lib/libpng.3.dylib (compatibility version 3.0.0, current version 3.0.0)
/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.0.0)
 
I still have problems with some plugins and some icons don't show, but
otherwise it's usable.
Anyone who want's to test and help finishing it to a proper MacOSX
application?
 
Regards
Andreas
 
Ah, yes, the screenshot:
 
http://nashi.altmuehlnet.de/pipermail/scribus/attachments/20050305/a9711066/scribus-screen-shot-small-0001.jpg

Latest revision as of 11:34, 12 April 2015

Native version of Scribus for Mac OSX

Stable

  • You can grab the latest stable version of Scribus from here or you can get full installation instructions (including installation of GhostScript) here.

Development

Obsolete

Obsolete PPC OSX

  • Scribus 1.3.x on MacOSX is still work in progress, but there are very usable, frequently updated binary test builds. Details are here http://www.scribus.net/?q=macosx
  • Builds of the native Aqua version are now available from sourceforge (choose the 1.3.5svn version)
  • aqua.scribus.net is the place go for the native Aqua version, when you want to know more details and download the latest packages (but this link now seems to redirect to a general page)
  • List of all known issues — check this list before reporting new errors