| [1023] | 1 | The JThreads/C++ is a C++ class library implementing
 | 
|---|
 | 2 | multi-threading with Java look & feel, developped by:
 | 
|---|
 | 3 | 
 | 
|---|
 | 4 |                 Object-Oriented Concepts, Inc.
 | 
|---|
 | 5 |                 44 Manning Road
 | 
|---|
 | 6 |                 Billerica, MA 01821
 | 
|---|
 | 7 |                ( http://www.ooc.com/ )
 | 
|---|
 | 8 | 
 | 
|---|
 | 9 | (See the licence agreement in JTCSrc/LICENCE)
 | 
|---|
 | 10 | 
 | 
|---|
 | 11 | The source code here corresponds to version 1.0.10 and
 | 
|---|
 | 12 | has been downloaded from the OOC web site (May 2000).
 | 
|---|
 | 13 | A specific makefile (Makefile) has been written, with 
 | 
|---|
 | 14 | support for DEC/Compaq TruUnix64, cxx, Linux and g++, 
 | 
|---|
 | 15 | as well as SGI IRIX-64 (and SGI-CC) and KCC.
 | 
|---|
 | 16 | 
 | 
|---|
 | 17 | Note: The static library which is build (libJTC.a) 
 | 
|---|
 | 18 | by the present version of the Makefile may not 
 | 
|---|
 | 19 | work for all compilers.
 | 
|---|
 | 20 | 
 | 
|---|
 | 21 | The config file (JTC/Config.h) has been modified to 
 | 
|---|
 | 22 | provide multiple platform / multiple compiler support
 | 
|---|
 | 23 | using switches (#ifdef) in a single file.
 | 
|---|
 | 24 | 
 | 
|---|
 | 25 | ***********************************************
 | 
|---|
 | 26 | ***** Building and installing the library *****
 | 
|---|
 | 27 | ***********************************************
 | 
|---|
 | 28 | 
 | 
|---|
 | 29 | 1) Select the compiler through the environment variable 
 | 
|---|
 | 30 | EROSCXX
 | 
|---|
 | 31 | 2) Build the libray (make in JTCSrc)
 | 
|---|
 | 32 | 3) Define the path for installation through the 
 | 
|---|
 | 33 | JTCBASEREP environment variable
 | 
|---|
 | 34 | 4) Install (make install in JTCSrc)
 | 
|---|
 | 35 | 5) Try to build and test the example programs
 | 
|---|
 | 36 | (make in Examples/) - The LD_LIBRARY_PATH should
 | 
|---|
 | 37 | contain $JTCBASEREP/`uname`-$EROSCXX/ShLibs
 | 
|---|
 | 38 | 6) The use of GNU make is mandatory
 | 
|---|
 | 39 | 
 | 
|---|
 | 40 | The example below shows the installation and building
 | 
|---|
 | 41 | for a Dec/Compaq machine, with the native cxx compiler,
 | 
|---|
 | 42 | using c-shell commands. (uname = OSF1)
 | 
|---|
 | 43 | 
 | 
|---|
 | 44 | Cmd> setenv EROSCXX cxx
 | 
|---|
 | 45 | Cmd> setenv JTCBASEREP /usr/local/
 | 
|---|
 | 46 | Cmd> cd JTCSrc
 | 
|---|
 | 47 | # GNU make program should be used
 | 
|---|
 | 48 | Cmd> make
 | 
|---|
 | 49 | # Create the Objs directory for .o .a .so files
 | 
|---|
 | 50 | Cmd> make install
 | 
|---|
 | 51 | # Creates /usr/local/Include/JTC for include files
 | 
|---|
 | 52 | #         /usr/local/OSF1-cxx/Libs    (libJTC.a)
 | 
|---|
 | 53 | #         /usr/local/OSF1-cxx/ShLibs  (libJTC.so)
 | 
|---|
 | 54 | # Copies .h files and .a .so libraries
 | 
|---|
 | 55 | 
 | 
|---|
| [1024] | 56 | # make clean can be used to remove the Objs directory
 | 
|---|
 | 57 | # (Use make clean before building a new version)
 | 
|---|
 | 58 | Cmd> make clean
 | 
|---|
 | 59 | 
 | 
|---|
| [1023] | 60 | Build and run the example programs :
 | 
|---|
 | 61 | Cmd> cd ../Examples
 | 
|---|
 | 62 | Cmd> make 
 | 
|---|
 | 63 | Cmd> setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${JTCBASEREP}/OSF1-cxx/ShLibs
 | 
|---|
 | 64 | Cmd> ./diner or ./hello ...
 | 
|---|
 | 65 | 
 | 
|---|
 | 66 | 
 | 
|---|
 | 67 | 
 | 
|---|