Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to get cross compile to include qtserialport
Forum Updated to NodeBB v4.3 + New Features

How to get cross compile to include qtserialport

Scheduled Pinned Locked Moved Solved Mobile and Embedded
5 Posts 2 Posters 1.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jastmc
    wrote on last edited by
    #1

    I'm trying to cross compile Qt to Arm but the build does not include qtserialport.

    My script is as follows:

    /cd /home/user/qtbuild/qtdest 
    /home/user/qtbuild/qtsource/qt-everywhere-src-5.11.2/qtbase/configure \
    -v \
    -release \
    -device linux-beagleboard-g++ \
    -device-option CROSS_COMPILE=/opt/dev/gcc-linaro-4.9-2016.02-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-  \
    -sysroot /mnt/bbb-rootfs \
    -opensource \
    -confirm-license \
    -nomake tests \
    -nomake examples \
    -no-use-gold-linker \
    -no-gcc-sysroot \
    -no-openssl \
    -no-cups \
    -no-glib \
    -no-dbus \
    -no-xcb \
    -no-separate-debug-info \
    -make libs \
    -evdev \
    -no-opengl \
    -linuxfb \
    -tslib \
    -I /mnt/bbb-rootfs/lib \
    -I /mnt/bbb-rootfs/lib/arm-linux-gnueabihf \
    -I /opt/dev/gcc-linaro-4.9-2016.02-x86_64_arm-linux-gnueabihf/usr/lib \
    -I /opt/dev/gcc-linaro-4.9-2016.02-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/lib \
    -I /opt/dev/tslib_arm/include \
    -L /opt/dev/tslib_arm/lib/ts \
    -L /opt/dev/tslib_arm/lib \
    -prefix /opt/dev/Qt5.11 \
    -extprefix /opt/dev/Qt5.11
    
    

    All the folders are created in my destination folder but qtserialport is not included.
    ![alt text](0_1539875958980_22af8dbc-680f-4f88-afa3-bd7652da4332-image.png image url)

    I've tried adding -qtserialport, -serialport and -qserialport t the configure options but they make no difference.

    How do I turn on qtserialport compilation?

    Regards,
    James

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      From the looks of it, you are starting the build from Qt qtbase. Either do it from the top level folder of Qt's sources or build the qtserialport module after using the classic qmake, make, make install combo using your cross-compiled Qt version.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • J Offline
        J Offline
        jastmc
        wrote on last edited by
        #3

        @SGaist Thanks for the prompt reply.

        I'm running the script from the ~/qtbuild folder and (in the script) cd'ing into the qtdest folder from where the configure command is being run, and its compiling the rest of the stuff correctly (I think).
        ![alt text](0_1539877428419_5a741493-d1b4-4f08-acd4-a76944cdf5ad-image.png image url)

        So there is no special flag for configure to tell it to compile qtserialport?
        Which folder do you mean by the "top level of Qt's sources" - my "qtsource" directory or the "qt-everywhere-src-5.11.2" directory?

        I came across your second suggestion while googling but could not find a way to get it to work. I'll try it again.

        Regards,
        James

        SGaistS 1 Reply Last reply
        0
        • J jastmc

          @SGaist Thanks for the prompt reply.

          I'm running the script from the ~/qtbuild folder and (in the script) cd'ing into the qtdest folder from where the configure command is being run, and its compiling the rest of the stuff correctly (I think).
          ![alt text](0_1539877428419_5a741493-d1b4-4f08-acd4-a76944cdf5ad-image.png image url)

          So there is no special flag for configure to tell it to compile qtserialport?
          Which folder do you mean by the "top level of Qt's sources" - my "qtsource" directory or the "qt-everywhere-src-5.11.2" directory?

          I came across your second suggestion while googling but could not find a way to get it to work. I'll try it again.

          Regards,
          James

          SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          /home/user/qtbuild/qtsource/qt-everywhere-src-5.11.2/qtbase/configure

          You're calling configure in qtbase.

          If you want to build all of Qt: /home/user/qtbuild/qtsource/qt-everywhere-src-5.11.2/configure

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          2
          • J Offline
            J Offline
            jastmc
            wrote on last edited by
            #5

            Ahh gotcha!

            Thanks very much!

            Regards,
            James

            1 Reply Last reply
            1

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved