Results 1 to 13 of 13

Thread: Error again with xmpp in qt 5.2

  1. #1
    davinciomar Guest

    Question Error again with xmpp in qt 5.2

    Hi guys sorry a lot for this question but at the moment i cant use xmpp ; i think because in this version i need include some path or something, i dont know.
    I share with you picture about this error:
    https://i.imgsafe.org/0b4d860cd6.png

    Its like the ide doesnt know the path or something like that (about this error
    C:\Users\moh\cliente\ventanaescritorio.h:27: error: qxmpp/QXmppClient.h: No such file or directory
    #include <qxmpp/QXmppClient.h>
    ^

    i included this LIB but in this version seems not work.
    LIBS += -lxmpp_d0

    i compiled xmpp with qt 5.2 not qt 5.7 or other i am using this version now thx a lot for your help and sorry again !! a lot !!

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    4,197
    Thanks
    237
    Thanked 668 Times in 658 Posts
    Qt products
    Qt5
    Platforms
    Windows Android

    Default Re: Error again with xmpp in qt 5.2

    What directory does the directory qxampp live in? You want to add that directory to your INCLUDEPATH.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

  3. #3
    davinciomar Guest

    Default Re: Error again with xmpp in qt 5.2

    C:\Users\moh\Downloads\qxmpp-master

    I need to put in includepath?? how.. i need to put only dll sorry and thx

  4. #4
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    4,197
    Thanks
    237
    Thanked 668 Times in 658 Posts
    Qt products
    Qt5
    Platforms
    Windows Android

    Default Re: Error again with xmpp in qt 5.2

    In your .pro file: INCLUDEPATH += C:\Users\moh\Downloads\qxmpp-master - if this directory contains a directory named "qxmpp". If that isn't the right directory, then find the one under qxampp-master that contains the "qxmpp" subdirectory. That's the one you want.

    According to your screen shot there is am "src" directory. Maybe there's an "include" directory as well?
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

  5. The following user says thank you to d_stranz for this useful post:


  6. #5
    davinciomar Guest

    Default Re: Error again with xmpp in qt 5.2

    picture:
    https://i.imgsafe.org/11366a0b58.png

    i dont know how to solve it it's like the program doesnt take the libraries or xmpp


    Added after 29 minutes:


    I proved 5.6 nothing not work i use lib += .. anyways i dont know which includepath i need to put i share picture if you can help me pls in 5.7 worked but i need static build thx a lot for your help a lo tof thxxx
    Last edited by davinciomar; 27th August 2016 at 06:57.

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

    Default Re: Error again with xmpp in qt 5.2

    As d_stranz said: locate the "qxmpp" directory that conatins the "QXmppClient.h" file.

    The parent directory is the one you add to INCLUDEPATH

    Cheers,
    _

  8. #7
    davinciomar Guest

    Default Re: Error again with xmpp in qt 5.2

    picture:
    https://i.imgsafe.org/16c0505541.png

    I need help i tried but nothing some suggestion?

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

    Default Re: Error again with xmpp in qt 5.2

    I am not sure what posting a screenshot of an unrelated directory will add to the thread?

    You either need to find the correct directory or change the include.

    Cheers,
    _

  10. #9
    davinciomar Guest

    Default Re: Error again with xmpp in qt 5.2

    i tried includepath but nothing thx a lot for your help i will return to 5.7 to try .c

  11. #10
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    4,197
    Thanks
    237
    Thanked 668 Times in 658 Posts
    Qt products
    Qt5
    Platforms
    Windows Android

    Default Re: Error again with xmpp in qt 5.2

    i will return to 5.7 to try .c
    Trying random things is not going to solve your problem.

    I looked at the qxmpp distro on Github. It does not contain a directory called "qxmpp". The "#include <qxmpp/QXmppClient.h>" is wrong. Change it to:

    Qt Code:
    1. #include <QXmppClient.h>
    To copy to clipboard, switch view to plain text mode 

    and your code should compile, unless you have changed your .pro file since you made your original post.

    You could have saved yourself (and us) a lot of trouble if you simply searched through the qxmpp source code on your PC and found where QXmppClient.h was. You would have discovered (like I did) that there isn't a "qxmpp" directory containing the header file. It lives in the distribution in the src/client/ directory instead.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

  12. #11
    davinciomar Guest

    Default Re: Error again with xmpp in qt 5.2

    you are right in 5.7 didnt work so i forgot something i dont know i will check again


    Added after 13 minutes:


    i dont know why before was worked with this LIBS += -lqxmpp_d0 and now not work LOL
    Last edited by davinciomar; 27th August 2016 at 23:15.

  13. #12
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,420
    Thanks
    37
    Thanked 1,545 Times in 1,495 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Error again with xmpp in qt 5.2

    Quote Originally Posted by d_stranz View Post
    Trying random things is not going to solve your problem.
    Indeed.

    Quote Originally Posted by d_stranz View Post
    I looked at the qxmpp distro on Github. It does not contain a directory called "qxmpp". The "#include <qxmpp/QXmppClient.h>" is wrong.
    My guess is that the "make install" step of the library creates that directory.
    But yes, given the general inability to work with directories it might be better to reduce the usage of directory names.

    Quote Originally Posted by davinciomar View Post
    i dont know why before was worked with this LIBS += -lqxmpp_d0 and now not work LOL
    LIBS has nothing to do with includes, it contains information for the linker.

    Cheers,
    _

  14. #13
    davinciomar Guest

    Default Re: Error again with xmpp in qt 5.2

    now Works but i dont know how i build all and i am using 5.7 versión i only used linked to get this i need to fix one thing but nothing important i could fix thx i will try to use static libraries in qt 5.7 i will share if i got it thx again for this fórum and the wonderful people in this forum

Similar Threads

  1. Replies: 3
    Last Post: 19th November 2014, 20:44
  2. Replies: 4
    Last Post: 29th April 2014, 17:20
  3. Replies: 2
    Last Post: 21st February 2014, 21:21
  4. : error: [\NokiaQtSDK\Symbian\SDK\epoc32\release\gcce\udeb\V ideo.exe] Error 1
    By ranjit.kadam in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 1st May 2011, 23:11

Tags for this Thread

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.