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 "
|
2006-09-12 05:04:59 +00:00
|
|
|
The BOINC software consists of several components:
|
|
|
|
<p>
|
|
|
|
<center>
|
|
|
|
<img src=components.png>
|
|
|
|
</center>
|
|
|
|
<p>
|
|
|
|
<ul>
|
|
|
|
<li> <b>Miscellaneous</b>: the API and various shared code.
|
|
|
|
<li> <b>Client</b>: the core client and Manager.
|
|
|
|
<li> <b>Server</b>: the scheduler, file upload handler, daemons, and tools.
|
|
|
|
</ul>
|
2006-11-08 22:40:03 +00:00
|
|
|
On UNIX systems, the BOINC software can be built by typing
|
|
|
|
<pre>
|
|
|
|
./_autosetup
|
|
|
|
./configure [see options below]
|
|
|
|
make
|
|
|
|
</pre>
|
|
|
|
in the top directory.
|
2006-09-12 05:04:59 +00:00
|
|
|
<ul>
|
|
|
|
<li> If you're creating a project, you need to build the server
|
|
|
|
and miscellaneous software
|
|
|
|
(you <b>don't</b> need to build the client software;
|
|
|
|
participants can get that from the BOINC web site).
|
2006-11-08 22:40:03 +00:00
|
|
|
Use
|
|
|
|
<pre>
|
2006-12-04 17:10:39 +00:00
|
|
|
./configure --disable-client
|
2006-11-08 22:40:03 +00:00
|
|
|
</pre>
|
2006-09-12 05:04:59 +00:00
|
|
|
<li> If you're porting the BOINC client software to a new platform,
|
|
|
|
you need the client and miscellaneous components.
|
2006-11-08 22:40:03 +00:00
|
|
|
Use
|
|
|
|
<pre>
|
2006-12-04 17:10:39 +00:00
|
|
|
./configure --disable-server
|
2006-11-08 22:40:03 +00:00
|
|
|
</pre>
|
2006-09-12 05:04:59 +00:00
|
|
|
<li> If you're developing or porting a BOINC application,
|
|
|
|
you need only the miscellaneous component.
|
2006-11-08 22:40:03 +00:00
|
|
|
Use
|
2005-06-08 23:55:21 +00:00
|
|
|
<pre>
|
2006-12-04 17:10:39 +00:00
|
|
|
./configure --disable-server --disable-client
|
2005-06-08 23:55:21 +00:00
|
|
|
</pre>
|
2006-11-08 22:40:03 +00:00
|
|
|
</ul>
|
|
|
|
|
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",
|
2006-11-09 00:20:14 +00:00
|
|
|
"display configuration options and exit"
|
2005-06-08 23:55:21 +00:00
|
|
|
);
|
2006-11-08 22:40:03 +00:00
|
|
|
list_item("--host=HOST",
|
|
|
|
"Use HOST to identify platforms in executable names.
|
|
|
|
For Linux/x86 builds, use
|
|
|
|
--build=i686-pc-linux-gnu"
|
|
|
|
);
|
2005-06-08 23:55:21 +00:00
|
|
|
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",
|
2006-09-12 05:04:59 +00:00
|
|
|
"disable building the server component"
|
2005-06-08 23:55:21 +00:00
|
|
|
);
|
|
|
|
list_item("--disable-client",
|
2006-09-12 05:04:59 +00:00
|
|
|
"disable building the client component
|
2005-06-08 23:55:21 +00:00
|
|
|
Default: --enable-server --enable-client: builds
|
2006-09-12 05:04:59 +00:00
|
|
|
both server and client.
|
|
|
|
<p>
|
|
|
|
If configure can't find WxWidgets it will build
|
|
|
|
the core client but not the Manager.
|
|
|
|
If you want to build only the core client,
|
|
|
|
run configure with --with-wxdir=junk.
|
|
|
|
"
|
2005-06-08 23:55:21 +00:00
|
|
|
);
|
|
|
|
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>
|
2006-03-21 06:52:30 +00:00
|
|
|
Usually you will want to run <code>make</code> from the top level
|
2003-08-28 07:20:29 +00:00
|
|
|
(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
|
|
|
|
2004-02-09 05:11:05 +00:00
|
|
|
";
|
|
|
|
page_tail();
|
|
|
|
?>
|