Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.2
-
None
Description
When building qtdeclarative with " -android-abis armeabi-v7a" and " -developer-build", it fails, because there are signed/unsigned comparison warnings which are treated as errors.
Currently, my workaround is to pass "-no-warnings-are-errors" to "configure".
Build commands:
git clone git://code.qt.io/qt/qt5.git cd qt5 perl init-repository --module-subset=qtbase,qtdeclarative,qtandroidextras,qtconnectivity,qtsvg --codereview-username andreasbuhr git submodule foreach git checkout dev git submodule foreach git pull cd .. mkdir hostbuild cd hostbuild ../qt5/configure -developer-build -opensource -make examples -make tests -confirm-license cmake --build . cd .. mkdir androidbuild cd androidbuild ../qt5/configure -developer-build -opensource -nomake examples -nomake tests -confirm-license -xplatform android-clang -qt-host-path /home/andreasbuhr/development/qtdev/androidbuild2/hostbuild/qtbase -android-ndk ~/Android/Sdk/ndk/21.3.6528147 -android-sdk ~/Android/Sdk -android-abis armeabi-v7a cmake --build .
One of the errors:
/home/andreasbuhr/development/qtdev/androidbuild2/qt5/qtbase/src/gui/util/qktxhandler.cpp:151:42: error: comparison of integers of different signs: 'unsigned int' and 'qsizetype' (aka 'int') [-Werror,-Wsign-compare] if (headerSize + bytesOfKeyValueData < buf.length()) // oob check ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~ /home/andreasbuhr/development/qtdev/androidbuild2/qt5/qtbase/src/gui/util/qktxhandler.cpp:230:42: error: comparison of integers of different signs: 'unsigned int' and 'qsizetype' (aka 'int') [-Werror,-Wsign-compare] if (offset + keyAndValueByteSize > view.size())
Attachments
Gerrit Reviews
For Gerrit Dashboard: QTBUG-91163 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
335103,10 | Coin: Add -developer-build targets for Android on Linux | dev | qt/qt5 | Status: NEW | -1 | 0 |