[Scribus] Success: compile Mac/Aqua from CVS without patches

Craig Ringer craig
Tue Mar 22 03:30:53 CET 2005


Hi

Thanks for the neat summary Andreas. I've added a few extra notes below.

On Tue, 2005-03-22 at 02:37 +0100, Andreas Vox wrote:
> Thanks to Craig R.'s  recent changes Scribus now compiles straight
> from CVS on Mac/Aqua.

Of course, most of the changes that went in were directly based on those
published by Andreas and by Martin.

A few of Martin's are still to come because I don't yet really
understand why they're needed, what they do, how they work, and/or how
to integrate them into mainline (we can't do makefile hacks!).

-1. install fink and the libs required by scribus as documented in the
README . You won't get very far without freetype, libjpeg, and libart.
If you already have the current Scribus for X11 installed using fink,
you should be all set in this regard.

IIRC fink also includes a handy package called cups-dev or cups-devel
that provides the CUPS headers missing from MacOS/X < 10.4 . You'd be
well advised to install this. You can also just download CUPS 1.1.20
from cups.org and build against its headers, but the fink way is much
simpler.

> 0. Install Qt/Mac (not the X version!)
> 1. make -f Makefile.cvs
> 2. CPPFLAGS=-I/sw/lib LDFLAGS=-L/sw/lib export CPPFLAGS LDFLAGS
> 3. ./configure --enable-mac --enable-debug ---prefix=/usr/local  \
> 	--with-extra-libs=/sw/lib --with-extra-includes=/sw/include \
> 	--with-pythondir=/System/Library/Frameworks/Python.framework/Versions/ 
> 2.3/
> 
> ** --enable-debug is mandatory since ld chokes on '-s' when linking  
> modules

I'd like to remove stripping from the build entirely myself. The user
can strip on install with 'make install_strip' or by hand; that's how
most software does it.

> ** either CPP/LDFLAGS or --extra-include/libs might be superflous but I  
> didn't try that

It's often better to use the CPATH environment variable than CPPFLAGS/
CFLAGS / CXXFLAGS when specifying includes. AFAIK these two are largely
equivalent:

	CPATH="/sw/include"
	CPPFLAGS="-I/sw/include"

but I've found using CPATH to be simpler and often more reliable (it's
rarely trodden on by badly behaved build systems).

> 
> 4. make
> 5. sudo make install
> 6. unpack the Scribus.app skeleton
> 7. copy scribus/scribus to Scribus.app/Contents/MacOS/
> 8. open Scribus.app

Note that the rest of the Scribus bits will have to stay in their
installed places. This doesn't make a self-contained .app that you can
copy to other computers - out of the box build support for that is not
finished and doesn't yet work without a lot of fiddling by hand.

> * some fonts might not work

Fondu should be helpful for converting your Mac fonts to something
Scribus understands. Andreas's work may permit Scribus to use Mac fonts
directly in future though :-) . In the mean time there's some info on
the wiki about converting your fonts (also required for Scribus/X11 on
MacOS/X).

-- 
Craig Ringer





More information about the scribus mailing list