File: node4.html

package info (click to toggle)
viewmol 2.3-5
  • links: PTS
  • area: main
  • in suites: woody
  • size: 9,424 kB
  • ctags: 2,239
  • sloc: ansic: 29,098; sh: 909; makefile: 513; python: 238
file content (142 lines) | stat: -rw-r--r-- 6,402 bytes parent folder | download
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<!--****************************************************************************
*                                                                              *
*                                   Viewmol                                    *
*                                                                              *
*                             N O D E 4 . H T M L                              *
*                                                                              *
*                  Copyright (c) Joerg-R. Hill, December 2000                  *
*                                                                              *
********************************************************************************
*-->
<!--Converted with LaTeX2HTML 99.2beta8 (1.46)
original version by:  Nikos Drakos, CBLU, University of Leeds
* revised and updated by:  Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
  Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>Compilation</TITLE>
<META NAME="description" CONTENT="Compilation">
<META NAME="keywords" CONTENT="viewmol">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="LaTeX2HTML v99.2beta8">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">

<LINK REL="STYLESHEET" HREF="viewmol.css">

</HEAD>

<BODY LANG="EN" BGCOLOR="#FFFFFF">

<H1>
<BR>
Compilation
</H1>
<A NAME="compilation">
V<SMALL>IEWMOL</SMALL> 2.3 has been written in C. For compilation of V<SMALL>IEWMOL</SMALL> you
need a C compiler. TIFF files are supported by the freely available TIFF
library which is also necessary to compile the program. It can be found on
many ftp sites, e.&nbsp;g. at sgi.com under
<A NAME="tex2html12"
  HREF="ftp://sgi.com/graphics/tiff/"><TT>graphics/tiff/tiff-v3.4-tar.gz</TT></A>.
If you want to link V<SMALL>IEWMOL</SMALL> with Mesa instead of with OpenGL you will
need Mesa
(<A NAME="tex2html13"
  HREF="http://www.mesa3d.org/"><TT>http://www.mesa3d.org/</TT></A>).

<P>
Linux users need Motif to compile and run the program (if the program
complains about
"<code>viewmol: can't load library 'libXm.so.1'</code>" Motif is missing). Motif is
available from <A NAME="tex2html14"
  HREF="http://www.motifzone.org/download/"><TT>http://www.motifzone.org/download/</TT></A>. The Motif clone Lesstif
(<A NAME="tex2html15"
  HREF="http://www.lesstif.org/"><TT>http://www.lesstif.org/</TT></A>)
can be used with Viewmol starting with version 0.81. There are, however, some
glitches with Lesstif (e.&nbsp;g. shortcuts don't work).

<P>
If you want to recompile the program and you are running one of the supported
operating systems (this may be necessary on IBM workstations since the formats
of the executables are not compatible between different releases of AIX -
don't worry, IBM didn't) you may type <code>make</code> (this tries to build
V<SMALL>IEWMOL</SMALL> using OpenGL on all operating systems except on Linux and FreeBSD,
to build using Mesa type <code>make viewmol_mesa; make tm bio readgauss readmopac
readgamess</code>).
The shell script <code>getmachine</code> determines the operating system you are
running and sets some options for the compiler. If this does not work you
should have a look into the <code>Makefile</code>. The options set are explained
there. They are the following:

<UL>
<LI><code>OPT</code>
<BR>
The optimization flag for your compiler (on Linux <code>-O6 -mX</code> where
<code>X</code> may be <code>486</code>, <code>pentium</code>, or <code>pentiumpro</code>;
<code>-O2</code> otherwise).
</LI>
<LI><code>CFLAGS</code>
<BR>
Additional flags for C compiler, used to handle special optimizations and
some incompatibilities between different Unix versions.
</LI>
<LI><code>LDFLAGS</code>
<BR>
Additional flags needed for linker, currently only used for SGI to distinguish
between different library versions.
</LI>
<LI><code>INCLUDE</code>
<BR>
The path to the include files. For OpenGL compilation this is set to point to
the include files for libtiff, for Mesa compilation the path to the Mesa
include files is also included (the script asks the user for these paths at the
beginning, there is really no need to change anything in the file here).
</LI>
<LI><code>LIBRARY</code>
<BR>
The path to the additional libraries required. These are at least libtiff and
in case of a compilation with Mesa the Mesa libraries (the script asks the user
for these paths at the beginning, there is really no need to change anything in
the file here).
</LI>
<LI><code>LIBS</code>
<BR>
The libraries needed to link V<SMALL>IEWMOL</SMALL>. They may differ between different
operating systems and are also different for OpenGL and Mesa compilations,
respectively.
</LI>
</UL>
The <code>getmachine</code> shell script will ask you for the path names to the TIFF
and Python libraries and to the include files necessary with these libraries.
If you compile with Mesa the script will also ask you for the location of the
Mesa libraries and include files. You may specify these path names using
environment variables if you put the name of the variable in parentheses
(e.&nbsp;g. <code>$(HOME)</code>). These path names are assigned to the <code>LIBTIFF</code>,
<code>TIFFINCLUDE</code>, <code>MESALIB</code>, <code>MESAINCLUDE</code>, <code>PYTHONINCLUDE</code>,
and <code>LIBPYTHON</code> flags and stored in a file <code>.config.&lt;OS&gt;</code> where
<code>&lt;OS&gt;</code> is the output of the <code>uname -s</code> command on your machine.
If this file already exists, <code>getmachine</code> does not ask for these path
names.

<P>
Silicon Graphics compilers on 64-bit operating systems (IRIX64 - R8000,
R10000, R12000) will produce a lot of warning messages concerning casts
of pointers to integers. These can be safely ignored.

<P>
The make procedure will build the program in a directory whose name depends
on the operating system and type of CPU you are using. You will find all
executables in this directory. After compilation follow the steps under
Installation to complete the installation.

<P>
<BR><HR>
<ADDRESS>
<A HREF="mailto:joehill@users.sourceforge.net"><I>Jrg-Rdiger Hill</I></A><BR>Sun Dec 10 17:38:35 MET 2000
</ADDRESS>
</BODY>
</HTML>