Blame win/README.win

Packit 022b05
Packit 022b05
LIBSMI NOTES FOR NATIVE WIN32 SUPPORT
Packit 022b05
=====================================
Packit 022b05
Packit 022b05
@(#) $Id: README.win 8079 2008-04-17 18:12:48Z schoenw $
Packit 022b05
Packit 022b05
This directory contains some help to compile the libsmi and associated
Packit 022b05
tools on a Win32 platform (Windows 95, 98, 2000, NT) with the native
Packit 022b05
Microsoft Visual C++ compiler. The makefile has been tested with VC++
Packit 022b05
6.0, but later versions should work very well too.
Packit 022b05
Packit 022b05
An alternative GNUmakefile can be used with GNU make program.  You
Packit 022b05
will need the GNU make "gmake.exe" for Win32 platform.
Packit 022b05
Packit 022b05
There is a separate file README.mingw which explains how the libsmi
Packit 022b05
package can be compiled on Win32 platforms using the mingw version
Packit 022b05
of gcc.
Packit 022b05
Packit 022b05
Packit 022b05
Installation
Packit 022b05
============
Packit 022b05
Packit 022b05
(1) Set MSVC version used in ./config.nmake. Check the compiler path
Packit 022b05
    macro TOOLS32 in ./config.nmake for the specific msvc installation.
Packit 022b05
  
Packit 022b05
(2) To compile simply run
Packit 022b05
Packit 022b05
	nmake
Packit 022b05
Packit 022b05
(3) and to install a
Packit 022b05
Packit 022b05
	nmake install
Packit 022b05
Packit 022b05
should do what you expect. The default path's are c:\smi\mibs\... for
Packit 022b05
the MIB-files and c:\smi\bin for the tools (smidump.exe, ...). The
Packit 022b05
global configuration file is expected to be in c:\smi\smi.conf.
Packit 022b05
Packit 022b05
Packit 022b05
Alternative build with GNU make
Packit 022b05
===============================
Packit 022b05
Packit 022b05
GNU make uses GNUmakefile provided in this directory.
Packit 022b05
Packit 022b05
(1) Make sure the compiler (cl.exe) is in PATH
Packit 022b05
  
Packit 022b05
(2) To build simply run:
Packit 022b05
Packit 022b05
    gmake
Packit 022b05
Packit 022b05
Packit 022b05
Packit 022b05
If you grabbed the CVS version and some files seems to be missing:
Packit 022b05
==================================================================
Packit 022b05
Packit 022b05
You may generate these files on another platform (Linux seems to work
Packit 022b05
fine) by running:
Packit 022b05
Packit 022b05
    cd libsmi                   ## the sources from the CVS archive
Packit 022b05
    ./autogen.sh                ## generates configure script an runs it
Packit 022b05
    cd lib
Packit 022b05
    make errormacros.h parser-smi.c parser-sming.c \
Packit 022b05
                scanner-smi.c scanner-sming.c smi.h
Packit 022b05
    cd ../tools
Packit 022b05
    make dump-svg-script.h
Packit 022b05
Packit 022b05
Packit 022b05
Packit 022b05
COMMENTS:
Packit 022b05
=========
Packit 022b05
Packit 022b05
- The 64 bit integer types (unsigned and signed) are simply replaced
Packit 022b05
  by their 64bit _int64 msvc counterparts. They work ok.  see related
Packit 022b05
  definitions ./config.h
Packit 022b05
Packit 022b05
- The compiler path in ./config.nmake is hardwired (TOOLS32)
Packit 022b05
Packit 022b05
- The installation directories are hardwired in config.h.in
Packit 022b05
Packit 022b05
- Scanner and parser C files, errormacros.h and smi.h have been created
Packit 022b05
  within a Unix environment and integrated with the distribution. If
Packit 022b05
  you want to re-build them on a windows system you can use cygwin.
Packit 022b05
Packit 022b05
- The default SMIPATH separator character is the Windows style `;' and
Packit 022b05
  not the Unix style `:'. It can be changed using the
Packit 022b05
  --with-pathseparator=C configure option.
Packit 022b05
 
Packit 022b05
Packit 022b05
FURTHER INFORMATION
Packit 022b05
===================
Packit 022b05
Packit 022b05
You may find further information online, along with the subscription
Packit 022b05
information on the libsmi mailing list at
Packit 022b05
Packit 022b05
	http://www.ibr.cs.tu-bs.de/projects/libsmi/.
Packit 022b05
Packit 022b05
Packit 022b05
	Erik Schoenfelder <schoenfr@gaertner.de>
Packit 022b05
	Juergen Schoenwaelder <schoenw@ibr.cs.tu-bs.de>
Packit 022b05
        Yigal Hochberg <hochberg@dmhsoftware.com>
Packit 022b05
Packit 022b05
Packit 022b05
---
Packit 022b05
<stu> you should be afraid to use KDE because RMS might come to your
Packit 022b05
      house and cleave your monitor with an axe or something :)