aws-sdk-qt | comiplation issue in Qt 5.2
-
g++ -c -m64 -pipe -g -Wall -W -Werror -D_REENTRANT -fPIC -DQTAWS_LIBRARY -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NETWORK_LIB -DQT_CORE_LIB -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -I../../../aws-sdk-qt-master/src/AWSMigrationHub -I../../../aws-sdk-qt-master/src -I/usr/include/qt5 -I/usr/include/qt5/QtNetwork -I/usr/include/qt5/QtCore -I. -I. -o associatecreatedartifactresponse.o ../../../aws-sdk-qt-master/src/AWSMigrationHub/associatecreatedartifactresponse.cpp
In file included from /usr/include/qt5/QtCore/qiodevice.h:45:0,
from /usr/include/qt5/QtCore/QIODevice:1,
from /usr/include/qt5/QtNetwork/qnetworkreply.h:45,
from /usr/include/qt5/QtNetwork/QNetworkReply:1,
from ../../../aws-sdk-qt-master/src/core/awsabstractresponse.h:25,
from ../../../aws-sdk-qt-master/src/AWSMigrationHub/migrationhubresponse.h:23,
from ../../../aws-sdk-qt-master/src/AWSMigrationHub/associatecreatedartifactresponse.h:23,
from ../../../aws-sdk-qt-master/src/AWSMigrationHub/associatecreatedartifactresponse.cpp:20:
../../../aws-sdk-qt-master/src/AWSMigrationHub/associatecreatedartifactresponse.cpp: In member function 'virtual void QtAws::MigrationHub::AssociateCreatedArtifactResponse::parseSuccess(QIODevice&)':
/usr/include/qt5/QtCore/qglobal.h:936:43: error: unused variable 'd' [-Werror=unused-variable]
#define Q_D(Class) Class##Private * const d = d_func()
^
../../../aws-sdk-qt-master/src/AWSMigrationHub/associatecreatedartifactresponse.cpp:68:5: note: in expansion of macro 'Q_D'
Q_D(AssociateCreatedArtifactResponse);
^
cc1plus: all warnings being treated as errors
make[2]: Leaving directory/home/sarathkumar/mqtt/build-aws-sdk-qt-Desktop-Debug/src/AWSMigrationHub' make[1]: Leaving directory/home/sarathkumar/mqtt/build-aws-sdk-qt-Desktop-Debug/src'
make[2]: *** [associatecreatedartifactresponse.o] Error 1
make[1]: *** [sub-AWSMigrationHub-AWSMigrationHub-pro-make_first] Error 2
make: *** [sub-src-make_first-ordered] Error 2
16:09:31: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project aws-sdk-qt (kit: Desktop)
When executing step "Make"
16:09:31: Elapsed time: 00:18. -
Hi,
Since warnings are treated as error, fix the warning shown: remove the used variable.
-
Hi @Sarath-AK,
I'm the creator of the aws-sdk-qt project (aka Libqtaws), as I mentioned (just now) in your Github issue, this compiler error should be fixed now, so try building against the latest commit.
I am curious though, what is you level of interest in the project?
As mentioned in the readme, it "is still in early stages of development" and as such, is not ready to be used just yet. However, I'd be more than happy to have you help with development of the library itself :)
Note, you can use the 0.2.0 release to peform SQS operations, as well as perform authentication for any AWS service (again, all covered (breifly) in the readme). But the codebase is being pretty drastically restructured at the moment, to use a custom (Grantlee-based) code-generator to create the service and model classes from AWS API descriptions instead of hand-coding, so the next release (0.3.0?) will be very different, ie not at all API compatible, but at least it will contain almost all AWS services (and currently 700K+ lines of code!)
Cheers.