Error building Qt-5.2.0 git on ARM



  • /usr/local/qt5/qtbase/bin/moc -DQT_NO_LIBUDEV -DQT_NO_URL_CAST_FROM_STRING -DQT_NO_INTEGER_EVENT_COORDINATES -DQT_BUILD_QUICK_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_NO_EGL -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I/usr/local/qt5/qtbase/mkspecs/linux-g++ -I. -I/usr/local/qt5/qtbase/include -I/usr/local/qt5/qtbase/include/QtQuick -I/usr/local/qt5/qtbase/include/QtQuick/5.2.0 -I/usr/local/qt5/qtbase/include/QtQuick/5.2.0/QtQuick -I. -I/usr/local/qt5/qtbase/include/QtQml/5.2.0 -I/usr/local/qt5/qtbase/include/QtQml/5.2.0/QtQml -I/usr/local/qt5/qtbase/include/QtQml -I/usr/local/qt5/qtbase/include/QtGui/5.2.0 -I/usr/local/qt5/qtbase/include/QtGui/5.2.0/QtGui -I/usr/local/qt5/qtbase/include/QtNetwork -I/usr/local/qt5/qtbase/include/QtGui -I/usr/local/qt5/qtbase/include/QtCore/5.2.0 -I/usr/local/qt5/qtbase/include/QtCore/5.2.0/QtCore -I/usr/local/qt5/qtbase/include/QtCore -I.moc -I/usr/lib/gcc/include/c++/4.8.2 -I/usr/lib/gcc/include/c++/4.8.2/armv7hl-redhat-linux-gnueabi -I/usr/lib/gcc/include/c++/4.8.2/backward -I/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/4.8.2/include -I/usr/local/include -I/usr/include items/qquickflipable.cpp -o .moc/qquickflipable.moc
    g++ -c -O2 -fPIC -Werror -Wno-error=cpp -Wno-error=deprecated-declarations -Wno-error=strict-overflow -g -fvisibility=hidden -fvisibility-inlines-hidden -std=c++0x -fno-exceptions -Wall -W -D_REENTRANT -fPIC -DQT_NO_LIBUDEV -DQT_NO_URL_CAST_FROM_STRING -DQT_NO_INTEGER_EVENT_COORDINATES -DQT_BUILD_QUICK_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_NO_EGL -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I/usr/local/qt5/qtbase/mkspecs/linux-g++ -I. -I/usr/local/qt5/qtbase/include -I/usr/local/qt5/qtbase/include/QtQuick -I/usr/local/qt5/qtbase/include/QtQuick/5.2.0 -I/usr/local/qt5/qtbase/include/QtQuick/5.2.0/QtQuick -I. -I/usr/local/qt5/qtbase/include/QtQml/5.2.0 -I/usr/local/qt5/qtbase/include/QtQml/5.2.0/QtQml -I/usr/local/qt5/qtbase/include/QtQml -I/usr/local/qt5/qtbase/include/QtGui/5.2.0 -I/usr/local/qt5/qtbase/include/QtGui/5.2.0/QtGui -I/usr/local/qt5/qtbase/include/QtNetwork -I/usr/local/qt5/qtbase/include/QtGui -I/usr/local/qt5/qtbase/include/QtCore/5.2.0 -I/usr/local/qt5/qtbase/include/QtCore/5.2.0/QtCore -I/usr/local/qt5/qtbase/include/QtCore -I.moc -o .obj/qquicktranslate.o items/qquicktranslate.cpp
    items/qquickpathview.cpp: In member function ‘void QQuickPathView::modelUpdated(const QQmlChangeSet&, bool)’:
    items/qquickpathview.cpp:2070:47: error: ‘moveOffset’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
    d->currentIndex = i.index + moveOffset;
    ^
    cc1plus: all warnings being treated as errors
    make[3]: *** [.obj/qquickpathview.o] Error 1
    make[3]: *** Waiting for unfinished jobs....
    make[3]: Leaving directory /usr/local/qt5/qtdeclarative/src/quick' make[2]: *** [sub-quick-make_first-ordered] Error 2 make[2]: Leaving directory/usr/local/qt5/qtdeclarative/src'
    make[1]: *** [sub-src-make_first] Error 2
    make[1]: Leaving directory `/usr/local/qt5/qtdeclarative'
    make: *** [module-qtdeclarative-make_first] Error 2
    [root@localhost qt5]#


  • Moderators

    Add -no-warnings-as-errors (or was it just -no-errors?) to configure.



  • iv just posted pretty much the exact same error, using msvc 2012 x86 and also tried x64, not arm tho. If you find a fix then please let us know, ill do the same.



  • [quote author="sierdzio" date="1384152098"]Add -no-warnings-as-errors (or was it just -no-errors?) to configure.[/quote]
    None of those worked, but as it's an unused variable I altered the Makefile CXXFLAGS from -Werror to -Wno-error.
    The build is progressing so I shall see if no problems arise, assuming the build completes.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.