Results 1 to 6 of 6

Thread: Qt Necessitas for Android

  1. #1
    Join Date
    Apr 2012
    Location
    Madurai, India
    Posts
    10
    Thanks
    4
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Default Qt Necessitas for Android

    Hi Every one,

    I got the following error while running qxmpp in qt necessitas
    error: cannot find -lqxmpp

    Please help me to find a solution...


    Thanks & Regards,

    Jeyanthi Natarajan

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Qt Necessitas for Android

    Post your pro file

  3. The following user says thank you to ChrisW67 for this useful post:

    jeyanthinatarajan (21st June 2012)

  4. #3
    Join Date
    Apr 2012
    Location
    Madurai, India
    Posts
    10
    Thanks
    4
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Default Re: Qt Necessitas for Android

    Hi,

    This is the QXmpp.pri file

    # Common definitions

    QT += network xml
    QXMPP_VERSION = 0.4.0
    QXMPP_INCLUDEPATH = $$PWD/src/base $$PWD/src/client $$PWD/src/server

    CONFIG(debug, debug|release) {
    QXMPP_LIBRARY_NAME = qxmpp_d
    } else {
    QXMPP_LIBRARY_NAME = qxmpp
    }

    # Libraries used internally by QXmpp
    android|symbian {

    } else:contains(MEEGO_EDITION,harmattan) {
    # meego/harmattan has speex for sure
    QXMPP_INTERNAL_DEFINES += QXMPP_USE_SPEEX
    QXMPP_INTERNAL_LIBS += -lspeex
    } else:symbian {
    QXMPP_INTERNAL_INCLUDES = $$APP_LAYER_SYSTEMINCLUDE
    QXMPP_INTERNAL_LIBS = -lesock
    } else:win32 {
    QXMPP_INTERNAL_LIBS = -ldnsapi -lws2_32
    }

    # Libraries for apps which use QXmpp
    symbian {
    # Symbian needs a .lib extension to recognise the library as static
    QXMPP_LIBS = -l$${QXMPP_LIBRARY_NAME}.lib
    } else {
    QXMPP_LIBS = -l$${QXMPP_LIBRARY_NAME}
    }

    # Determine library type (lib or staticlib)
    isEmpty(QXMPP_LIBRARY_TYPE) {
    QXMPP_LIBRARY_TYPE = staticlib
    }
    contains(QXMPP_LIBRARY_TYPE,staticlib) {
    # FIXME: we should be able to use the link_prl option to automatically pull
    # in the extra libraries which the qxmpp library needs, but this does not
    # seem to work on win32, so we specify the dependencies here:
    QXMPP_LIBS += $$QXMPP_INTERNAL_LIBS
    }

    # Installation prefix and library directory
    isEmpty(PREFIX) {
    unix:PREFIX=/usr/local
    }
    isEmpty(LIBDIR) {
    LIBDIR=lib
    }

    This is examples.pri
    include(../qxmpp.pri)

    TEMPLATE = app
    CONFIG += console

    INCLUDEPATH += $$QXMPP_INCLUDEPATH
    LIBS += -L../../src $$QXMPP_LIBS

    # Symbian packaging rules
    symbian {
    vendorinfo = \
    "; Localised Vendor name" \
    "%{\"QXmpp\"}" \
    " " \
    "; Unique Vendor name" \
    ":\"QXmpp\"" \
    " "

    examples_deployment.pkg_prerules += vendorinfo
    DEPLOYMENT += examples_deployment

    TARGET.CAPABILITY = "NetworkServices"
    }
    This is the Pro file

    include(../examples.pri)

    TARGET = GuiClient
    TEMPLATE = app

    SOURCES += main.cpp \
    chatMsgGraphicsItem.cpp \
    chatGraphicsScene.cpp \
    chatGraphicsView.cpp \
    chatDialog.cpp \
    mainDialog.cpp \
    rosterItemModel.cpp \
    rosterItem.cpp \
    rosterItemSortFilterProxyModel.cpp \
    utils.cpp \
    rosterListView.cpp \
    searchLineEdit.cpp \
    statusWidget.cpp \
    signInStatusLabel.cpp \
    statusAvatarWidget.cpp \
    statusTextWidget.cpp \
    statusToolButton.cpp \
    vCardCache.cpp \
    profileDialog.cpp \
    capabilitiesCache.cpp \
    accountsCache.cpp \
    xmlConsoleDialog.cpp \
    aboutDialog.cpp

    HEADERS += chatMsgGraphicsItem.h \
    chatGraphicsScene.h \
    chatGraphicsView.h \
    chatDialog.h \
    mainDialog.h \
    rosterItemModel.h \
    rosterItem.h \
    rosterItemSortFilterProxyModel.h \
    utils.h \
    rosterListView.h \
    searchLineEdit.h \
    statusWidget.h \
    signInStatusLabel.h \
    statusAvatarWidget.h \
    statusTextWidget.h \
    statusToolButton.h \
    vCardCache.h \
    profileDialog.h \
    capabilitiesCache.h \
    accountsCache.h \
    xmlConsoleDialog.h \
    aboutDialog.h

    FORMS += mainDialog.ui \
    chatDialog.ui \
    statusWidget.ui \
    profileDialog.ui \
    xmlConsoleDialog.ui \
    aboutDialog.ui

    QT += network \
    xml

    RESOURCES += resources.qrc

  5. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt Necessitas for Android

    Is /usr/local/lib in your library search path? Is libqxmpp.so present in that directory?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  6. The following user says thank you to wysota for this useful post:

    jeyanthinatarajan (22nd June 2012)

  7. #5
    Join Date
    Apr 2012
    Location
    Madurai, India
    Posts
    10
    Thanks
    4
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Default Re: Qt Necessitas for Android

    Hi,

    Thanks for the reply wysota

    I included the library file in /usr/local/lib but still i am getting the same error...

  8. #6
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Qt Necessitas for Android

    As far as I can tell your PRO file uses the default linker library path and a relative folder called "../../src" only (i.e. the LIBS -L options). Unless libqxmpp.so is installed in one of those locations (the relative location is prone to being not what you thought) then things will not be in the correct locations for include paths and libraries. If you have not installed qxmpp according to the README file in its source bundle then do so. If you used the defaults on a UNIX-like machine then is should be installed into /usr/local/lib, include etc. and often will Just Work.

    Ultimately your PRO should only need:
    Qt Code:
    1. QXMPP_PREFIX = /usr/local
    2. INCLUDEPATH += $${QXMPP_PREFIX}/include
    3. LIBS += -L$${QXMPP_PREFIX}/lib -lqxmpp
    To copy to clipboard, switch view to plain text mode 
    in order to use the library (and not the files you are copying form the actual qxmpp build).

Similar Threads

  1. necessitas: android intent & QProcess issues
    By tpf80 in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 5th June 2015, 22:16
  2. Necessitas Android Help
    By RENOLD in forum Qt Programming
    Replies: 0
    Last Post: 6th March 2012, 04:51
  3. Android / necessitas: SQLITE error ("Driver not loaded")
    By Al_ in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 28th August 2011, 15:06
  4. Necessitas Qt for Android issue
    By rickrvo in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 8th June 2011, 10:30
  5. Qt for Android. Necessitas
    By freely in forum Newbie
    Replies: 3
    Last Post: 27th May 2011, 18: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.