| 1 | |
|---|
| 2 | *** Step 1: Preparation |
|---|
| 3 | |
|---|
| 4 | You need gcc 2.96 (or later) and GNU's version of make. |
|---|
| 5 | |
|---|
| 6 | You should find a computer where you can compile to the local disk. |
|---|
| 7 | Compiling to a remote disk over NFS is usually very slow. |
|---|
| 8 | |
|---|
| 9 | Decide where you want the JX-2.5.0 directory to reside. Absolute paths are |
|---|
| 10 | compiled into some of the utility programs, so you will have to rebuild |
|---|
| 11 | everything if you move JX-2.5.0 to a different location after building it. |
|---|
| 12 | |
|---|
| 13 | |
|---|
| 14 | *** Step 2: Compiling |
|---|
| 15 | |
|---|
| 16 | If you want the binaries installed somewhere other than ~/bin (or |
|---|
| 17 | JX-2.5.0/bin, if ~/bin doesn't exist), set the environment variable |
|---|
| 18 | JX_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 | |
|---|
| 24 | This directory (JX-2.5.0/bin, ~/bin, or $JX_INSTALL_ROOT), must be on your |
|---|
| 25 | execution 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 | |
|---|
| 30 | Do not add JX-2.5.0/lib to your LD_LIBRARY_PATH. This will cause conflicts |
|---|
| 31 | with the shared libraries used by Code Crusader, Code Medic, etc. |
|---|
| 32 | |
|---|
| 33 | Run "make" and following the instructions for setting ACE_ROOT and |
|---|
| 34 | compiling the libraries and utility programs. This will compile everything |
|---|
| 35 | and 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 | |
|---|
| 43 | If 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 |
|---|
| 45 | uncomment the definition of JX_INCLUDE_LIBXPM near the top of the |
|---|
| 46 | appropriate file in include/make/sys/ |
|---|
| 47 | |
|---|
| 48 | Since ACE is huge, only one version of the library is built. If you want |
|---|
| 49 | the other version as well, go to the ACE directory and type "make shared" |
|---|
| 50 | or "make static" after you have built everything else. |
|---|
| 51 | |
|---|
| 52 | If your system is not already supported, create another entry in the |
|---|
| 53 | Makefile 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 | |
|---|
| 70 | Get the xforms distribution from |
|---|
| 71 | |
|---|
| 72 | http://world.std.com/~xforms/ |
|---|
| 73 | |
|---|
| 74 | and 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 | |
|---|
| 77 | It is also a good idea to set the following environment variables: |
|---|
| 78 | |
|---|
| 79 | setenv JMM_INITIALIZE "default" |
|---|
| 80 | setenv JMM_SHRED "default" |
|---|
| 81 | |
|---|
| 82 | Check libjcore/code/JMemoryManager.cc for more information. |
|---|
| 83 | |
|---|
| 84 | |
|---|
| 85 | *** Step 4: Compiling the other sample programs |
|---|
| 86 | |
|---|
| 87 | To compile the tutorials or test suites, go to the directory and run first |
|---|
| 88 | makemake and then make. |
|---|
| 89 | |
|---|
| 90 | |
|---|
| 91 | *** Step 5: Creating your own programs |
|---|
| 92 | |
|---|
| 93 | If you are using Code Crusader, create a new project using the |
|---|
| 94 | JX_application project template. Otherwise run jx_project_wizard directly. |
|---|
| 95 | This will give you a skeleton program to get you started. |
|---|