PDA

View Full Version : Qt error :-1: error: cannot find -lqxmpp



davinciomar
22nd August 2016, 02:17
Hi i am using qt 5 and i am using protocol xmpp but when i use this Library: LIBS += -lqxmpp i compiled project xmpp succesfully and installed succesfully

anda_skoa
22nd August 2016, 09:47
I am afraid I don't quite understand: you say the program built and installed successfully, yet your subject says you are receiving a linker error?

Cheers,
_

davinciomar
22nd August 2016, 12:14
i installed succesfully xmp Library but i cant use in my program xmpp

anda_skoa
22nd August 2016, 12:34
Ah, right, sorry.

So did you add the path to the lib to your LIBS variable, using an -L directive?

Cheers,
_

davinciomar
22nd August 2016, 15:32
nope how? thx for your help

anda_skoa
22nd August 2016, 16:31
LIBS += -L path-to-library

davinciomar
22nd August 2016, 18:46
i used this path: C:\Users\moh\Downloads\qxmpp-master\build-qxmpp-Desktop_Qt_5_7_0_MinGW_32bit-Debug\src\debug
picture about this error
https://i.imgsafe.org/b37a3dd078.png
please how i can use the libraries of qxmpp i sent picture for if you know how thx a lot for your help:confused::confused:

anda_skoa
22nd August 2016, 19:03
i used this path: C:\Users\moh\Downloads\qxmpp-master\build-qxmpp-Desktop_Qt_5_7_0_MinGW_32bit-Debug\src\debug

Is that where the qxmpp.dll is?
Have you tried forward slashes? i.e. / instead of \

Is your Qt built with the same compiler?

Cheers,
_

davinciomar
22nd August 2016, 19:13
yes i use the same compiler i tried to put dll C:/Users/moh/Downloads/qxmpp-master/build-qxmpp-Desktop_Qt_5_7_0_MinGW_32bit-Debug/src/qxmpp_d0.dll and with other slashes and Nothing it doesnt take me the libraries i am using mingw last version and qt 5.7
picture of dll: https://i.imgsafe.org/b3e9e4fa23.png

anda_skoa
22nd August 2016, 19:52
If the library's name is "qxmpp_d0.dll" then the -l statement needs to match that


-lqxmpp_d0


Cheers,
_

davinciomar
22nd August 2016, 22:22
you are god thx man !! a lot thxxxx:cool: