[AGENT++] How to compile snmp++ lib for QT on win32 ?

Patric userqt at gmail.com
Mon Apr 19 22:18:58 CEST 2010


Hello,

SNMP++ uses macros which checks if gcc is used or not. If true, it looks for 
some linux apis. But QtCreator uses mingw, which is a port of gcc but it 
doesn't mean you have all the linux apis snmp++ is looking for. And that's 
the reason you get these errors.
One year ago, when I worked on this issue, I wrote a simple SNMPv1 Qt class 
with simple get and set methods. It worked fine for my simple use case. I 
can send it to you if you want.

Regards


----- Original Message ----- 
From: "Jochen Katz" <katz at agentpp.com>
To: <agentpp at agentpp.org>
Sent: Monday, April 19, 2010 10:26 PM
Subject: Re: [AGENT++] How to compile snmp++ lib for QT on win32 ?


> Hi,
>
>> I've compile the libdes.a in the
>> snmp++v3.2.24.tar.gz<http://www.agentpp.com/snmp++v3.2.23.tar.gz>with
>> QT creator successfully,but failed in compiling the dll or lib of
>> snmp++.
>
> someone wrote something about this issue on this list: QtCreator expects
> a specific directory layout that does not match snmp++. Or what errors
> do you get from QtCreator when compiling snmp++ library?
>
>> While I compiled with VS2005 ,i got the libdes.lib and
>> snmp++.lib,but when i added these to the QT project,the QT couldn't
>> recognized the function in snmp++.
>
> If you use gcc for QtCreator, then this is true. But you can instruct
> QtCreator to use the compiler of visual studio. Then you only have to
> verify that the compiler settings are identical for your VS2005 and for
> your QtCreator projects.
>
> Regards,
>  Jochen
> _______________________________________________
> AGENTPP mailing list
> AGENTPP at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/agentpp
> 




More information about the AGENTPP mailing list