Re: Compiling NetSNMP for x64 Windows

Markus Gaugusch <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On Apr 19, Xiang Li <[email protected]> wrote:

> Hi,
>             ....
>             C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\lib\amd64,
>
>             Also copy the "openssl" header files folder as you would do for 32-bit
>             builds.
>             After that the build should work.
> 
>
>       Thanks for the feedback - I'll update README.win32. But I'll document to copy the OpenSSL binaries in a separate directory instead of the Visual Studio directories.
>        
> 
> That would be even better. Copying openssl headers/libs to VC++ directory is just the old
> instructions I followed (in netsnmp win32 readme file I believe).
> 
> If we do that I suppose the perl configuration scripts will have additional options to tell
> where opensssl header files and lib are located?
>

Hi,
@Xiang Li: THANKS a lot for your instructions, I've got it all working :)

Regarding the headers/libs, I did the following:
set OPENSSLPATH=C:\program Files\OpenSSL-Win64
set INCLUDE=%INCLUDE%;"%OPENSSLPATH%\include"
set LIB=%lib%;"%OPENSSLPATH%\lib\vc\static"
[...]
nmake

Some other questions:
* win32\snmplib\release is not cleared when doing nmake clean. It's the
   only dir that keeps its object files!

* The prefix is hard-coded into the binaries, so I can't offer the user to
   install them to another directory. Is anything planned to improve that?

* win32\Makefile uses spaces instead of tabs, my GVIM marks those with
   red color. Probably nmake ignores that, but should be fixed?

* Why is there an install-net-snmp.bat AND an install target in Makefile?
   They look identical and thus only one should survive. I'd prefer the
   makefile solution because I can give another PREFIX_DOS on cmdline and
   copy the files to my staging dir for MSI creation.

* Finally, how do you build your installers? I could offer a wix script
   for inclusion with netsnmp code (would take some time though, because my
   current style doesn't fit netsnmp build infrastructure at all).

br,
Markus

------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.