root / JX / trunk / INSTALL

Revision 3, 3.5 kB (checked in by daboo, 2 years ago)

Full commit of JX-2.5.0 code

Line 
1
2*** Step 1:  Preparation
3
4You need gcc 2.96 (or later) and GNU's version of make.
5
6You should find a computer where you can compile to the local disk.
7Compiling to a remote disk over NFS is usually very slow.
8
9Decide where you want the JX-2.5.0 directory to reside.  Absolute paths are
10compiled into some of the utility programs, so you will have to rebuild
11everything if you move JX-2.5.0 to a different location after building it.
12
13
14*** Step 2:  Compiling
15
16If you want the binaries installed somewhere other than ~/bin (or
17JX-2.5.0/bin, if ~/bin doesn't exist), set the environment variable
18JX_INSTALL_ROOT to the desired directory.
19
20  Use "setenv JX_INSTALL_ROOT value" at the top of ~/.cshrc if you use csh
21  or "export JX_INSTALL_ROOT=value" at the top of ~/.bashrc if you use
22  bash.
23
24This directory (JX-2.5.0/bin, ~/bin, or $JX_INSTALL_ROOT), must be on your
25execution path.
26
27  Use "set path = ( new_path $path )" at the top of ~/.cshrc if you use csh
28  or "export PATH=new_path:$PATH" at the top of ~/.bashrc if you use bash.
29
30Do not add JX-2.5.0/lib to your LD_LIBRARY_PATH.  This will cause conflicts
31with the shared libraries used by Code Crusader, Code Medic, etc.
32
33Run "make" and following the instructions for setting ACE_ROOT and
34compiling the libraries and utility programs.  This will compile everything
35and install the programs.  You can ignore any errors that make ignores.
36
37  You can avoid installing the binaries by setting the environment variable
38  J_WANT_INSTALL equal to 0.
39
40  Everything in JX-2.5.0 will be built, including any 3rd party libraries
41  and programs that you unpack after the main distribution.
42
43If you cannot use the version of libXpm already installed on your system
44(e.g. because it is too old) or if you do not have libXpm at all, then
45uncomment the definition of JX_INCLUDE_LIBXPM near the top of the
46appropriate file in include/make/sys/
47
48Since ACE is huge, only one version of the library is built.  If you want
49the other version as well, go to the ACE directory and type "make shared"
50or "make static" after you have built everything else.
51
52If your system is not already supported, create another entry in the
53Makefile by copying one of the existing ones and modifying it as follows:
54
55  Start by assuming that jMissingProto_empty.h is appropriate. If you get
56  compile errors, create a new one and fill it with whatever is necessary.
57
58  Create a new file in include/make/sys/ by copying template_g++ and
59  editing the "Adjustable Parameters" section.
60
61  If you cannot find a suitable pair of ACE configuration files, contact
62  the developers.  (http://www.cs.wustl.edu/~schmidt/ACE.html)
63
64  Once you get the entire distribution to compile, contact me so I can add
65  your patches to the distribution so you won't have to do it again.
66
67
68*** Step 3:  Additional configuration
69
70Get the xforms distribution from
71
72        http://world.std.com/~xforms/
73
74and extract the fdesign binary.  This should be placed in ~/bin. (or
75$JX_INSTALL_ROOT, if you set it)  fdesign is the graphical layout tool.
76
77It is also a good idea to set the following environment variables:
78
79    setenv JMM_INITIALIZE   "default"
80    setenv JMM_SHRED        "default"
81
82Check libjcore/code/JMemoryManager.cc for more information.
83
84
85*** Step 4:  Compiling the other sample programs
86
87To compile the tutorials or test suites, go to the directory and run first
88makemake and then make.
89
90
91*** Step 5:  Creating your own programs
92
93If you are using Code Crusader, create a new project using the
94JX_application project template.  Otherwise run jx_project_wizard directly.
95This will give you a skeleton program to get you started.
Note: See TracBrowser for help on using the browser.