|
Packit |
022b05 |
|
|
Packit |
022b05 |
LIBSMI NOTES FOR NATIVE WIN32 SUPPORT USING MINGW
|
|
Packit |
022b05 |
=================================================
|
|
Packit |
022b05 |
|
|
Packit |
022b05 |
@(#) $Id: README.mingw 7800 2008-02-27 13:55:53Z schoenw $
|
|
Packit |
022b05 |
|
|
Packit |
022b05 |
Mingw32 is a gcc based environment allowing to build free Win32
|
|
Packit |
022b05 |
executables.
|
|
Packit |
022b05 |
URL:ftp://ftp.xraylith.wisc.edu/pub/khan/gnu-win32/mingw32/
|
|
Packit |
022b05 |
|
|
Packit |
022b05 |
There are two possible setups. First, you can install the mingw
|
|
Packit |
022b05 |
toolset on a Win32 system and compile the source code. The second
|
|
Packit |
022b05 |
option is to install a mingw cross-compiler on Unix and to use a Unix
|
|
Packit |
022b05 |
box for compilation. The Debian Linux distribution has mingw packages
|
|
Packit |
022b05 |
which make this pretty easy.
|
|
Packit |
022b05 |
|
|
Packit |
022b05 |
|
|
Packit |
022b05 |
USING MINGW ON WIN32
|
|
Packit |
022b05 |
====================
|
|
Packit |
022b05 |
|
|
Packit |
022b05 |
Fetch and install gcc-2.95.2-crtdll.exe or whatever the latest mingw
|
|
Packit |
022b05 |
distribution is. Set your command.com PATH to c:\mingw\bin;%PATH% (or
|
|
Packit |
022b05 |
whereever you have installed this package).
|
|
Packit |
022b05 |
|
|
Packit |
022b05 |
To compile simply run
|
|
Packit |
022b05 |
make -f Makefile.mingw
|
|
Packit |
022b05 |
and to install a
|
|
Packit |
022b05 |
make -f Makefile.mingw install
|
|
Packit |
022b05 |
should do what you expect and
|
|
Packit |
022b05 |
make -f Makefile.mingw zip
|
|
Packit |
022b05 |
creates libsmi.zip ready to upload on the FTP server.
|
|
Packit |
022b05 |
|
|
Packit |
022b05 |
Default path's are c:/smi/mibs/... for the MIB-files and c:/smi/bin
|
|
Packit |
022b05 |
for the tools (smidump.exe, ...).
|
|
Packit |
022b05 |
|
|
Packit |
022b05 |
Globalconfig is defined as c:/smi/smi.conf.
|
|
Packit |
022b05 |
|
|
Packit |
022b05 |
|
|
Packit |
022b05 |
USING MINGW ON DEBIAN LINUX
|
|
Packit |
022b05 |
===========================
|
|
Packit |
022b05 |
|
|
Packit |
022b05 |
Install the mingw packages. Edit the Makefile.mingw to set the
|
|
Packit |
022b05 |
compiler and so on. There is already a template in Makefile.mingw. To
|
|
Packit |
022b05 |
compile simply run:
|
|
Packit |
022b05 |
|
|
Packit |
022b05 |
make -f Makefile.mingw
|
|
Packit |
022b05 |
|
|
Packit |
022b05 |
Installation probably requires some more tweaking of the
|
|
Packit |
022b05 |
Makefile.mingw since it was originally written for the Win32
|
|
Packit |
022b05 |
environment.
|
|
Packit |
022b05 |
|
|
Packit |
022b05 |
|
|
Packit |
022b05 |
TODO's AND KNOWN PROBLEMS
|
|
Packit |
022b05 |
=========================
|
|
Packit |
022b05 |
|
|
Packit |
022b05 |
- The version define is hardwired in config.h.
|
|
Packit |
022b05 |
|
|
Packit |
022b05 |
- The scanner, parser and the smi.h source have to be created within
|
|
Packit |
022b05 |
a Unix or cygnus environment.
|
|
Packit |
022b05 |
|
|
Packit |
022b05 |
- The SMIPATH separator character is the Windows style ; and not the
|
|
Packit |
022b05 |
Unix style : .
|
|
Packit |
022b05 |
|
|
Packit |
022b05 |
- Should use configure and not a handmade Makefile.
|
|
Packit |
022b05 |
|
|
Packit |
022b05 |
|
|
Packit |
022b05 |
CONTRIBUTORS
|
|
Packit |
022b05 |
============
|
|
Packit |
022b05 |
|
|
Packit |
022b05 |
The mingw support was contributed by:
|
|
Packit |
022b05 |
|
|
Packit |
022b05 |
Erik Schoenfelder <schoenfr@gaertner.de>
|
|
Packit |
022b05 |
Juergen Schoenwaelder <schoenw@ibr.cs.tu-bs.de>
|
|
Packit |
022b05 |
|
|
Packit |
022b05 |
---
|
|
Packit |
022b05 |
There are more things in heaven and earth,
|
|
Packit |
022b05 |
Horatio, than are dreamt of in your philosophy.
|
|
Packit |
022b05 |
-- Wm. Shakespeare, "Hamlet"
|