#11 new

Building QOAuth on Kubuntu 10.04 64-bit

Reported by Scotto | July 21st, 2010 @ 06:13 AM

I'm having some trouble building QOAuth (latest git master) on 64-bit Lucid.

I have libqca2, libqca2-dev and libqca2-plugin-ossl packages installed (from Lucid repos)

On first attempt, qmake && make gives "QtCrypto: No such file or directory".
After replacing

#include <QtCrypto>
#include </usr/library/QtCrypto/QtCrypto>

in all .cpp and .h files; I was able to build & install successfully.

However, I then proceeded to build the latest Choqok svn (which depends on QOAuth). When clicking the "Authorize Choqok" button, Choqok crashes with:

choqok: symbol lookup error: /usr/lib/libqoauth.so.1: undefined symbol: _ZN3QCA11InitializerC1ENS_10MemoryModeEi

I'm guessing it's a QOAuth problem, since I had to modify the QOAuth includes just to get it to build. Any ideas?

Comments and changes to this ticket

  • Marcelo Barros

    Marcelo Barros September 18th, 2010 @ 05:08 PM

    I think it is better to edit your .pro file (or Makefile, if not using qmake stuff):

    For instance, add the following lines:

    INCLUDEPATH += /usr/include/QtCrypto
    INCLUDEPATH += /usr/include/QtOAuth

    LIBS += -L/usr/lib -lqoauth
    LIBS += -L/usr/lib -lqca

    This way, you do not need to change your #include lines.
    But I do not know how to solve your real problem unfortunately.

  • David Faure

    David Faure May 2nd, 2013 @ 01:56 PM

    The proper solution would be to switch to a real build system, like cmake :-)

    Otherwise, at least add support for an environment variable used by the .pro files, pointing to the QCA install prefix.

    I have the same issue on my system: qoauth doesn't compile because it doesn't find the QCA headers, which aren't in /usr but in my self-compiled kde prefix.

    Please consider a cmake-based build system, or maybe finding and using the mkspecs/features/crypto.prf installed by QCA (but I don't exactly know how this works, i.e. how to tell qmake in which directory to look for that).

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

QOAuth is a Qt-based C++ library providing means for communicating with services supporting OAuth authorization scheme.

Shared Ticket Bins

People watching this ticket