Compiler errors unless INCLUDEPATH += "/usr/include/QtOAuth" "/usr/include/QtCrypto"

Bug #1014051 reported by Chris Wilson
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
qoauth (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

The usage instructions for QOauth only specify "CONFIG += oauth" in the project file and "#include <QtOAuth>" in the source code. However, following this process I encountered the following compiler error:

fatal error: QtOAuth: No such file or directory

After verifying that libqoauth-dev was installed and QtOAuth was present in /usr/include/QtOAuth, I added INCLUDEPATH += "/usr/include/QtOAuth" to my project file, which solved the problem, but left me with another error:

fatal error: QtCrypto: No such file or directory

Adding /usr/include/QtCrypto to the INCLUDEPATH solved that and allowed me to finish compilation.

This behaviour in contrary to the design philosophy behind QOAuth, where things are supposed to be done the "Qt way". For example, to use Qt's XML features in my code, I would add QT += xml to my project file and #include <QtXml> to my source code, and that's it.

The include paths should be resolved automatically, leading me to believe there's a problem with the packaging.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: libqoauth-dev 1.0.1-1ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-25.40-generic-pae 3.2.18
Uname: Linux 3.2.0-25-generic-pae i686
ApportVersion: 2.0.1-0ubuntu8
Architecture: i386
Date: Sat Jun 16 08:45:26 2012
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release i386 (20111012)
SourcePackage: qoauth
UpgradeStatus: Upgraded to precise on 2012-03-17 (90 days ago)

Revision history for this message
Chris Wilson (notgary-deactivatedaccount) wrote :
Revision history for this message
Chris Wilson (notgary-deactivatedaccount) wrote :

I forgot to mention that LIBS += -lqoauth is also required for the linking to succeed.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in qoauth (Ubuntu):
status: New → Confirmed
Revision history for this message
Raz Ziv (raz-ziv) wrote :

similar problems using package libqt4-dev.

Revision history for this message
Harald Sitter (apachelogger) wrote :
Changed in qoauth (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.