PDA

View Full Version : problem in building QOauth



abdul_moiz
16th June 2011, 11:41
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

Rachol
16th June 2011, 13:40
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.