Re: Compiling NetSNMP for x64 Windows

Xiang Li <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 4/21/2011 8:17 AM, Markus Gaugusch wrote:
> 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
>
I did not know we can do that. Looks it is undocumented environment 
variables...
Thanks for the info.

> Some other questions:
> * win32\snmplib\release is not cleared when doing nmake clean. It's the
>   only dir that keeps its object files!
>
I suspect this might have something to with a problem I am facing:
For 5.6.1 I could not build x86 and x64 from within the same source 
directory.
I ended up building x86 and x64 in separate source directories.
For NET-SNMP 5.5.1 and 5.5 I can switch Windows SDK 32 bit and 64 bit build
environment and build 32 bit and 64 bit net-snmp binary successfully, 
but NOT with 5.6.1.

> * 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?
>
You can always use --prefix= your-dir to install your build in a 
different directory.
Maybe that 's not what you meant here...
> * win32\Makefile uses spaces instead of tabs, my GVIM marks those with
>   red color. Probably nmake ignores that, but should be fixed?
>
Yes looks like "tab" does stop nmake. I use notepad++ in general on Windows
so not a problem for me:)

BR,

-- 
Xiang Li
http://www.champnms.com


------------------------------------------------------------------------------
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.