/usr/share/GNUstep/Documentation/User/GNUstep/gnustep-howto.html is in gnustep-make-doc 2.6.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html401/loose.dtd">
<html>
<!-- Created on October 17, 2011 by texi2html 1.82
texi2html was written by:
Lionel Cons <Lionel.Cons@cern.ch> (original author)
Karl Berry <karl@freefriends.org>
Olaf Bachmann <obachman@mathematik.uni-kl.de>
and many others.
Maintained by: Many creative people.
Send bugs and suggestions to <texi2html-bug@nongnu.org>
-->
<head>
<title>GNUstep HOWTO</title>
<meta name="description" content="GNUstep HOWTO">
<meta name="keywords" content="GNUstep HOWTO">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="texi2html 1.82">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
<!--
a.summary-letter {text-decoration: none}
blockquote.smallquotation {font-size: smaller}
pre.display {font-family: serif}
pre.format {font-family: serif}
pre.menu-comment {font-family: serif}
pre.menu-preformatted {font-family: serif}
pre.smalldisplay {font-family: serif; font-size: smaller}
pre.smallexample {font-size: smaller}
pre.smallformat {font-family: serif; font-size: smaller}
pre.smalllisp {font-size: smaller}
span.roman {font-family:serif; font-weight:normal;}
span.sansserif {font-family:sans-serif; font-weight:normal;}
ul.toc {list-style: none}
-->
</style>
</head>
<body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
<table><tr><td> </td><td><pre class="format"> GNUstep HOWTO
*************
Last Update: October 17, 2011
This document explains how to build the different components of the
GNUstep core libraries and GNUstep Launchpad.
Copyright (C) 1996 - 2007 Free Software Foundation, Inc.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Public License, Version 1.0 or
any later version published by the Free Software Foundation.
</pre></td></tr></table>
<a name="Top"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[Contents]</td>
<td valign="middle" align="left">[Index]</td>
<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<h1 class="settitle">GNUstep HOWTO</h1>
<table class="menu" border="0" cellspacing="0">
<tr><td align="left" valign="top"><a href="#Introduction">1. Introduction</a></td><td> </td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top"><a href="#Preliminaries">2. Summary</a></td><td> </td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top"><a href="#Compiling-and-Installing">3. Compiling and Installing the packages</a></td><td> </td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top"><a href="#Additional-Installation">4. Additional Installation</a></td><td> </td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top"><a href="#Tools-and-Applications">5. Test Tools and Applications</a></td><td> </td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top"><a href="#Machine-Specific">6. Machine Specific Instructions</a></td><td> </td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top"><a href="#Source-via-SVN">7. Getting Libraries via SVN</a></td><td> </td><td align="left" valign="top">
</td></tr>
</table>
<hr size="1">
<a name="Introduction"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#Top" title="Previous section in reading order"> < </a>]</td>
<td valign="middle" align="left">[<a href="#Preliminaries" title="Next section in reading order"> > </a>]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[ << ]</td>
<td valign="middle" align="left">[<a href="#Top" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="#Preliminaries" title="Next chapter"> >> </a>]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[<a href="#Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[Contents]</td>
<td valign="middle" align="left">[Index]</td>
<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<a name="Introduction-1"></a>
<h1 class="chapter">1. Introduction</h1>
<p>This document explains how to build the GNUstep core libraries. The
core libraries, along with associated tools and other files provide
everything necessary for a working GNUstep system.
</p>
<p>In order to easily compile and debug GNUstep projects, you will need the
GNU Objective-C compiler ‘<samp>GCC</samp>’ as well as various other GNU packages.
</p>
<p>You will need at least 80Mb of hard disk space (150Mb prefered) in order
to compile the GNUstep core libraries.
</p>
<hr size="6">
<a name="Preliminaries"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#Introduction" title="Previous section in reading order"> < </a>]</td>
<td valign="middle" align="left">[<a href="#Compiling-and-Installing" title="Next section in reading order"> > </a>]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[<a href="#Introduction" title="Beginning of this chapter or previous chapter"> << </a>]</td>
<td valign="middle" align="left">[<a href="#Top" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="#Compiling-and-Installing" title="Next chapter"> >> </a>]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[<a href="#Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[Contents]</td>
<td valign="middle" align="left">[Index]</td>
<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<a name="Summary"></a>
<h1 class="chapter">2. Summary</h1>
<p>In order to compile the libraries, you need to compile and install
the following packages first (if you don’t already have them):
</p>
<ul>
<li> gcc (Version 2.95 or greater, 3.0.4 or greater recommended)
</li><li> GNU make (Version 3.75 or greater)
</li><li> gdb (Version 6.0 or greater recommended), if you plan to do any debugging
</li></ul>
<p>You may also need to install some of the following libraries and
packages described below. Most of these packages are optional, but some
are required.
</p>
<dl compact="compact">
<dt> ‘<samp>ffcall libraries (HIGHLY RECOMMENDED)</samp>’</dt>
<dd><p>This is a library that provides stack-frame handling for NSInvocation
and NSConnection. This library is highly recommended. The previous
builtin method for stack frame handling is no longer supported and may
be removed in the future. ffcall is under GNU GPL. As a special
exception, if used in GNUstep or in derivate works of GNUstep, the
included parts of ffcall are under GNU LGPL.
</p>
</dd>
<dt> ‘<samp>libffi library (ALTERNATIVE RECOMMENDATION)</samp>’</dt>
<dd><p>This is a library that provides stack frame handling for NSInvocation
and NSConnection similar to ffcall.
Use this instead of ffcall. You don’t need both.
</p>
</dd>
<dt> ‘<samp>libxml2 (RECOMMENDED)</samp>’</dt>
<dd><p>The libxml library (Version 2) is used to translate some of the
documentation for GNUstep and to provide suport for MacOS-X compatible
XML-based property-lists. It is not required, but you have to explicitly
disable use of XML when compiling GNUstep base if you do not have it.
</p>
</dd>
<dt> ‘<samp>libxslt (OPTIONAL)</samp>’</dt>
<dd><p>Stylesheet support for use with XML.
</p>
</dd>
<dt> ‘<samp>openssl (OPTIONAL)</samp>’</dt>
<dd><p>The openssl library is used to provide support for https connections by
the NSURL and HSURLHandle classes. This functionality is
compiled as a separate bundle since the OpenSSL license is not
compatible with GPL, and in the hopes that if someone writes an openssl
replacement, it can quickly be used by creating another bundle.
</p>
</dd>
<dt> ‘<samp>libiconv (OPTIONAL)</samp>’</dt>
<dd><p>Note: Do not install this library unless you are sure you need it.
You probably don’t need it except perhaps on MinGW.
Unicode support functions (iconv) come with glibc version 2.1 or greater. If
you don’t have glibc (try iconv –version), you can get the separate
libiconv library from
<a href="http://clisp.cons.org/~haible/packages-libiconv.html">http://clisp.cons.org/~haible/packages-libiconv.html</a>. However,
neither one is required to use GNUstep.
</p>
</dd>
<dt> ‘<samp>The TIFF library (libtiff) (Version 3.4beta36 or greater) (REQUIRED)</samp>’</dt>
<dd><p>The GUI library uses this to handle loading and saving TIFF images.
</p>
</dd>
<dt> ‘<samp>The JPEG library (libjpeg) (RECOMMENDED)</samp>’</dt>
<dd><p>The GUI library uses this to handle loading JPEG images.
</p>
</dd>
<dt> ‘<samp>The PNG library (libpng) (RECOMMENDED)</samp>’</dt>
<dd><p>The GUI library uses this to handle loading PNG images.
</p>
</dd>
<dt> ‘<samp>gif or ungif (OPTIONAL)</samp>’</dt>
<dd><p>The GUI library uses either one of these libraries to load GIF images.
</p>
</dd>
<dt> ‘<samp>aspell (OPTIONAL)</samp>’</dt>
<dd><p>The GUI library uses this to handle spell checking.
</p>
</dd>
<dt> ‘<samp>cups (OPTIONAL)</samp>’</dt>
<dd><p>The GUI library uses this to handle interface to the CUPS print servers.
</p>
</dd>
<dt> ‘<samp>audiofile (OPTIONAL)</samp>’</dt>
<dd><p>The GUI library uses this for playing sound files.
</p>
</dd>
<dt> ‘<samp>portaudio (OPTIONAL)</samp>’</dt>
<dd><p>The GUI library uses this for the sound server. Use v19, which has
several API changes since the previous version. v19 hasn’t actually been
formally released, but several distributions (SuSE, etc) use it anyway.
</p>
</dd>
<dt> ‘<samp>freetype2 (RECOMMENDED, REQUIRED for art backend)</samp>’</dt>
<dd><p>This is used for font information. Freetype2 cache API is in flux.
GNUstep tries to account for
this, but if you get errors about undefined FTC_ symbols, you might be
using an unsupported version of freetype.
</p>
</dd>
<dt> ‘<samp>libart_lgpl2 (REQUIRED for art backend only)</samp>’</dt>
<dd><p>Drawing library for the art backend.
</p>
</dd>
<dt> ‘<samp>WindowMaker (Version >= 0.62) (OPTIONAL)</samp>’</dt>
<dd><p>GNUstep and WindowMaker work together to provide a consistant interface.
Although it is not required, GNUstep will work much better if you use it
with the WindowMaker window manager.
Get WindowMaker from <a href="http://www.windowmaker.info">http://www.windowmaker.info</a>.
</p>
</dd>
<dt> ‘<samp>gnustep-objc package (REQUIRED BUT ONLY for gcc version < 3.0 or MINGW/Cygwin)</samp>’</dt>
<dd><p>Note: Do not install this library unless you are sure you need it.
You probably don’t need it except on MinGW and Cygwin (regardless of the
gcc version you have).
This is a special version of the Objective-C runtime that is compiled
as a shared library.
It is available at <a href="ftp://ftp.gnustep.org/pub/gnustep/libs">ftp://ftp.gnustep.org/pub/gnustep/libs</a> which
compiles using the GNUstep Makefile package (so you don’t have to get the
entire gcc dist). Make sure to set the THREADING variable in the GNUmakefile.
It’s possible to compile the library static (make shared=no) and
just copy to the place where the gcc libobjc library is (type gcc -v to
get this location). Note you have to install gnustep-make (below) before
installing this library.
</p>
</dd>
<dt> ‘<samp>GDB (OPTIONAL)</samp>’</dt>
<dd><p>GDB can be obtained from <a href="ftp://ftp.gnu.org/gnu/gdb">ftp://ftp.gnu.org/gnu/gdb</a>. As of release
6.0, gdb has special support for debugging Objective-C programs.
</p>
</dd>
<dt> ‘<samp>TeX (OPTIONAL)</samp>’</dt>
<dd><p>You need a TeX implementation, like tetex, to compile some of the
documentation (although most of that is available on the web).
</p></dd>
</dl>
<hr size="6">
<a name="Compiling-and-Installing"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#Preliminaries" title="Previous section in reading order"> < </a>]</td>
<td valign="middle" align="left">[<a href="#Core-Package" title="Next section in reading order"> > </a>]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[<a href="#Preliminaries" title="Beginning of this chapter or previous chapter"> << </a>]</td>
<td valign="middle" align="left">[<a href="#Top" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="#Additional-Installation" title="Next chapter"> >> </a>]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[<a href="#Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[Contents]</td>
<td valign="middle" align="left">[Index]</td>
<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<a name="Compiling-and-Installing-the-packages"></a>
<h1 class="chapter">3. Compiling and Installing the packages</h1>
<p>Get the following individual packages:
</p>
<ul>
<li> gnustep-make
</li><li> gnustep-base
</li><li> gnustep-gui
</li><li> gnustep-back
</li></ul>
<p>See <a href="http://www.gnustep.org">http://www.gnustep.org</a> for information on where to get these
packages.
</p>
<p>Make sure you install (if necessary) all the previously mentioned
libraries first before configuring and building GNUstep.
</p>
<p>You should install these packages as root (read special note for the
gnustep-base library, below, if you cannot do this).
</p>
<p>For installation on specific systems, read the machine specific
instructions at the end of this document or appropriate README files in
the gnustep-make Documentation directory (such as README.MingW for Windows).
</p>
<table class="menu" border="0" cellspacing="0">
<tr><td align="left" valign="top"><a href="#Core-Package">3.1 Installing the Core Libraries</a></td><td> </td><td align="left" valign="top">
</td></tr>
</table>
<hr size="6">
<a name="Core-Package"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#Compiling-and-Installing" title="Previous section in reading order"> < </a>]</td>
<td valign="middle" align="left">[<a href="#Alternate-Library-Setup" title="Next section in reading order"> > </a>]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[<a href="#Compiling-and-Installing" title="Beginning of this chapter or previous chapter"> << </a>]</td>
<td valign="middle" align="left">[<a href="#Compiling-and-Installing" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="#Additional-Installation" title="Next chapter"> >> </a>]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[<a href="#Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[Contents]</td>
<td valign="middle" align="left">[Index]</td>
<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<a name="Installing-the-Core-Libraries"></a>
<h2 class="section">3.1 Installing the Core Libraries</h2>
<p>The GNUstep packages uses the Autoconf mechanism for configuration; it
checks some host capabilities which are used by all GNUstep software.
The first package you will compile is gnustep-make. To configure
gnustep-make just type:
</p>
<table><tr><td> </td><td><pre class="example">./configure
</pre></td></tr></table>
<p>The GNUstep makefile package can be configured to use different types
of filesystem layouts. By default, GNUstep is installed with a
Unix-style filesystem layout into /usr/local/. That is a good,
recommended default if you don’t have an opinion on which filesystem
layout to use.
</p>
<p>But you can also install it somewhere else by using the prefix
parameter; the following command installs it in /opt/GNUstep:
</p>
<table><tr><td> </td><td><pre class="example">./configure --prefix=/opt/GNUstep
</pre></td></tr></table>
<p>You can also install GNUstep using a GNUstep layout (or some other
filesystem layout of your choice) by using the with-layout parameter;
the following command configures GNUstep to use the traditional
GNUstep layout:
</p>
<table><tr><td> </td><td><pre class="example">./configure --with-layout=gnustep
</pre></td></tr></table>
<p>In this document we will always present examples that assume that you
are using the default filesystem layout in /usr/local/. If you are
using a different layout, you will need to make the obvious changes.
</p>
<table class="menu" border="0" cellspacing="0">
<tr><td align="left" valign="top"><a href="#Alternate-Library-Setup">3.1.1 Alternate Library Setup</a></td><td> </td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top"><a href="#Individual-Packages">3.1.2 Building the Package</a></td><td> </td><td align="left" valign="top">
</td></tr>
</table>
<hr size="6">
<a name="Alternate-Library-Setup"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#Core-Package" title="Previous section in reading order"> < </a>]</td>
<td valign="middle" align="left">[<a href="#Individual-Packages" title="Next section in reading order"> > </a>]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[<a href="#Compiling-and-Installing" title="Beginning of this chapter or previous chapter"> << </a>]</td>
<td valign="middle" align="left">[<a href="#Core-Package" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="#Additional-Installation" title="Next chapter"> >> </a>]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[<a href="#Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[Contents]</td>
<td valign="middle" align="left">[Index]</td>
<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<a name="Alternate-Library-Setup-1"></a>
<h3 class="subsection">3.1.1 Alternate Library Setup</h3>
<p>Read the installation instructions in the Makefile package (make) for more
installation options. Make sure you use the same
configuration options when configuring each GNUstep library.
</p>
<hr size="6">
<a name="Individual-Packages"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#Alternate-Library-Setup" title="Previous section in reading order"> < </a>]</td>
<td valign="middle" align="left">[<a href="#Additional-Installation" title="Next section in reading order"> > </a>]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[<a href="#Compiling-and-Installing" title="Beginning of this chapter or previous chapter"> << </a>]</td>
<td valign="middle" align="left">[<a href="#Core-Package" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="#Additional-Installation" title="Next chapter"> >> </a>]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[<a href="#Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[Contents]</td>
<td valign="middle" align="left">[Index]</td>
<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<a name="Building-the-Package"></a>
<h3 class="subsection">3.1.2 Building the Package</h3>
<p>To build the individual packages, use this familiar set of commands for
each pacakge (add any additional options you decide upon):
</p>
<table><tr><td> </td><td><pre class="example">./configure
make
make install
</pre></td></tr></table>
<p>Start with the Makefile Package (gnustep-make). After installing
gnustep-make you need to execute GNUstep’s shell configuration script,
as follows:
</p>
<table><tr><td> </td><td><pre class="example"> . /usr/local/share/GNUstep/Makefiles/GNUstep.sh
</pre></td></tr></table>
<p>before proceeding any further.
</p>
<p>NOTE for gcc 2.X or MinGW users: Now install gnustep-objc. Before building
gnustep-objc, edit the ‘<tt>GNUmakefile</tt>’ and set the <var>THREADING</var>
variable to the thread library used on your system (usually its posix,
but you can leave it at single if you don’t need threads). At this point
you should probably re-configure, make and install gnustep-make, so it
can pick up on any threading information that gnustep-objc provides.
</p>
<p>Now install gnustep-base, gnustep-gui and finally gnustep-back.
</p>
<p>NOTE: If you are trying to install the packages without root permission,
you may need to change one thing in the base library. Edit the file
gnustep-base/Tools/gdomap.h to uncomment the last line and modify
the specified port number to a port which you <em>know</em> is not in use on
your network. You should only do this if absolutely necessary since
making this change will break communications with any systems where
an identical change has not been made. Also, the standard gdomap port
is the one officially registered with IANA and is reserved for use by
gdomap - it should only be changed if you can’t get your system
administrator to start the gdomap server using it.
</p>
<hr size="6">
<a name="Additional-Installation"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#Individual-Packages" title="Previous section in reading order"> < </a>]</td>
<td valign="middle" align="left">[<a href="#Environment-Setup" title="Next section in reading order"> > </a>]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[<a href="#Compiling-and-Installing" title="Beginning of this chapter or previous chapter"> << </a>]</td>
<td valign="middle" align="left">[<a href="#Top" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="#Tools-and-Applications" title="Next chapter"> >> </a>]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[<a href="#Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[Contents]</td>
<td valign="middle" align="left">[Index]</td>
<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<a name="Additional-Installation-1"></a>
<h1 class="chapter">4. Additional Installation</h1>
<table class="menu" border="0" cellspacing="0">
<tr><td align="left" valign="top"><a href="#Environment-Setup">4.1 Environment Setup</a></td><td> </td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top"><a href="#GNUstep-Home">4.2 GNUstep Home</a></td><td> </td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top"><a href="#Time-Zone">4.3 Time Zone</a></td><td> </td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top"><a href="#GNUstep-deamons">4.4 GNUstep deamons</a></td><td> </td><td align="left" valign="top">
</td></tr>
</table>
<hr size="6">
<a name="Environment-Setup"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#Additional-Installation" title="Previous section in reading order"> < </a>]</td>
<td valign="middle" align="left">[<a href="#GNUstep-Home" title="Next section in reading order"> > </a>]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[<a href="#Additional-Installation" title="Beginning of this chapter or previous chapter"> << </a>]</td>
<td valign="middle" align="left">[<a href="#Additional-Installation" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="#Tools-and-Applications" title="Next chapter"> >> </a>]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[<a href="#Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[Contents]</td>
<td valign="middle" align="left">[Index]</td>
<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<a name="Environment-Setup-1"></a>
<h2 class="section">4.1 Environment Setup</h2>
<p>You need to make sure your environment is properly setup in order to
compile and run GNUstep software. The steps to setup your environment
differ slightly depending on your filesystem layout.
</p>
<p>There is a way of setting up your environment that always works:
sourcing the ‘<tt>GNUstep.sh</tt>’ shell script before using GNUstep. The
shell script ‘<tt>GNUstep.sh</tt>’ is located in the Makefile package; you
may want to add it to your shell startup file (such as
‘<tt>.profile</tt>’). For instance, if you installed GNUstep with the
default filesystem layout in ‘<tt>/usr/local</tt>’, then adding
</p>
<table><tr><td> </td><td><pre class="example">. /usr/local/share/GNUstep/Makefiles/GNUstep.sh
</pre></td></tr></table>
<p>in your ‘<tt>.profile</tt>’ file will work. Note the period at the
beginning of the line, and the space between the period and the
following path. If you installed GNUstep somewhere else, you need to
replace ‘<tt>/usr/local/share/GNUstep/Makefiles/GNUstep.sh</tt>’ with the
path to your ‘<tt>GNUstep.sh</tt>’ script. Another typical location is
‘<tt>/usr/GNUstep/System/Library/Makefiles</tt>’, which is the default
location of your ‘<tt>GNUstep.sh</tt>’ script when gnustep-make is
configured with the GNUstep layout. The script defines environment
variables that are needed to find GNUstep files and executables.
</p>
<p>Users of csh need to use the ‘<tt>GNUstep.csh</tt>’ script. Read the make
package ‘<tt>README</tt>’ for more info. Some systems, like GNU/Linux have
an ‘<tt>/etc/profile.d</tt>’ directory where scripts can be executed
automatically. If you want to set up GNUstep for every user on your
system, you can try copying/linking the ‘<tt>GNUstep.sh</tt>’ there. For
csh or tcsh, try
</p>
<table><tr><td> </td><td><pre class="example">source /usr/local/share/GNUstep/Makefiles/GNUstep.csh
</pre></td></tr></table>
<p>Finally, in most filesystem configuration it’s also possible to
manually set up your environment by setting PATH, the linker library
paths and the <code>GNUSTEP_MAKEFILES</code> variable (instead of using
‘<tt>GNUstep.sh</tt>’). For example, on GNU/Linux (with a default GNUstep
installation), instead of sourcing ‘<tt>GNUstep.sh</tt>’ you could manually
add the Tools directories to your PATH:
</p>
<table><tr><td> </td><td><pre class="example">PATH="/usr/local/bin:$PATH"
</pre></td></tr></table>
<p>manually add ‘<tt>/usr/local/lib</tt>’ to your ‘<tt>/etc/ld.so.conf</tt>’ file
(don’t forget to run <code>ldconfig</code> every time you install a
library), and set the environment variable <code>GNUSTEP_MAKEFILES</code>
when you want to compile something:
</p>
<table><tr><td> </td><td><pre class="example">GNUSTEP_MAKEFILES=/usr/local/share/GNUstep/Makefiles
</pre></td></tr></table>
<hr size="6">
<a name="GNUstep-Home"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#Environment-Setup" title="Previous section in reading order"> < </a>]</td>
<td valign="middle" align="left">[<a href="#Time-Zone" title="Next section in reading order"> > </a>]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[<a href="#Additional-Installation" title="Beginning of this chapter or previous chapter"> << </a>]</td>
<td valign="middle" align="left">[<a href="#Additional-Installation" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="#Tools-and-Applications" title="Next chapter"> >> </a>]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[<a href="#Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[Contents]</td>
<td valign="middle" align="left">[Index]</td>
<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<a name="GNUstep-Home-1"></a>
<h2 class="section">4.2 GNUstep Home</h2>
<p>Your home GNUstep directory should be created automatically the first
time you use a GNUstep tool or application. This is where user
defaults are kept as well as other user configuration files. User
installed apps, libraries, etc are also here (if the default user
directory is used). By default this is the directory ‘<tt>GNUstep</tt>’
under your home directory, but you can change this (see the
gnustep-make installation documentation).
</p>
<hr size="6">
<a name="Time-Zone"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#GNUstep-Home" title="Previous section in reading order"> < </a>]</td>
<td valign="middle" align="left">[<a href="#GNUstep-deamons" title="Next section in reading order"> > </a>]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[<a href="#Additional-Installation" title="Beginning of this chapter or previous chapter"> << </a>]</td>
<td valign="middle" align="left">[<a href="#Additional-Installation" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="#Tools-and-Applications" title="Next chapter"> >> </a>]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[<a href="#Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[Contents]</td>
<td valign="middle" align="left">[Index]</td>
<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<a name="Time-Zone-1"></a>
<h2 class="section">4.3 Time Zone</h2>
<p>In most cases, GNUstep should be able to determine your time zone, if
you have already set it up correctly when setting up your
computer. However, in some cases this might fail or the correct
information may not be available. You can set it manually using the
GNUstep defaults utility to set <kbd>Local Time Zone</kbd> to your local time
zone. Type something like <kbd>defaults write NSGlobalDomain "Local
Time Zone" GB</kbd>. Where <kbd>GB</kbd> is a time zone abbreviation.
</p>
<p>See
‘<tt>/usr/local/lib/GNUstep/Libraries/gnustep-base/Versions/1.21/Resources/NSTimeZones/zones/</tt>’
(or equivalent on your system depending on your filesystem layout) for
typical time zones.
</p>
<hr size="6">
<a name="GNUstep-deamons"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#Time-Zone" title="Previous section in reading order"> < </a>]</td>
<td valign="middle" align="left">[<a href="#Tools-and-Applications" title="Next section in reading order"> > </a>]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[<a href="#Additional-Installation" title="Beginning of this chapter or previous chapter"> << </a>]</td>
<td valign="middle" align="left">[<a href="#Additional-Installation" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="#Tools-and-Applications" title="Next chapter"> >> </a>]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[<a href="#Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[Contents]</td>
<td valign="middle" align="left">[Index]</td>
<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<a name="GNUstep-deamons-1"></a>
<h2 class="section">4.4 GNUstep deamons</h2>
<p>Set up your system to execute some GNUstep deamons. This is optional
because if you don’t do this, they will be started automatically when
you run your first GNUstep app:
</p>
<ul>
<li> gdomap - Put this in a system startup file, like ‘<tt>/etc/rc.local</tt>’ or ‘<tt>/etc/rc.d/rc.local</tt>’ (customize for your system)
<table><tr><td> </td><td><pre class="example">if [ -f /usr/local/bin/gdomap ]; then
/usr/local/bin/gdomap
fi
</pre></td></tr></table>
</li><li> gdnc - Start after sourcing ‘<tt>GNUstep.sh</tt>’ (e.g. in .profile)
</li><li> gpbs - Same as with gdnc, make sure X-Windows is running.
</li><li> make_services - Not a deamon, but a tool that needs to be run everytime
you install a new Application or service. This is NOT run automatically.
</li></ul>
<table><tr><td> </td><td><pre class="example">if [ `gdomap -L GDNCServer | grep -c Unable` == 1 ]; then
echo "Starting GNUstep services..."
gdnc
gpbs
fi
make_services
</pre></td></tr></table>
<hr size="6">
<a name="Tools-and-Applications"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#GNUstep-deamons" title="Previous section in reading order"> < </a>]</td>
<td valign="middle" align="left">[<a href="#Machine-Specific" title="Next section in reading order"> > </a>]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[<a href="#Additional-Installation" title="Beginning of this chapter or previous chapter"> << </a>]</td>
<td valign="middle" align="left">[<a href="#Top" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="#Machine-Specific" title="Next chapter"> >> </a>]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[<a href="#Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[Contents]</td>
<td valign="middle" align="left">[Index]</td>
<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<a name="Test-Tools-and-Applications"></a>
<h1 class="chapter">5. Test Tools and Applications</h1>
<p>Example applications are located in the gstep-examples package. To
build these, just uncompress and untar this package, cd to the
appropriate directory, and type make. You will need to install the
GNUstep core libraries first before doing this.
</p>
<p>To run the examples. Use the openapp utility that is part of the
GNUstep makefile package (and stored in ‘<tt>/usr/local/bin</tt>’). Usage
is:
</p>
<table><tr><td> </td><td><pre class="example">openapp application_name [additional arguments to app]
</pre></td></tr></table>
<p>Good Luck!
</p>
<hr size="6">
<a name="Machine-Specific"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#Tools-and-Applications" title="Previous section in reading order"> < </a>]</td>
<td valign="middle" align="left">[<a href="#Source-via-SVN" title="Next section in reading order"> > </a>]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[<a href="#Tools-and-Applications" title="Beginning of this chapter or previous chapter"> << </a>]</td>
<td valign="middle" align="left">[<a href="#Top" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="#Source-via-SVN" title="Next chapter"> >> </a>]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[<a href="#Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[Contents]</td>
<td valign="middle" align="left">[Index]</td>
<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<a name="Machine-Specific-Instructions"></a>
<h1 class="chapter">6. Machine Specific Instructions</h1>
<p>A list of machines that GNUstep works on can be found on the GNUstep
Wiki <a href="http://wiki.gnustep.org/index.php/Platform_compatibility">http://wiki.gnustep.org/index.php/Platform_compatibility</a>.
</p>
<hr size="6">
<a name="Source-via-SVN"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#Machine-Specific" title="Previous section in reading order"> < </a>]</td>
<td valign="middle" align="left">[ > ]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[<a href="#Machine-Specific" title="Beginning of this chapter or previous chapter"> << </a>]</td>
<td valign="middle" align="left">[<a href="#Top" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[ >> ]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[<a href="#Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[Contents]</td>
<td valign="middle" align="left">[Index]</td>
<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<a name="Getting-Libraries-via-SVN"></a>
<h1 class="chapter">7. Getting Libraries via SVN</h1>
<p>If you didn’t get one of the snapshots, or if you want to be sure to
stay on the bleading edge, then you should get the libraries via SVN. Go
to <a href="http://www.gnustep.org/resources/sources.html">http://www.gnustep.org/resources/sources.html</a> for information on how
to get the sourcecode.
</p>
<p>If you haven’t already done so, change to the directory, where you
want the source to reside. To checkout all of the GNUstep repository,
type
</p><table><tr><td> </td><td><pre class="example">svn co http://svn.gna.org/svn/gnustep/modules
</pre></td></tr></table>
<p>To check out only the ‘<tt>core</tt>’, which contains all the GNUstep core
libraries:
</p><table><tr><td> </td><td><pre class="example">svn co http://svn.gna.org/svn/gnustep/modules/core
</pre></td></tr></table>
<p>After you have checked out the source you can compile it as
usual. To update the source, go into the directory of the source tree
you want to update, for example, go into ’base’, and type:
</p>
<table><tr><td> </td><td><pre class="example">svn update
</pre></td></tr></table>
<p>You don’t have to re-checkout after you have the source, just update!
</p>
<hr size="6">
<a name="SEC_About"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[Contents]</td>
<td valign="middle" align="left">[Index]</td>
<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<h1>About This Document</h1>
<p>
This document was generated by <em>root</em> on <em>October 17, 2011</em> using <a href="http://www.nongnu.org/texi2html/"><em>texi2html 1.82</em></a>.
</p>
<p>
The buttons in the navigation panels have the following meaning:
</p>
<table border="1">
<tr>
<th> Button </th>
<th> Name </th>
<th> Go to </th>
<th> From 1.2.3 go to</th>
</tr>
<tr>
<td align="center"> [ < ] </td>
<td align="center">Back</td>
<td>Previous section in reading order</td>
<td>1.2.2</td>
</tr>
<tr>
<td align="center"> [ > ] </td>
<td align="center">Forward</td>
<td>Next section in reading order</td>
<td>1.2.4</td>
</tr>
<tr>
<td align="center"> [ << ] </td>
<td align="center">FastBack</td>
<td>Beginning of this chapter or previous chapter</td>
<td>1</td>
</tr>
<tr>
<td align="center"> [ Up ] </td>
<td align="center">Up</td>
<td>Up section</td>
<td>1.2</td>
</tr>
<tr>
<td align="center"> [ >> ] </td>
<td align="center">FastForward</td>
<td>Next chapter</td>
<td>2</td>
</tr>
<tr>
<td align="center"> [Top] </td>
<td align="center">Top</td>
<td>Cover (top) of document</td>
<td> </td>
</tr>
<tr>
<td align="center"> [Contents] </td>
<td align="center">Contents</td>
<td>Table of contents</td>
<td> </td>
</tr>
<tr>
<td align="center"> [Index] </td>
<td align="center">Index</td>
<td>Index</td>
<td> </td>
</tr>
<tr>
<td align="center"> [ ? ] </td>
<td align="center">About</td>
<td>About (help)</td>
<td> </td>
</tr>
</table>
<p>
where the <strong> Example </strong> assumes that the current position is at <strong> Subsubsection One-Two-Three </strong> of a document of the following structure:
</p>
<ul>
<li> 1. Section One
<ul>
<li>1.1 Subsection One-One
<ul>
<li>...</li>
</ul>
</li>
<li>1.2 Subsection One-Two
<ul>
<li>1.2.1 Subsubsection One-Two-One</li>
<li>1.2.2 Subsubsection One-Two-Two</li>
<li>1.2.3 Subsubsection One-Two-Three
<strong><== Current Position </strong></li>
<li>1.2.4 Subsubsection One-Two-Four</li>
</ul>
</li>
<li>1.3 Subsection One-Three
<ul>
<li>...</li>
</ul>
</li>
<li>1.4 Subsection One-Four</li>
</ul>
</li>
</ul>
<hr size="1">
<p>
<font size="-1">
This document was generated by <em>root</em> on <em>October 17, 2011</em> using <a href="http://www.nongnu.org/texi2html/"><em>texi2html 1.82</em></a>.
</font>
<br>
</p>
</body>
</html>
|