RE: [libsmi] Windows Context - No config.nmake file

I have vc8 , vc9 ...
Just thought with makefile technology, the older the better
Thanks for the help
Once I get it working I can add :
- some source dir option -s "path" - use of ./ in front of file if the initial opened
How things get back into the system is another story.
Regards
Greg Roberts wrote:
Thanks for your help.
I could let you have a copy of my binaries, built with MSVC8, for which you would need the MSVC8 redistrib package from M$. They are built based at c:\usr\local
I have placed files in the c:\smi dir and think I have most things correct in the config.nmake. however whatever argument I place on
nmake
still says It does not know how to make the first item in LIBSMIOBJS in
"makefile"
It is not not a good idea to build in the target directory. You would be better off building in say c:\libsmi and letting "nmake install" put everything in the right place.
Assuming you are going to use c:\smi as the target, there are only a couple of things in config.nmake that should need fiddling. MSC_VARIANT is the main one. The other is ENABLE_LIBSMI_DLL if you want to build the DLL.
config.h needs the paths fixed as I said before.
Env var Path=c:\smi\bin;C:\Perl\bin;C:\Program Files\Debugging Tools for Windows; ..........
=================================
C:\smi\win>nmake
Microsoft (R) Program Maintenance Utility Version 6.00.9782.0 Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
NMAKE : fatal error U1073: don't know how to make '..\temp\win.obj' Stop.
==========================
regards
-----Original Message----- From: Andrew Hood [mailto:ajhood@fl.net.au] Sent: Monday, 19 May 2008 9:36 PM To: Greg Roberts Cc: libsmi@ibr.cs.tu-bs.de Subject: Re: [libsmi] Windows Context - No config.nmake file
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\mi
bs\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
participants (1)
-
Greg Roberts