I don't understand. In my workspace directory I have created "libs" directory and inside is my snmp.tar . The extension is tar, I have downloaded it from here http://www.agentpp.com/snmp_pp3_x/download_snmp_ppv3/download_snmp_ppv3.html
I have also added new line for LIBS in my project.pro : TARGET = Target TEMPLATE = app SOURCES += main.cpp \ mainwindow.cpp HEADERS += mainwindow.h FORMS += mainwindow.ui RESOURCES += Resources.qrc LIBS += -L/libs -lsnmp I want the path to be relative to the workspace library, I don't want a full path. But it is not finding it : D:\Qt\2009.02\mingw\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: cannot find -lsnmp collect2: ld returned 1 exit status mingw32-make.exe[1]: *** [debug\Project.exe] Error 1 D:\Qt\2009.02\mingw\bin\mingw32-make.exe: *** [debug] Error 2 Exited with code 2. Error while building project Project When executing build step 'Make' ----- Original Message ----- From: "Andre Poenitz" <[email protected]> To: <[email protected]> Sent: Wednesday, May 20, 2009 8:24 PM Subject: Re: [Qt-creator] Additional libraries in my project > On Wed, May 20, 2009 at 07:13:08PM +0300, Kosta wrote: >> Hello, I have to use the SNMP++ library in my project. But I'm not >> sure how to add it. I have a .tar file "snmp++v3.2.23.tar", I think I >> should unrar it and place the "include" and "src" directories in my >> project folder in the workspace ? > > Create a .pri file for it and include this in your project's main .pro > file. > >> I am worried, because as far as I know there is no support for >> subfolders yet. What is the correct approach here ? I've attached the >> library. > > Please, _please_, don't do that again. This is a mailing list read > by a lot of people, not all of them on a fast and cheap internet > connection. The download link you gave is completely sufficient. > > Andre' > > PS: The Qt related example code will only compile with Qt 3 or > needs to be ported to Qt 4, i.e. it won't run out-of-the-box in > Qt Creator. > _______________________________________________ > Qt-creator mailing list > [email protected] > http://lists.trolltech.com/mailman/listinfo/qt-creator > > > __________ Information from ESET NOD32 Antivirus, version of virus > signature database 4091 (20090520) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.eset.com > > > __________ Information from ESET NOD32 Antivirus, version of virus signature database 4093 (20090521) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com _______________________________________________ Qt-creator mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-creator
