
Greg Roberts wrote:
I have downloaded libsmi-0.4.8.tar.gz and this has no config.nmake (trying to build on windows)
A thread exists in april 2008 but does not reference how to get a copy of the file.
I'd recommend you get the source from the SVN repository. It looks like libsmi-0.4.8.tar.gz is missing a couple of things, including config.nmake.
Does anyone have a working vc6 DSP / DSW file set ?
No-one I know of builds with the IDE. Customize config.nmake and config.h for your environment, then run nmake.
Now I might not need to create a fresh binary if I can get around this issue ...
Smidump.exe will not find the referenced MIB files, e.g.
The default file location on windows is under c:\smi and config.h has unix style dir seps. e.g.
#define DEFAULT_GLOBALCONFIG "c:/smi/smi.conf" #define DEFAULT_SMIPATH "c:/smi/mibs/ietf;c:/smi/mibs/iana;c:/smi/mibs/irtf;c:/smi/mibs/site;c:/smi/mibs/tubs"
That works with mingw but I have no luck with MSVC:
#define DEFAULT_GLOBALCONFIG "c:\smi\smi.conf" #define DEFAULT_SMIPATH "c:\smi\mibs\ietf;c:\smi\mibs\iana;c:\smi\mibs\irtf;c:\smi\mibs\site;c:\smi\mibs\tubs"
Running:
nmake nmake install
should put everything in the right place
I even added this directory into the system PATH value.
Assuming the above file locations you could add "c:\smi\bin" to the PATH
If you want to build the DLL in config.nmake:
ENABLE_LIBSMI_DLL=USE
and run:
nmake clean nmake smi.dll nmake