Next: Non-threaded Version Up: Files to modify to run CMLOG filtering Previous: Files to modify to run CMLOG filtering

Threaded Version



In order to run the threaded version of CMLOG, you must follow these steps, in this order:
    Solaris:
  1. Remove or erase the following folders:
    $CMLOG/lib/solaris
    $CMLOG/bin/solaris
    $CMLOG/Client/.obj/solaris
    
  2. Add or uncomment the following line in $CMLOG/Client/Makefile, line 16:
         CMLOG_USE_THREAD = YES
    
  3. Type "gmake solaris" at the command line prompt while in the $CMLOG/Client folder.
  4. In your application's Makefile, add the following line to CFLAGS and CXXFLAGS:
         -I../Thread -mt -D_CMLOG_USE_THREAD
    
  5. Add the following libraries to your LIBS variable, also in the Makefile:
         -lposix4 -lpthread -lthread
    
  6. Rebuild your application, and you should be set :)
    vxWorks:
  1. Remove or erase the following folders:
    $CMLOG/lib/[mv167/ppc/niCpu030]
    $CMLOG/bin/[mv167/ppc/niCpu030]
    $CMLOG/Client/.obj/[mv167/ppc/niCpu030]
    
  2. Add or uncomment the following line in $CMLOG/Client/Makefile, line 16:
         CMLOG_USE_THREAD = YES
    
  3. Type "gmake [mv167/ppc/niCpu030]" at the command line prompt while in the $CMLOG/Client folder, for whichever platform you wish to build.
  4. Replace the following binaries/executables in the vxWorks folder where they will be loaded by the machine (check your startup scripts):
         libcmlog.a
         cmlogClientD
         cmlogVxLogMsg
    
    These files reside in the $CMLOG/bin/[mv167/ppc/niCpu030] folder.
  5. Reboot your machine.
Note that for vxWorks, you do not need to change the Makefile of your client application.
James Silva
2002-10-28