aboutsummaryrefslogtreecommitdiffstats
path: root/README-build.html
blob: b04c0868441c08fced63205a9c4b85bae144a452 (plain)
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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<!--
/*
 * $RCSfile$
 *
 * Copyright (c) 2004 Sun Microsystems, Inc. All rights reserved.
 *
 * Use is subject to license terms.
 *
 * $Revision$
 * $Date$
 * $State$
 */
 -->
  <meta http-equiv="content-type"
 content="text/html; charset=ISO-8859-1">
  <title>README-build: build instructions for the j3d-core project</title>
</head>
<body>
<h3><span style="font-weight: bold; text-decoration: underline;">Building
the Java&nbsp;3D Packages</span></h3>
<p><span style="text-decoration: underline;"><span
 style="font-weight: bold;"></span></span><span
 style="font-weight: bold; text-decoration: underline;"> </span>To
build the Java&nbsp;3D packages, you must have the following three CVS
repositories:<br>
</p>
<ul>
  <li>j3d-core<br>
  </li>
  <li>j3d-core-utils<br>
  </li>
  <li>vecmath<br>
  </li>
</ul>
<p>These three top-level directories must be named exactly as
shown above and they must be sibling directories.<br>
</p>
<p>NOTE: you must first build the javax.vecmath package before building
the Java&nbsp;3D core and utilities packages. See the <a
 href="../vecmath/README-build.html">README-build.html</a> file in the
"vecmath" directory for instructions.<br>
</p>
<h3><span style="font-weight: bold; text-decoration: underline;"></span><span
 style="text-decoration: underline;">System Requirements</span></h3>
<p><span style="font-weight: bold; text-decoration: underline;"></span></p>
<p><span style="font-weight: bold; text-decoration: underline;"></span>The
following operating environments have been tested:<br>
</p>
<ul>
  <li>Solaris: Sparc (Ultra60 or better) running Solaris 9 with Forte C
compiler version 6.2 or GNU gcc version 3.3.2</li>
  <li>Linux: i386/i586 running SuSE 9 or RedHat 9.0</li>
  <li>Windows: Windows/XP with Microsoft Visual C++ 6.0 or the gcc that
comes with <a href="http://www.mingw.org">MinGW version 3.1.0-1</a>
(Windows 2000 should work, but is untested)<br>
  </li>
</ul>
<p> The following software must be installed:<br>
</p>
<ul>
  <li><a href="http://java.sun.com/j2se">JDK 1.4.2 </a><br>
  </li>
  <li><a href="http://jakarta.apache.org/ant">Apache Ant 1.6.1</a><br>
  </li>
  <li>C Compiler (Either one of the following depending on the platform)<br>
  </li>
  <ul>
    <li>Solaris:<br>
    </li>
    <ul>
      <li>Sun ONE Studio 8 (formerly Forte Tools)'s Compiler or GNU
Compiler Collection, <a href="http://gcc.gnu.org">GCC version 3.3.2</a><br>
      </li>
    </ul>
    <li>Linux:<br>
    </li>
    <ul>
      <li>GNU Compiler Collection, <a href="http://gcc.gnu.org">GCC
version 3.2.2</a><br>
      </li>
    </ul>
    <li>Windows<br>
    </li>
    <ul>
      <li>Microsoft Visual C++ 6.0 or later or GNU Compiler
Collection, GCC version 3.2.3 that comes with<a
 href="http://www.mingw.org"> MinGW version 3.1.0-1</a><span
 style="font-weight: bold; text-decoration: underline;"><br>
        </span></li>
    </ul>
  </ul>
</ul>
<h3><span style="font-weight: bold; text-decoration: underline;">Building
Java&nbsp;3D</span></h3>
<p><span style="font-weight: bold; text-decoration: underline;"></span><span
 style="font-weight: bold; text-decoration: underline;"></span>Before
you start building, your PATH must include the
following directories:
</p>
<ul>
  <li>&lt;ant-root-dir&gt;/bin<br>
  </li>
  <li>&lt;jdk-root-dir&gt;/bin<br>
  </li>
  <li>&lt;compiler-root-dir&gt;/bin<br>
  </li>
</ul>
<p>The default target, jar-opt, creates an optimized jar files
and native libraries.
</p>
<p>Steps:
</p>
<ul>
  <code> cd &lt;java3d-root-dir&gt;/j3d-core<br>
ant</code>
</ul>
<p>The above steps build both the Java and native code for
javax.media.j3d and com.sun.j3d.*
packages.
</p>
<p>The build will be placed in j3d-core/build/&lt;platform&gt;/opt
where &lt;platform&gt; is determined from the <code>ant
echo</code> command:
</p>
<ul>
  <code>ant echo</code>
</ul>
To see other targets that are available, type "ant
-projecthelp". Note that ant must be run from the top-level
directory.
<p>The default compiler for native code compilation is set to "gcc".
This
value is set in the <a href="build.properties">build.properties</a>
file located
in the j3d-core directory. The compiler property is "build.comp".<br>
</p>
<p>On a Solaris platform with Forte compiler installed,
build.comp
can be set to "forte". On a Windows platform installed Visual C++,
build.properties
can be set to "vc".<br>
</p>
<p>NOTE: For Windows platform only, the property "build.rend" in
build.properties can be modified to use "d3d" (Direct3D API for
rendering) besides the default value "ogl".<br>
</p>
<p>NOTE: You can also modify the properties through ant property
command
options
e.g. "ant -Dbuild.comp=forte"<br>
</p>
<h3><span style="font-weight: bold; text-decoration: underline;">Running
Java&nbsp;3D</span></h3>
<p>To run Java&nbsp;3D, please refer to <a
 href="../j3d-examples/README-build.html">README-build.html</a> in
j3d-examples for
details
building Java&nbsp;3D example programs.<br>
</p>
</body>
</html>