Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-69727

qtserialport doesn't build for Android with NDK r16b

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • 5.12
    • Serial Port

    Description

      c:\utils\android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/windows/bin/arm-linux-androideabi-g++ -c -D__ANDROID_API__=16 --sysroot=c:\utils\android-ndk-r16b/sysroot -isystem c:\utils\android-ndk-r16b/sysroot/usr/include/arm-linux-androideabi -isystem c:\utils\android-ndk-r16b/sources/cxx-stl/gnu-libstdc++/4.9/include -isystem c:\utils\android-ndk-r16b/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include -fstack-protector-strong -DANDROID -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -fno-builtin-memmove -mthumb -Os -std=c++14 -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -Wvla -Wno-missing-field-initializers -D_REENTRANT -fPIC -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_SERIALPORT_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_EXCEPTIONS -DQT_NO_DEBUG -DQT_CORE_LIB -I. -I. -I..\..\include -I..\..\include\QtSerialPort -I..\..\include\QtSerialPort\5.12.0 -I..\..\include\QtSerialPort\5.12.0\QtSerialPort -Ic:\Users\qt\work\install\include\QtCore\5.12.0 -Ic:\Users\qt\work\install\include\QtCore\5.12.0\QtCore -Ic:\Users\qt\work\install\include -Ic:\Users\qt\work\install\include\QtCore -I.moc -Ic:\utils\openssl-android-master\include -Ic:\Users\qt\work\install\mkspecs\android-g++ -o .obj\qserialport.obj qserialport.cpp
      agent:2018/08/02 09:20:12 build.go:187: qserialport_unix.cpp:77:8: error: redefinition of 'struct termios2'
      agent:2018/08/02 09:20:12 build.go:187:  struct termios2 {
      agent:2018/08/02 09:20:12 build.go:187:         ^
      agent:2018/08/02 09:20:12 build.go:187: In file included from c:\utils\android-ndk-r16b/sysroot/usr/include/arm-linux-androideabi/asm/termbits.h:19:0,
      agent:2018/08/02 09:20:12 build.go:187:                  from c:\utils\android-ndk-r16b/sysroot/usr/include/asm-generic/termios.h:21,
      agent:2018/08/02 09:20:12 build.go:187:                  from c:\utils\android-ndk-r16b/sysroot/usr/include/arm-linux-androideabi/asm/termios.h:19,
      agent:2018/08/02 09:20:12 build.go:187:                  from c:\utils\android-ndk-r16b/sysroot/usr/include/linux/termios.h:22,
      agent:2018/08/02 09:20:12 build.go:187:                  from c:\utils\android-ndk-r16b/sysroot/usr/include/sys/ioctl.h:38,
      agent:2018/08/02 09:20:12 build.go:187:                  from c:\utils\android-ndk-r16b/sysroot/usr/include/termios.h:32,
      agent:2018/08/02 09:20:12 build.go:187:                  from qserialport_p.h:69,
      agent:2018/08/02 09:20:12 build.go:187:                  from qserialport_unix.cpp:42:
      agent:2018/08/02 09:20:12 build.go:187: c:\utils\android-ndk-r16b/sysroot/usr/include/asm-generic/termbits.h:34:8: error: previous definition of 'struct termios2'
      agent:2018/08/02 09:20:12 build.go:187:  struct termios2 {
      agent:2018/08/02 09:20:12 build.go:187:         ^
      

      @ https://testresults.qt.io/coin/logview/qt/qtserialport/707d0e5c56cfaa41620679cf122c23b8f8dec665/WindowsWindows_7x86AndroidAndroid_ANYarmv7Mingw53qtci-windows-7-x86-3-a74f41Release_DisableTests_OpenGLES2/d11328b8ed9020bbcf542f3829566e69a52b86f3/build_1533290173

      and
      https://testresults.qt.io/coin/logview/qt/qtserialport/707d0e5c56cfaa41620679cf122c23b8f8dec665/MacOSMacOS_10_12x86_64AndroidAndroid_ANYarmv7GCCqtci-macos-10.12-x86_64-8-a5608dRelease_DisableTests_OpenGLES2/d11328b8ed9020bbcf542f3829566e69a52b86f3/build_1533315115

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              tosaraja Tony Sarajärvi
              tosaraja Tony Sarajärvi
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes