Results 1 to 2 of 2

Thread: problem in building QOauth

  1. #1
    Join Date
    Jun 2011
    Posts
    11
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default problem in building QOauth

    Hi,
    I am building QOauth library but i am getting the below errors.I have the dependencies qca and qca-ossl installed correctly but still i am getting these errors.Can anybody help me out

    g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQOAUTH -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include -I. -Itmp -o tmp/interface.o interface.cpp
    In file included from interface.cpp:21:
    interface.h:33:20: error: QtCrypto: No such file or directory
    In file included from interface.cpp:21:
    interface.h:78: error: ISO C++ forbids declaration of ‘QCA’ with no type
    interface.h:78: error: expected ‘,’ or ‘...’ before ‘::’ token
    interface.h:80: error: ISO C++ forbids declaration of ‘QCA’ with no type
    interface.h:80: error: expected ‘,’ or ‘...’ before ‘::’ token
    In file included from interface.cpp:22:
    interface_p.h:92: error: ISO C++ forbids declaration of ‘QCA’ with no type
    interface_p.h:92: error: expected ‘,’ or ‘...’ before ‘::’ token
    interface_p.h:93: error: ‘QCA’ has not been declared
    interface_p.h:93: error: expected ‘,’ or ‘...’ before ‘*’ token
    interface_p.h:97: error: ‘QCA’ has not been declared
    interface_p.h:97: error: ISO C++ forbids declaration of ‘Initializer’ with no type
    interface_p.h:97: error: expected ‘;’ before ‘initializer’
    interface_p.h:98: error: ‘QCA’ has not been declared
    interface_p.h:98: error: ISO C++ forbids declaration of ‘PrivateKey’ with no type
    interface_p.h:98: error: expected ‘;’ before ‘privateKey’
    interface_p.h:99: error: ‘QCA’ has not been declared
    interface_p.h:99: error: ISO C++ forbids declaration of ‘SecureArray’ with no type
    interface_p.h:99: error: expected ‘;’ before ‘passphrase’
    interface_p.h:100: error: ‘QCA’ has not been declared
    interface_p.h:100: error: ISO C++ forbids declaration of ‘EventHandler’ with no type
    interface_p.h:100: error: expected ‘;’ before ‘eventHandler’
    interface_p.h:120: error: ISO C++ forbids declaration of ‘QCA’ with no type
    interface_p.h:120: error: expected ‘,’ or ‘...’ before ‘::’ token
    interface.cpp: In member function ‘void QOAuth::InterfacePrivate::init()’:
    interface.cpp:234: error: ‘eventHandler’ was not declared in this scope
    interface.cpp: At global scope:
    interface.cpp:612: error: ISO C++ forbids declaration of ‘QCA’ with no type
    interface.cpp:612: error: expected ‘,’ or ‘...’ before ‘::’ token
    interface.cpp: In member function ‘bool QOAuth::Interface::setRSAPrivateKey(const QString&, int)’:
    interface.cpp:616: error: ‘passphrase’ was not declared in this scope
    interface.cpp: At global scope:
    interface.cpp:612: warning: unused parameter ‘QCA’
    interface.cpp:636: error: ISO C++ forbids declaration of ‘QCA’ with no type
    interface.cpp:636: error: expected ‘,’ or ‘...’ before ‘::’ token
    interface.cpp: In member function ‘bool QOAuth::Interface::setRSAPrivateKeyFromFile(const QString&, int)’:
    interface.cpp:644: error: ‘passphrase’ was not declared in this scope
    interface.cpp: At global scope:
    interface.cpp:636: warning: unused parameter ‘QCA’
    interface.cpp:651: error: ISO C++ forbids declaration of ‘QCA’ with no type
    interface.cpp:651: error: expected ‘,’ or ‘...’ before ‘::’ token
    interface.cpp: In member function ‘void QOAuth::InterfacePrivate::setPrivateKey(const QString&, int)’:
    interface.cpp:654: error: ‘QCA’ is not a class or namespace
    interface.cpp:655: error: ‘QCA’ is not a class or namespace
    interface.cpp:655: error: ‘QCA’ is not a class or namespace
    interface.cpp:660: error: ‘class QOAuth::InterfacePrivate’ has no member named ‘passphrase’
    interface.cpp:660: error: ‘passphrase’ was not declared in this scope
    interface.cpp:662: error: ‘QCA’ is not a class or namespace
    interface.cpp:662: error: expected ‘;’ before ‘keyLoader’
    interface.cpp:664: error: ‘keyLoader’ was not declared in this scope
    interface.cpp:666: error: ‘from’ was not declared in this scope
    interface.cpp: At global scope:
    interface.cpp:650: warning: unused parameter ‘QCA’
    interface.cpp:681: error: variable or field ‘readKeyFromLoader’ declared void
    interface.cpp:681: error: ‘QCA’ has not been declared
    interface.cpp:681: error: ‘keyLoader’ was not declared in this scope
    make[2]: *** [tmp/interface.o] Error 1


    Thanks in advance

  2. #2
    Join Date
    Jun 2011
    Location
    Finland
    Posts
    164
    Thanks
    1
    Thanked 26 Times in 26 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Maemo/MeeGo

    Default Re: problem in building QOauth

    Sorry, I don't know what you are building, but it seems to me that you are missing bilding parameters. You mus use -I/... , where "..." is the location of that library include files you are using.

Similar Threads

  1. Does anyone have works with qoauth in windows?
    By MorrisLiang in forum Qt Programming
    Replies: 1
    Last Post: 11th December 2010, 10:02
  2. problem while building
    By mohanakrishnan in forum Newbie
    Replies: 4
    Last Post: 28th October 2009, 12:29
  3. Problem building QMYSQL
    By Eternal in forum Installation and Deployment
    Replies: 2
    Last Post: 25th October 2009, 01:32
  4. QOAuth - a Qt OAuth library
    By ayoy in forum Qt-based Software
    Replies: 1
    Last Post: 10th August 2009, 13:50
  5. problem with static building
    By mismael85 in forum Qt Programming
    Replies: 11
    Last Post: 28th March 2008, 20:43

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.