2004-02-29 01:40:09 +00:00
|
|
|
|
Date : 15-Jan-2004
|
2004-03-04 14:46:41 +00:00
|
|
|
|
Last update: 4-Mar-2004 (tested under Mac OS X 10.3 / Darwin 7)
|
2004-02-29 01:40:09 +00:00
|
|
|
|
--> must be verified on x86-darwin-7, powerpc-apple-darwin-6
|
|
|
|
|
Authors: Adam Fedor <fedor@gnu.org>
|
2004-02-29 03:39:54 +00:00
|
|
|
|
Quentin Math<74> <qmathe@club-internet.fr>
|
2004-01-21 19:44:27 +00:00
|
|
|
|
|
|
|
|
|
PURPOSE
|
|
|
|
|
-------
|
|
|
|
|
|
2004-02-29 03:39:54 +00:00
|
|
|
|
This document is intended to provide a step by step instruction on how to get
|
|
|
|
|
the GNUstep installed on Mac OS X and Darwin.
|
2004-02-29 01:40:09 +00:00
|
|
|
|
|
2004-02-29 03:39:54 +00:00
|
|
|
|
Note: GNUstep seems to install on Mac OS X 10.2 / Darwin 6, but the bundles
|
|
|
|
|
support seems to be broken, then applications based on GNUstep-gui will not
|
|
|
|
|
work. (Must be verified)
|
2004-02-12 04:36:45 +00:00
|
|
|
|
|
|
|
|
|
COMMONLY USED SYMBOLS
|
|
|
|
|
---------------------
|
|
|
|
|
|
2004-02-29 03:39:54 +00:00
|
|
|
|
<> denotes a variable depending on your preferences. To be replaced with the
|
2004-03-04 14:46:41 +00:00
|
|
|
|
actual values from your system. For instance, if you installed gcc in /opt/local
|
2004-02-12 04:36:45 +00:00
|
|
|
|
|
|
|
|
|
./configure CC='<gcc install dir>/bin/gcc'
|
|
|
|
|
|
|
|
|
|
will become
|
|
|
|
|
|
|
|
|
|
./configure CC='/opt/local/bin/gcc'
|
|
|
|
|
|
|
|
|
|
[] denotes an optional parameter. For instance:
|
|
|
|
|
|
|
|
|
|
./configure [--enable-graphics=art]
|
|
|
|
|
|
|
|
|
|
can be either:
|
|
|
|
|
|
|
|
|
|
./configure
|
|
|
|
|
|
|
|
|
|
or:
|
|
|
|
|
|
|
|
|
|
./configure --enable-graphics=art
|
2004-01-21 19:44:27 +00:00
|
|
|
|
|
2004-02-29 01:40:09 +00:00
|
|
|
|
POTENTIAL ERRORS WHEN RUNNING MAKE ESPECIALLY WITH BACK AND GUI
|
|
|
|
|
---------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
If you get errors like below, just do:
|
2004-03-04 14:46:41 +00:00
|
|
|
|
|
|
|
|
|
make clean
|
|
|
|
|
make
|
|
|
|
|
|
|
|
|
|
The second or the third time, the errors should disappear. It's probably due to
|
|
|
|
|
some potential issues between FSF GCC and the libtool/ld Mac OS X / Darwin
|
2004-02-29 03:39:54 +00:00
|
|
|
|
versions.
|
2004-02-29 01:40:09 +00:00
|
|
|
|
|
|
|
|
|
Linking subproject x11 ...
|
|
|
|
|
/usr/bin/ld: shared_obj/xdnd.o bad magic number (not a Mach-O file)
|
|
|
|
|
collect2: ld returned 1 exit status
|
|
|
|
|
make[3]: *** [shared_obj/subproject.o] Error 1
|
|
|
|
|
make[2]: *** [x11.all.subproject.variables] Error 2
|
|
|
|
|
make[1]: *** [libgnustep-back.all.bundle.variables] Error 2
|
|
|
|
|
make: *** [internal-all] Error 2
|
|
|
|
|
|
|
|
|
|
|
2004-01-21 19:44:27 +00:00
|
|
|
|
PRELIMINAIRES
|
|
|
|
|
-------------
|
|
|
|
|
|
|
|
|
|
For all targets, get the following software:
|
|
|
|
|
|
2004-02-29 01:40:09 +00:00
|
|
|
|
libxml2 (Optional, highly recommended, already in Mac OS X 10.3 / Darwin 7)
|
|
|
|
|
libtiff (Required)
|
|
|
|
|
libjpeg (Optional, highly recommended)
|
|
|
|
|
libpng (Optional, highly recommended)
|
|
|
|
|
|
|
|
|
|
libffi (Required, only contained in the gcc distributions and pyobjc)
|
|
|
|
|
ffcall (On Darwin x86 - use instead of libffi)
|
|
|
|
|
|
2004-03-04 14:46:41 +00:00
|
|
|
|
Xfree86 (Required, already in Mac OS X 10.3/Darwin 7, to know more read below,
|
|
|
|
|
needed for 10.2 / Darwin 6 and earlier)
|
2004-01-21 19:44:27 +00:00
|
|
|
|
|
2004-02-29 01:40:09 +00:00
|
|
|
|
libart2 (Optional, but required in the case you choose to use the art backend)
|
|
|
|
|
freetype2 (Optional, but required in the case you choose to use the art backend)
|
2004-01-21 19:44:27 +00:00
|
|
|
|
|
2004-02-29 01:40:09 +00:00
|
|
|
|
dlcompat (Required, to be able to load bundles, included with Fink installation)
|
2004-02-12 04:36:45 +00:00
|
|
|
|
|
2004-01-21 19:44:27 +00:00
|
|
|
|
Obtaining GNUstep
|
|
|
|
|
-----------------
|
|
|
|
|
|
2004-02-29 03:39:54 +00:00
|
|
|
|
The main GNUstep project pages tell you how to get hold of this. You can get the
|
2004-03-04 14:46:41 +00:00
|
|
|
|
latest release of the following libraries. However, since Mac OS X support is
|
|
|
|
|
currently evolving, we recommend that you get the latest snapshot or code from
|
|
|
|
|
CVS.
|
2004-01-21 19:44:27 +00:00
|
|
|
|
|
|
|
|
|
You need these gnustep packages:
|
|
|
|
|
|
|
|
|
|
GNUstep-make
|
|
|
|
|
GNUstep-base
|
|
|
|
|
GNUstep-gui
|
|
|
|
|
GNUstep-back
|
|
|
|
|
|
|
|
|
|
Targets
|
|
|
|
|
-------
|
2004-03-04 14:46:41 +00:00
|
|
|
|
|
2004-02-29 03:39:54 +00:00
|
|
|
|
For GNUstep, there are several combinations of Objective-C runtime, Foundation
|
2004-03-04 14:46:41 +00:00
|
|
|
|
library and Application Kit library possible, called library combos. The usual
|
|
|
|
|
notation is:
|
2004-02-12 04:36:45 +00:00
|
|
|
|
|
|
|
|
|
objcruntime-foundation-applicationkit
|
|
|
|
|
|
|
|
|
|
Theoretically possible are:
|
|
|
|
|
|
2004-02-29 03:39:54 +00:00
|
|
|
|
gnu-gnu-gnu # gnu-objc runtime with gnustep-base and gnustep-gui. Most
|
|
|
|
|
widely tested.
|
|
|
|
|
apple-gnu-gnu # apple-objc runtime with gnustep libraries. Does currently
|
|
|
|
|
not work
|
|
|
|
|
apple-apple-gnu # Apple Foundation with gnustep-gui on the top. Only of
|
|
|
|
|
academically interest.
|
|
|
|
|
apple-apple-apple # Cocoa with GNUstep additions. For porting GNUstep apps to
|
|
|
|
|
Cocoa.
|
2004-02-12 04:36:45 +00:00
|
|
|
|
|
2004-02-29 01:40:09 +00:00
|
|
|
|
All gnu-*-apple library combos are purely theoretical and only available to the
|
2004-02-12 04:36:45 +00:00
|
|
|
|
folks inside Apple since no mortal person ever saw the Cocoa source code. ;-)
|
|
|
|
|
|
|
|
|
|
You can use either the Apple compiler or compile your own FSF compiler. This
|
2004-01-21 19:44:27 +00:00
|
|
|
|
potentially gives two different targets:
|
|
|
|
|
|
2004-02-12 04:36:45 +00:00
|
|
|
|
Apple GCC, gnu-gnu-gnu
|
|
|
|
|
FSF GCC, gnu-gnu-gnu
|
2004-01-21 19:44:27 +00:00
|
|
|
|
|
2004-02-29 01:40:09 +00:00
|
|
|
|
Unfortunately, using Apple GCC with gnu-gnu-gnu doesn't appear to work currently
|
2004-03-04 14:46:41 +00:00
|
|
|
|
(see below for more info), so this option really isn't open now.
|
|
|
|
|
|
2004-02-29 03:39:54 +00:00
|
|
|
|
In addition, if you are on Mac OS X, you can also use the Apple Foundation and
|
2004-03-04 14:46:41 +00:00
|
|
|
|
AppKit frameworks to do GNUstep development with Cocoa, but this only works with
|
|
|
|
|
the Apple compiler:
|
2004-01-21 19:44:27 +00:00
|
|
|
|
|
2004-02-12 04:36:45 +00:00
|
|
|
|
Apple GCC, apple-apple-apple
|
2004-01-21 19:44:27 +00:00
|
|
|
|
|
2004-02-29 01:40:09 +00:00
|
|
|
|
GNUstep on Darwin x86
|
|
|
|
|
---------------------
|
2004-01-21 19:44:27 +00:00
|
|
|
|
|
2004-02-29 03:39:54 +00:00
|
|
|
|
For GNUstep on Darwin x86, Apple GCC compiles GNUstep-base, but causes strange
|
2004-03-04 14:46:41 +00:00
|
|
|
|
problems when running programs (e.g. the program hangs while allocating memory
|
|
|
|
|
or executes methods multiple times). So we have to use FSF GCC.
|
2004-02-12 04:36:45 +00:00
|
|
|
|
|
2004-02-29 03:39:54 +00:00
|
|
|
|
Additionally, libffi has not been ported to Darwin x86, so you will need to
|
2004-03-04 14:46:41 +00:00
|
|
|
|
install ffcall instead.
|
2004-01-21 19:44:27 +00:00
|
|
|
|
|
2004-02-29 03:39:54 +00:00
|
|
|
|
ffcall (ftp://ftp.gnustep.org/pub/gnustep/libs or
|
|
|
|
|
ftp://ftp.santafe.edu/pub/gnu/ffcall-1.9.tar.gz)
|
2004-01-21 19:44:27 +00:00
|
|
|
|
|
2004-02-29 01:40:09 +00:00
|
|
|
|
See instructions below for building ffcall.
|
2004-02-12 04:36:45 +00:00
|
|
|
|
|
|
|
|
|
GNUstep on Darwin PowerPC
|
|
|
|
|
-------------------------
|
|
|
|
|
|
2004-02-29 03:39:54 +00:00
|
|
|
|
Haven't been able to get Apple GCC on Mac OS X 10.2 / Darwin 6 to compile
|
2004-03-04 14:46:41 +00:00
|
|
|
|
GNUstep-base. The compiler crashes with various errors. You need the FSF GCC
|
|
|
|
|
compiler here. You need at least version 3.3.2. (While version 3.3.2 works, it
|
|
|
|
|
will not install libffi)
|
2004-02-12 04:36:45 +00:00
|
|
|
|
|
|
|
|
|
Building FSF-GCC
|
|
|
|
|
----------------
|
2004-01-21 19:44:27 +00:00
|
|
|
|
|
2004-02-29 01:40:09 +00:00
|
|
|
|
Darwin x86:
|
2004-01-21 19:44:27 +00:00
|
|
|
|
|
2004-02-12 04:36:45 +00:00
|
|
|
|
FSF GCC is difficult to compile here. The only way I could do it was like this:
|
|
|
|
|
|
2004-02-29 01:40:09 +00:00
|
|
|
|
ln -s /usr/bin/c++filt /usr/bin/c++filt3 # missing on Darwin x86 ?
|
2004-02-12 04:36:45 +00:00
|
|
|
|
|
|
|
|
|
and then configure gcc with:
|
|
|
|
|
|
2004-02-29 03:39:54 +00:00
|
|
|
|
mkdir build # create a sibling to the
|
|
|
|
|
toplevel source
|
|
|
|
|
dir
|
2004-02-12 04:36:45 +00:00
|
|
|
|
cd build
|
2004-02-29 01:40:09 +00:00
|
|
|
|
<dir>/gcc-X.X.X/configure --enable-languages=c,objc # don't try to build c++
|
2004-01-21 19:44:27 +00:00
|
|
|
|
make bootstrap
|
|
|
|
|
make install
|
|
|
|
|
cd /usr/local/lib
|
2004-02-29 01:40:09 +00:00
|
|
|
|
ln -s libobjc.a libobjc.dylib # So the linker sees us
|
2004-01-21 19:44:27 +00:00
|
|
|
|
|
2004-02-12 04:36:45 +00:00
|
|
|
|
(Replace X.X.X with the actual distribution you have).
|
2004-01-21 19:44:27 +00:00
|
|
|
|
|
2004-02-12 04:36:45 +00:00
|
|
|
|
gcc on Darwin doesn't appear to support threads.
|
2004-01-21 19:44:27 +00:00
|
|
|
|
|
2004-02-12 04:36:45 +00:00
|
|
|
|
Darwin PowerPC:
|
2004-01-21 19:44:27 +00:00
|
|
|
|
|
2004-02-29 03:39:54 +00:00
|
|
|
|
configure and build as follows (tested using gcc-3.3.2 on Mac OS X 10.2 and
|
|
|
|
|
10.3):
|
2004-01-21 19:44:27 +00:00
|
|
|
|
|
2004-02-12 04:36:45 +00:00
|
|
|
|
mkdir build
|
|
|
|
|
cd build
|
2004-02-29 03:39:54 +00:00
|
|
|
|
<dir>/gcc-x.x.x/configure [ --prefix=<gcc install dir>] # by default gcc
|
|
|
|
|
installs in /usr/local
|
2004-02-12 04:36:45 +00:00
|
|
|
|
make bootstrap
|
|
|
|
|
make install
|
|
|
|
|
cd <gcc install dir>/lib
|
2004-02-29 01:40:09 +00:00
|
|
|
|
ln -s libobjc.a libobjc.dylib # So the linker sees us
|
2004-01-21 19:44:27 +00:00
|
|
|
|
|
|
|
|
|
Setting up the GNUstep make environment
|
|
|
|
|
---------------------------------------
|
|
|
|
|
|
|
|
|
|
In the GNUstep-make (core/make) package, do
|
|
|
|
|
|
2004-02-29 01:40:09 +00:00
|
|
|
|
with bourne shell like bash (Mac OS X 10.3):
|
|
|
|
|
|
|
|
|
|
echo 'export CC=<gcc install dir>/bin/gcc' >> ~/.profile
|
|
|
|
|
|
|
|
|
|
with c shell like tcsh (Mac OS X 10.2):
|
|
|
|
|
|
|
|
|
|
echo 'setenv CC <gcc install dir>/bin/gcc' >> ~/.tcshrc
|
|
|
|
|
|
|
|
|
|
else use [CC='<gcc install dir>/bin/gcc'] when running configure.
|
|
|
|
|
|
|
|
|
|
then:
|
|
|
|
|
|
2004-03-04 14:46:41 +00:00
|
|
|
|
./configure --with-library-combo=gnu-gnu-gnu [--prefix=<GNUstep install dir>]
|
2004-02-29 03:39:54 +00:00
|
|
|
|
[CC='<gcc install dir>/bin/gcc']
|
2004-01-21 19:44:27 +00:00
|
|
|
|
|
2004-03-04 14:46:41 +00:00
|
|
|
|
(apple-apple-apple is the default if you don't specify gnu-gnu-gnu). If you want
|
|
|
|
|
to be able to compile for different targets/platforms together. Do this:
|
2004-01-21 19:44:27 +00:00
|
|
|
|
|
2004-02-29 03:39:54 +00:00
|
|
|
|
./configure --with-library-combo=gnu-gnu-gnu -disable-flattened
|
2004-03-04 14:46:41 +00:00
|
|
|
|
--enable-multi-platform [--prefix=<GNUstep install dir>] [CC='<gcc install
|
2004-02-29 03:39:54 +00:00
|
|
|
|
dir>/bin/gcc']
|
2004-01-21 19:44:27 +00:00
|
|
|
|
|
|
|
|
|
Now:
|
|
|
|
|
|
|
|
|
|
make
|
|
|
|
|
make install
|
|
|
|
|
|
2004-02-29 01:40:09 +00:00
|
|
|
|
Building and installing libobjc (target Apple GCC, gnu-gnu-gnu only !!!)
|
2004-01-21 19:44:27 +00:00
|
|
|
|
-------------------------------
|
|
|
|
|
|
2004-02-29 01:40:09 +00:00
|
|
|
|
Warning ! Don't compile libobjc if you are using FSF GCC.
|
|
|
|
|
|
2004-03-04 14:46:41 +00:00
|
|
|
|
Go to gnustep-objc (or from CVS, into dev-libs/libobjc), and type:
|
2004-01-21 19:44:27 +00:00
|
|
|
|
|
|
|
|
|
make install
|
|
|
|
|
|
2004-02-12 04:36:45 +00:00
|
|
|
|
This should build and install the GNU Objective-C runtime and headers for you.
|
2004-01-21 19:44:27 +00:00
|
|
|
|
|
2004-02-29 01:40:09 +00:00
|
|
|
|
Building and installing libffi (on Darwin PowerPC only !!!)
|
2004-01-21 19:44:27 +00:00
|
|
|
|
------------------------------
|
|
|
|
|
|
2004-02-29 03:39:54 +00:00
|
|
|
|
Untar the GNU gcc distribution, at least a version 3.4 series snapshot (even if
|
2004-03-04 14:46:41 +00:00
|
|
|
|
you are not compiling the compiler) and:
|
2004-01-21 19:44:27 +00:00
|
|
|
|
|
|
|
|
|
mkdir libffi-build
|
|
|
|
|
cd libffi-build
|
2004-03-04 14:46:41 +00:00
|
|
|
|
<gcc-3.4 install dir>/libffi/configure [CC='<gcc install dir>/bin/gcc']
|
2004-01-21 19:44:27 +00:00
|
|
|
|
make
|
|
|
|
|
make install
|
|
|
|
|
|
2004-02-29 03:39:54 +00:00
|
|
|
|
Note: the lastest 3.4 snapshot doesn't seem to have a working libffi on Mac OS X
|
|
|
|
|
/ Darwin.
|
2004-01-21 19:44:27 +00:00
|
|
|
|
|
2004-02-29 03:39:54 +00:00
|
|
|
|
Use PyObjC libffi from http://pyobjc.sourceforge.net, in the case GNUstep-base
|
2004-03-04 14:46:41 +00:00
|
|
|
|
install doesn't work with the 3.4 snapshot.
|
2004-02-29 01:40:09 +00:00
|
|
|
|
|
|
|
|
|
mkdir libffi-build
|
|
|
|
|
cd libffi-build
|
|
|
|
|
<pyobjc dir>/libffi-src/configure
|
|
|
|
|
make
|
|
|
|
|
make install
|
2004-01-21 19:44:27 +00:00
|
|
|
|
|
2004-03-04 14:46:41 +00:00
|
|
|
|
Warning ! Don't install libffi in <gcc install dir>, let it just install in
|
|
|
|
|
/usr/local.
|
2004-02-29 01:40:09 +00:00
|
|
|
|
|
|
|
|
|
Building and installing ffcall (on Darwin x86 only !!!)
|
2004-01-21 19:44:27 +00:00
|
|
|
|
------------------------------
|
|
|
|
|
|
|
|
|
|
./configure --prefix=$GNUSTEP_SYSTEM_ROOT \
|
|
|
|
|
--libdir=$GNUSTEP_SYSTEM_ROOT/Library/Libraries \
|
|
|
|
|
--includedir=$GNUSTEP_SYSTEM_ROOT/Library/Headers
|
|
|
|
|
|
|
|
|
|
Now you can now build and install it simply by typing:
|
|
|
|
|
|
|
|
|
|
make
|
|
|
|
|
make install
|
|
|
|
|
|
|
|
|
|
Additional libraries
|
|
|
|
|
--------------------
|
|
|
|
|
|
2004-03-04 14:46:41 +00:00
|
|
|
|
Build and install and additional libraries listed above. You can also get them
|
|
|
|
|
via Fink (http://fink.sourceforge.net) or DarwinPorts
|
2004-02-29 03:39:54 +00:00
|
|
|
|
(http://darwinports.opendarwin.org/) and sometimes they are already present on
|
|
|
|
|
Mac OS X.
|
2004-02-29 01:40:09 +00:00
|
|
|
|
|
2004-02-29 03:39:54 +00:00
|
|
|
|
And to have the additional libraries taken in account by the Mac OS X / Darwin
|
2004-03-04 14:46:41 +00:00
|
|
|
|
linker with bourne shell like bash (Mac OS X 10.3), here is an example with Fink
|
|
|
|
|
obtained libraries:
|
2004-02-29 01:40:09 +00:00
|
|
|
|
|
2004-02-29 03:39:54 +00:00
|
|
|
|
echo 'export DYLD_LIBRARY_PATH=<gcc install dir>/lib:/sw/lib:$DYLD_LIBRARY_PATH'
|
|
|
|
|
>> ~/.profile
|
2004-02-29 01:40:09 +00:00
|
|
|
|
|
|
|
|
|
with c shell like tcsh (Mac OS X 10.2):
|
|
|
|
|
|
2004-02-29 03:39:54 +00:00
|
|
|
|
echo 'setenv DYLD_LIBRARY_PATH <gcc install dir>/lib:/sw/lib:$DYLD_LIBRARY_PATH'
|
|
|
|
|
>> ~/.tcshrc
|
2004-02-12 04:36:45 +00:00
|
|
|
|
|
|
|
|
|
Source GNUstep.sh
|
|
|
|
|
-----------------
|
|
|
|
|
|
2004-02-29 01:40:09 +00:00
|
|
|
|
If you are using bourne shell like bash, type:
|
2004-02-12 04:36:45 +00:00
|
|
|
|
|
|
|
|
|
. <GNUstep install dir>/System/Makefiles/GNUstep.sh
|
|
|
|
|
|
2004-02-29 01:40:09 +00:00
|
|
|
|
If you are using c shell like tcsh, type:
|
2004-02-12 04:36:45 +00:00
|
|
|
|
|
|
|
|
|
source <GNUstep install dir>/System/Makefiles/GNUstep.csh
|
2004-01-21 19:44:27 +00:00
|
|
|
|
|
|
|
|
|
Building and installing GNUstep-base
|
|
|
|
|
------------------------------------
|
|
|
|
|
|
2004-02-29 01:40:09 +00:00
|
|
|
|
Go to GNUstep-base (or from CVS into the core/base directory)
|
2004-02-12 04:36:45 +00:00
|
|
|
|
|
|
|
|
|
If you are using the default gcc (Apple GCC) type:
|
2004-01-21 19:44:27 +00:00
|
|
|
|
|
|
|
|
|
make install
|
|
|
|
|
|
2004-03-04 14:46:41 +00:00
|
|
|
|
This should automatically run the configure script for you, build the base
|
|
|
|
|
library and some tools, and install the whole lot (along with some system
|
|
|
|
|
resources).
|
2004-02-12 04:36:45 +00:00
|
|
|
|
|
|
|
|
|
Otherwise (if you installed FSF GCC) type:
|
|
|
|
|
|
2004-02-29 01:40:09 +00:00
|
|
|
|
./configure [CC='<gcc install dir>/bin/gcc']
|
2004-01-21 19:44:27 +00:00
|
|
|
|
|
2004-02-12 04:36:45 +00:00
|
|
|
|
or if you decided not to build libffi or ffcall:
|
|
|
|
|
|
|
|
|
|
./configure --disable-do [CC='<gcc install dir>/bin/gcc']
|
|
|
|
|
|
|
|
|
|
followed by
|
|
|
|
|
|
|
|
|
|
make
|
|
|
|
|
make install
|
|
|
|
|
|
2004-03-04 14:46:41 +00:00
|
|
|
|
On the apple-apple-apple target, it will only build the GNUstep additions
|
|
|
|
|
library that adds extra stuff to Foundation. If you are using the
|
|
|
|
|
apple-apple-apple target, there currently is no reason to go on and compile
|
|
|
|
|
GNUstep-gui.
|
2004-01-21 19:44:27 +00:00
|
|
|
|
|
|
|
|
|
Building and installing GNUstep-gui
|
|
|
|
|
-----------------------------------
|
|
|
|
|
|
2004-02-29 01:40:09 +00:00
|
|
|
|
Go to GNUstep-gui (or from CVS into the core/gui directory), and type
|
2004-01-21 19:44:27 +00:00
|
|
|
|
|
2004-02-29 01:40:09 +00:00
|
|
|
|
If you are using the Apple GCC or the FSF GCC type:
|
2004-02-12 04:36:45 +00:00
|
|
|
|
|
2004-02-29 01:40:09 +00:00
|
|
|
|
./configure --disable-gsnd [CC='<gcc install dir>/bin/gcc']
|
2004-02-12 04:36:45 +00:00
|
|
|
|
|
|
|
|
|
followed by
|
|
|
|
|
|
2004-01-26 04:47:58 +00:00
|
|
|
|
make
|
2004-01-21 19:44:27 +00:00
|
|
|
|
make install
|
|
|
|
|
|
2004-02-29 01:40:09 +00:00
|
|
|
|
Note: The gsnd server hasn't been ported to Mac OS X / Darwin yet.
|
|
|
|
|
|
2004-02-29 03:39:54 +00:00
|
|
|
|
In the case configure didn't found libjpeg, use --with-jpeg-library=<jpeg lib
|
2004-03-04 14:46:41 +00:00
|
|
|
|
dir> --with-jpeg-include=<jpeg include dir> to have the libjpeg detected.
|
2004-02-29 01:40:09 +00:00
|
|
|
|
|
|
|
|
|
Example with Fink:
|
|
|
|
|
|
2004-02-29 03:39:54 +00:00
|
|
|
|
./configure --disable-gsnd --with-jpeg-library=/sw/lib
|
|
|
|
|
--with-jpeg-include=/sw/include
|
2004-01-26 04:47:58 +00:00
|
|
|
|
|
2004-01-21 19:44:27 +00:00
|
|
|
|
|
|
|
|
|
Building and installing GNUstep-back
|
|
|
|
|
------------------------------------
|
|
|
|
|
|
2004-03-04 14:46:41 +00:00
|
|
|
|
Warning ! You must have installed X11User.pkg from the Panther install disc and
|
|
|
|
|
also X11SDK.pkg from the xCode Tools install disc to be able to compile
|
|
|
|
|
GNUstep-back under Mac OS X 10.3.
|
|
|
|
|
|
|
|
|
|
If you aren't installing GNUstep under Mac OS X 10.3 / Darwin 7, you can use
|
|
|
|
|
XDarwin (ftp://ftp.xfree86.org/pub/XFree86/4.3.0/binaries/Darwin-ppc-6.x/) for
|
|
|
|
|
the X server, take a look at http://www.xdarwin.org
|
2004-02-29 01:40:09 +00:00
|
|
|
|
|
|
|
|
|
In the back directory, type:
|
2004-01-21 19:44:27 +00:00
|
|
|
|
|
2004-02-12 04:36:45 +00:00
|
|
|
|
./configure [CC='<gcc install dir>/bin/gcc']
|
2004-01-26 04:47:58 +00:00
|
|
|
|
make
|
|
|
|
|
make install
|
|
|
|
|
|
2004-02-29 03:39:54 +00:00
|
|
|
|
In the case, you choose to use the art backend, you will need to have the
|
2004-03-04 14:46:41 +00:00
|
|
|
|
freetype2 and libart2 libraries installed, first be sure to have libart2 in your
|
|
|
|
|
path, for example, with Fink installation type:
|
2004-02-29 01:40:09 +00:00
|
|
|
|
|
|
|
|
|
export DYLD_LIBRARY_PATH=/sw/lib:$DYLD_LIBRARY_PATH
|
|
|
|
|
|
|
|
|
|
Then you should be able to configure back and install it.
|
2004-01-26 04:47:58 +00:00
|
|
|
|
|
2004-02-12 04:36:45 +00:00
|
|
|
|
./configure --enable-graphics=art [CC='<gcc install dir>/bin/gcc']
|
2004-01-26 04:47:58 +00:00
|
|
|
|
make
|
2004-01-21 19:44:27 +00:00
|
|
|
|
make install
|
|
|
|
|
|
2004-03-04 14:46:41 +00:00
|
|
|
|
You also need to have /sw/lib in your library path before running GNUstep apps
|
|
|
|
|
with the art backend, as it needs to find libart2, so put the above export
|
|
|
|
|
DYLD_LIBRARY_PATH somewhere in your .profile (or do the export before launching
|
|
|
|
|
an application) [see the above "Additional Libraries" section].
|
2004-02-29 01:40:09 +00:00
|
|
|
|
|
2004-02-29 03:39:54 +00:00
|
|
|
|
The backend architecture which GNUstep-gui is built upon, has been written to be
|
2004-03-04 14:46:41 +00:00
|
|
|
|
used within X Windows, then you need to start up an X Server (like Apple X11) to
|
|
|
|
|
run the GNUstep-gui applications.
|
2004-02-29 01:40:09 +00:00
|
|
|
|
|
2004-03-04 14:46:41 +00:00
|
|
|
|
Warning ! With the art backend, before to launch applications based on
|
|
|
|
|
GNUstep-gui, in the shell, don't forget to edit the defaults (no need it to redo
|
|
|
|
|
it later) :
|
2004-02-29 01:40:09 +00:00
|
|
|
|
|
|
|
|
|
defaults write NSGlobalDomain XWindowBufferUseXShm NO
|
|
|
|
|
|
2004-02-29 03:39:54 +00:00
|
|
|
|
because Apple X11 doesn't support well shared memory for buffering (wich libart2
|
|
|
|
|
uses by default).
|
2004-02-29 01:40:09 +00:00
|
|
|
|
|
|
|
|
|
More informations on the art backend
|
|
|
|
|
------------------------------------
|
|
|
|
|
|
2004-02-29 03:39:54 +00:00
|
|
|
|
To have a working art backend... You will also need to download and install
|
2004-03-04 14:46:41 +00:00
|
|
|
|
fonts, as it uses a specific font format. Use for example the file
|
2004-02-29 03:39:54 +00:00
|
|
|
|
http://w1.423.telia.com/~u42308495/alex/backart/ArtResources-0.1.2.tar.bz2 and
|
2004-03-04 14:46:41 +00:00
|
|
|
|
put the .nfont directories somewhere in $(GNUSTEP_SYSTEM_ROOT)/Library/Fonts
|
2004-02-29 01:40:09 +00:00
|
|
|
|
|
|
|
|
|
Other fonts are available on http://www.knuddel.org/Downloads/Fonts/
|
|
|
|
|
|
|
|
|
|
Window Maker
|
|
|
|
|
------------
|
|
|
|
|
|
2004-03-04 14:46:41 +00:00
|
|
|
|
Window Maker is the traditionnal window manager for GNUstep.
|
2004-02-29 01:40:09 +00:00
|
|
|
|
|
2004-02-29 03:39:54 +00:00
|
|
|
|
In the case, you choose to use it, don't forget to execute wmaker.inst else
|
2004-03-04 14:46:41 +00:00
|
|
|
|
Window Maker will crash with signal 10.
|
2004-02-29 01:40:09 +00:00
|
|
|
|
|
|
|
|
|
Example with Fink, do:
|
|
|
|
|
/sw/bin/wmaker.inst
|
|
|
|
|
|
|
|
|
|
GNUstep daemons
|
|
|
|
|
---------------
|
|
|
|
|
|
|
|
|
|
Refer to GNUstep-HOWTO to know how to launch GNUstep daemons.
|
|
|
|
|
|
2004-02-29 03:39:54 +00:00
|
|
|
|
Note: If you try to start GNUstep daemons by hand with 'sudo opentool dameon',
|
2004-03-04 14:46:41 +00:00
|
|
|
|
it won't work, because when you become root on Mac OS X / Darwin with sudo or
|
|
|
|
|
su, DYLD_LIBRARY_PATH environment variable is erased, then to start them in the
|
|
|
|
|
shell, do:
|
2004-02-29 01:40:09 +00:00
|
|
|
|
|
2004-02-29 03:39:54 +00:00
|
|
|
|
sudo opentool gdomap (gdomap doesn't rely on the GNUstep libraries or other
|
2004-03-04 14:46:41 +00:00
|
|
|
|
special librairies)
|
2004-02-29 01:40:09 +00:00
|
|
|
|
su root
|
|
|
|
|
|
|
|
|
|
then with bourne shell like bash (Mac OS X 10.3):
|
|
|
|
|
|
|
|
|
|
. /GNUSTEP_SYSTEM_ROOT/Library/Makesfiles/GNUstep.sh
|
|
|
|
|
|
|
|
|
|
or with c shell like tcsh (Mac OS X 10.2):
|
|
|
|
|
|
|
|
|
|
source /GNUSTEP_SYSTEM_ROOT/Library/Makesfiles/GNUstep.csh
|
|
|
|
|
|
|
|
|
|
and just do:
|
|
|
|
|
|
|
|
|
|
opentool gdnc
|
|
|
|
|
opentool gpbs
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
2004-03-04 14:46:41 +00:00
|
|
|
|
That's all.
|