Next: Non-threaded Version Up: Files to modify to run CMLOG filtering Previous: Files to modify to run CMLOG filtering
In order to run the threaded version of CMLOG, you must follow these steps, in this order:
Solaris:
- Remove or erase the following folders:
$CMLOG/lib/solaris
$CMLOG/bin/solaris
$CMLOG/Client/.obj/solaris
- Add or uncomment the following line in $CMLOG/Client/Makefile, line 16:
CMLOG_USE_THREAD = YES
- Type "gmake solaris" at the command line prompt while in the $CMLOG/Client folder.
- In your application's Makefile, add the following line to CFLAGS and CXXFLAGS:
-I../Thread -mt -D_CMLOG_USE_THREAD
- Add the following libraries to your LIBS variable, also in the Makefile:
-lposix4 -lpthread -lthread
- Rebuild your application, and you should be set :)
vxWorks:
- Remove or erase the following folders:
$CMLOG/lib/[mv167/ppc/niCpu030]
$CMLOG/bin/[mv167/ppc/niCpu030]
$CMLOG/Client/.obj/[mv167/ppc/niCpu030]
- Add or uncomment the following line in $CMLOG/Client/Makefile, line 16:
CMLOG_USE_THREAD = YES
- Type "gmake [mv167/ppc/niCpu030]" at the command line prompt while in the $CMLOG/Client folder,
for whichever platform you wish to build.
- 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.
- Reboot your machine.
Note that for vxWorks, you do not need to change the Makefile of your client application.
James Silva
2002-10-28