Re: Compiling NetSNMP for x64 Windows
Xiang Li <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, We have recently successfully built net-snmp5.6.1 and netsnmp 5.5.1 on windows x64 systems when working on our SNMP API products. No special things need to be done. You just need to build net-snmp in a x64 build environment. For example, if you use Microsoft platform SDK 7, you would do : Click "Start->Microsoft Windows SDK v7.0->CMD shell" setenv /x64 /release and then use build.pl or build.bat like you do normally for 32-bit Windows. For a "dynamic" build, if you use openssl, you need to get openssl build for x64 windows from slproweb. You need to copy the 64-bit openssl lib version: from: C:\OpenSSL-1.0.0.c-Win64\lib\VC\libeay32MT.lib and C:\OpenSSL-1.0.0.c-Win64\lib\VC\libeay32MD.lib into 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. For a "static" build, unless you add linking with "Gdi32.lib", the build will fail with link errors. For a "static" build, NETSNMP-5.5 is linked with Gdi32.lib but netsnmp-5.6.1 and 5.5.1 are NOT! This appears to be a bug. If needed we can share our Windows Net-SNMP binary with the community. We can post it on our website so anyone can download it freely. Hope this helps. Xiang Li http://www.champnms.com On 4/18/2011 5:46 AM, Markus Gaugusch wrote: > On Apr 18, Bart Van Assche<[email protected]> wrote: > >> On Mon, Apr 4, 2011 at 3:37 PM, Markus Gaugusch<[email protected]> wrote: >>> I downloaded NetSNMP 5.6.1 and were successful to compile it for 32 bit >>> platforms. WinExtDLL works also fine. Now I'd like to go for x64 >>> Windows. I've seen packages for older NetSNMP 5.5, so someone must >>> already have done the effort of compiling it for x64. I just couldn't >>> find any info in the README.win32 file or in the Makefiles. >>> (I'm not yet 100% familiar with the build system, I've used build.pl up >>> to now). >> As far as I know there are no 64-bit Net-SNMP binaries available yet. >> Net-SNMP should build and run fine in 64-bit mode though. > Hi Bart! > > Thanks for your answer. I would like to build it myself anyway, so I don't > have to rely on someone else building. Unfortunately, I don't know how to > force a 64 bit build. My Extension Library uses 64 bits too, so I can't > use a 32bit NetSNMP. > I built on Windows 7 using build.pl. But there is no option for selecting > a 32 or 64 bit build. The Visual Studio project files also don't contain a > 64 bit configuration. How are they generated? > > thanks, > 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