Results 1 to 11 of 11

Thread: Qt error :-1: error: cannot find -lqxmpp

  1. #1
    davinciomar Guest

    Default Qt error :-1: error: cannot find -lqxmpp

    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

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Qt error :-1: error: cannot find -lqxmpp

    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,
    _

  3. #3
    davinciomar Guest

    Question Re: Qt error :-1: error: cannot find -lqxmpp

    i installed succesfully xmp Library but i cant use in my program xmpp

  4. #4
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Qt error :-1: error: cannot find -lqxmpp

    Ah, right, sorry.

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

    Cheers,
    _

  5. #5
    davinciomar Guest

    Default Re: Qt error :-1: error: cannot find -lqxmpp

    nope how? thx for your help

  6. #6
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Qt error :-1: error: cannot find -lqxmpp

    Qt Code:
    1. LIBS += -L path-to-library
    To copy to clipboard, switch view to plain text mode 

  7. #7
    davinciomar Guest

    Default Re: Qt error :-1: error: cannot find -lqxmpp

    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
    Attached Images Attached Images

  8. #8
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Qt error :-1: error: cannot find -lqxmpp

    Quote Originally Posted by davinciomar View Post
    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,
    _

  9. #9
    davinciomar Guest

    Default Re: Qt error :-1: error: cannot find -lqxmpp

    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

  10. #10
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Qt error :-1: error: cannot find -lqxmpp

    If the library's name is "qxmpp_d0.dll" then the -l statement needs to match that
    Qt Code:
    1. -lqxmpp_d0
    To copy to clipboard, switch view to plain text mode 

    Cheers,
    _

  11. #11
    davinciomar Guest

    Default Re: Qt error :-1: error: cannot find -lqxmpp

    you are god thx man !! a lot thxxxx

Similar Threads

  1. Error: /usr/bin/ld: cannot find -lGL
    By tomkonikkara in forum Newbie
    Replies: 18
    Last Post: 18th September 2015, 19:14
  2. Replies: 1
    Last Post: 28th December 2012, 22:13
  3. How to find the error in QNetworkReply?
    By Gokulnathvc in forum Newbie
    Replies: 13
    Last Post: 20th April 2012, 10:40
  4. Find one error
    By BadKnees in forum Qt Programming
    Replies: 3
    Last Post: 24th March 2009, 15:33
  5. The error: /usr/bin/ld: cannot find -lphonon
    By learning_qt in forum Qt Programming
    Replies: 1
    Last Post: 1st October 2008, 22:12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.