2004-02-09 05:11:05 +00:00
|
|
|
<?php
|
2003-08-19 06:44:58 +00:00
|
|
|
require_once("docutil.php");
|
2005-06-08 23:55:21 +00:00
|
|
|
page_head("Building BOINC on Unix");
|
2003-08-28 07:20:29 +00:00
|
|
|
|
2004-02-09 05:11:05 +00:00
|
|
|
echo "
|
2005-06-08 23:55:21 +00:00
|
|
|
On UNIX systems, the BOINC software (both server and client)
|
|
|
|
can be built by typing
|
|
|
|
<pre>
|
|
|
|
./_autosetup
|
|
|
|
./configure [see options below]
|
|
|
|
make
|
|
|
|
make install [optional: installs libraries and header files useful for building apps]
|
|
|
|
</pre>
|
|
|
|
in the top directory.
|
2003-08-28 07:20:29 +00:00
|
|
|
|
2005-06-08 23:55:21 +00:00
|
|
|
<h3>Configuration</h3>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
Usage:
|
|
|
|
<pre>
|
|
|
|
./configure [OPTION]... [VAR=VALUE]...
|
|
|
|
</pre>
|
2003-08-28 07:20:29 +00:00
|
|
|
|
2005-06-08 23:55:21 +00:00
|
|
|
You can use environment
|
|
|
|
variables to override the choices made by `configure' or to help
|
|
|
|
it to find libraries and programs with nonstandard names/locations.
|
|
|
|
To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
|
|
|
VAR=VALUE.
|
|
|
|
Example: to compile BOINC with strict compiler warnings, use
|
|
|
|
<pre>
|
2005-06-24 04:34:45 +00:00
|
|
|
./configure CXXFLAGS=\"-Wall -W -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -fno-common \"
|
2005-06-08 23:55:21 +00:00
|
|
|
</pre>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
Defaults for the options are specified in brackets.
|
2004-02-09 05:11:05 +00:00
|
|
|
";
|
|
|
|
list_start();
|
2005-06-08 23:55:21 +00:00
|
|
|
list_bar("Configuration");
|
|
|
|
list_item("-h, --help",
|
|
|
|
"display this help and exit"
|
|
|
|
);
|
|
|
|
list_bar("Installation directories");
|
|
|
|
list_item("--prefix=PREFIX",
|
|
|
|
"install architecture-independent files in PREFIX [/usr/local]
|
|
|
|
By default, `make install' will install all the files in
|
|
|
|
`/usr/local/bin', `/usr/local/lib' etc. You can specify
|
|
|
|
an installation prefix other than `/usr/local' using `--prefix',
|
|
|
|
for instance `--prefix=$HOME'.
|
|
|
|
For better control, use the options below."
|
2004-02-09 05:11:05 +00:00
|
|
|
);
|
2003-08-28 07:20:29 +00:00
|
|
|
|
2005-06-08 23:55:21 +00:00
|
|
|
list_bar("Optional Features");
|
|
|
|
list_item("--disable-FEATURE",
|
|
|
|
"do not include FEATURE (same as --enable-FEATURE=no)"
|
|
|
|
);
|
|
|
|
list_item("--enable-FEATURE[=ARG]",
|
|
|
|
"include FEATURE [ARG=yes]"
|
|
|
|
);
|
|
|
|
list_item("--enable-debug",
|
|
|
|
"enable tracing and debugging flags for all components"
|
|
|
|
);
|
|
|
|
list_item("--disable-server",
|
|
|
|
"disable building the scheduling server"
|
|
|
|
);
|
|
|
|
list_item("--disable-client",
|
|
|
|
"disable building the client
|
|
|
|
Default: --enable-server --enable-client: builds
|
|
|
|
both server and client"
|
|
|
|
);
|
|
|
|
list_item("--enable-maintainer-mode",
|
|
|
|
"enable make rules and dependencies not useful
|
|
|
|
(and sometimes confusing) to the casual installer"
|
|
|
|
);
|
|
|
|
list_item("--enable-shared[=PKGS]",
|
|
|
|
"build shared libraries [default=yes]"
|
|
|
|
);
|
|
|
|
list_item("--enable-static[=PKGS]",
|
|
|
|
"build static libraries [default=yes]"
|
|
|
|
);
|
|
|
|
list_item("--disable-static-linkage",
|
|
|
|
"disable static linking of certain libraries"
|
|
|
|
);
|
|
|
|
list_item("--enable-client-release",
|
|
|
|
"Try building a portable 'release-candidate'
|
|
|
|
(currently implemented for Linux and Solaris only):
|
|
|
|
this links libstd++ statically. You will probably
|
|
|
|
need gcc-3.0 for this to produce a portable
|
|
|
|
client-binary. It is therefore recommended to use
|
|
|
|
CC=gcc-3.0 and CXX=g++-3.0 for this. (Default = no)"
|
|
|
|
);
|
|
|
|
|
|
|
|
list_bar("Optional Packages");
|
|
|
|
list_item("--with-PACKAGE[=ARG]",
|
|
|
|
"use PACKAGE [ARG=yes]"
|
|
|
|
);
|
|
|
|
list_item("--without-PACKAGE",
|
|
|
|
"do not use PACKAGE (same as --with-PACKAGE=no)"
|
|
|
|
);
|
|
|
|
list_item("--with-x",
|
|
|
|
"use the X Window System"
|
|
|
|
);
|
|
|
|
list_item("--with-apple-opengl-framework",
|
|
|
|
"use Apple OpenGL framework (Mac OS X only)"
|
|
|
|
);
|
|
|
|
list_item("--with-wxdir=PATH",
|
|
|
|
"Use uninstalled version of wxWindows in PATH"
|
|
|
|
);
|
|
|
|
list_item("--with-wx-config=CONFIG",
|
|
|
|
"wx-config script to use (optional)"
|
|
|
|
);
|
|
|
|
|
|
|
|
list_bar("Environment variables");
|
|
|
|
list_item("CC",
|
|
|
|
"C compiler command"
|
|
|
|
);
|
|
|
|
list_item("CFLAGS",
|
|
|
|
"C compiler flags"
|
|
|
|
);
|
|
|
|
list_item("LDFLAGS",
|
2005-06-13 16:51:14 +00:00
|
|
|
"linker flags, e.g. -L<lib dir> if you have libraries in a
|
|
|
|
nonstandard directory <lib dir>"
|
2005-06-08 23:55:21 +00:00
|
|
|
);
|
|
|
|
list_item("CPPFLAGS",
|
2005-06-13 16:51:14 +00:00
|
|
|
"C/C++ preprocessor flags, e.g. -I<include dir> if you have
|
|
|
|
headers in a nonstandard directory <include dir>"
|
2005-06-08 23:55:21 +00:00
|
|
|
);
|
|
|
|
list_item("CXX",
|
|
|
|
"C++ compiler command"
|
|
|
|
);
|
|
|
|
list_item("CXXFLAGS",
|
|
|
|
"C++ compiler flags.
|
|
|
|
"
|
|
|
|
);
|
|
|
|
list_item("CPP",
|
|
|
|
"C preprocessor"
|
|
|
|
);
|
|
|
|
list_item("CXXCPP",
|
|
|
|
"C++ preprocessor"
|
|
|
|
);
|
|
|
|
list_item("F77",
|
|
|
|
"Fortran 77 compiler command"
|
|
|
|
);
|
|
|
|
list_item("FFLAGS",
|
|
|
|
"Fortran 77 compiler flags"
|
|
|
|
);
|
|
|
|
list_item("MYSQL_CONFIG",
|
|
|
|
"mysql_config program"
|
|
|
|
);
|
2004-02-09 05:11:05 +00:00
|
|
|
list_end();
|
|
|
|
echo "
|
2005-06-08 23:55:21 +00:00
|
|
|
|
|
|
|
|
2003-08-28 07:20:29 +00:00
|
|
|
<h2>Source layout</h2>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
The top-level <code>Makefile.am</code> contains the
|
|
|
|
<code>SUBDIRS=</code> line which sets up directory recursion, and
|
|
|
|
the rules for creating source distributions.
|
|
|
|
<p>
|
|
|
|
Each subdirectory's <code>Makefile.am</code> contains the rules for
|
|
|
|
making the binaries and libraries in that directory and any extra
|
|
|
|
files to distribute.
|
|
|
|
<p>
|
|
|
|
Usually you will want to run <code>make</code> from the toplevel
|
|
|
|
(the directory containing the file <code>configure</code>), but
|
|
|
|
sometimes it is useful to run <code>make</code> and <code>make
|
|
|
|
check</code> in certain subdirectories (e.g. <code>client/</code>).
|
|
|
|
|
2005-06-08 23:55:21 +00:00
|
|
|
<h2>Adding new directories</h2>
|
2003-08-28 07:20:29 +00:00
|
|
|
If you create a new directory with another <code>Makefile.am</code>,
|
2005-06-08 23:55:21 +00:00
|
|
|
you should
|
|
|
|
<ul>
|
|
|
|
<li> make sure the directory is referenced by
|
2003-08-28 07:20:29 +00:00
|
|
|
a <code>SUBDIRS=</code> line from its
|
2005-06-08 23:55:21 +00:00
|
|
|
parent <code>Makefile.am</code>
|
|
|
|
<li>
|
|
|
|
add it to the
|
2003-08-28 07:20:29 +00:00
|
|
|
AC_CONFIG_FILES directive in <code>configure.ac</code>.
|
2005-06-08 23:55:21 +00:00
|
|
|
</ul>
|
2003-08-28 07:20:29 +00:00
|
|
|
|
|
|
|
<h2>Version number</h2>
|
2005-08-31 00:18:36 +00:00
|
|
|
To set the BOINC client version:
|
2003-08-28 07:20:29 +00:00
|
|
|
<pre>
|
2005-08-31 00:18:36 +00:00
|
|
|
set-version 7.17.56
|
2003-08-28 07:20:29 +00:00
|
|
|
</pre>
|
|
|
|
in the BOINC top-level source directory. This updates
|
|
|
|
the <code>AC_INIT</code> line in
|
2003-08-28 07:43:57 +00:00
|
|
|
<code>configure.ac</code> and regenerates files that use the version numbers
|
|
|
|
(config.h, py/version.py, test/version.inc, client/win/win_config.h, Makefiles)
|
2003-08-28 07:20:29 +00:00
|
|
|
|
|
|
|
<h2>Archival/source distribution</h2>
|
|
|
|
To make source distributions:
|
|
|
|
<pre>
|
2003-09-05 21:26:21 +00:00
|
|
|
gmake dist
|
2003-08-28 07:20:29 +00:00
|
|
|
</pre>
|
|
|
|
|
2004-02-09 05:11:05 +00:00
|
|
|
";
|
|
|
|
page_tail();
|
|
|
|
?>
|