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. Cross compiled Qt libs compatibility on Raspberry Pi 3
Forum Updated to NodeBB v4.3 + New Features

Cross compiled Qt libs compatibility on Raspberry Pi 3

Scheduled Pinned Locked Moved Solved Mobile and Embedded
8 Posts 3 Posters 687 Views 3 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.
  • A Offline
    A Offline
    azarubkin
    wrote on last edited by
    #1

    Hello,

    I fail to grasp one thing regarding cross-compiled Qt libs. There are Qt libs in Raspbian repo, version 5.7.1, they were presumably built by the gcc from the same repo, version 6.3.0 (I don't know for sure, I just assume). At the same time, cross gcc in https://github.com/raspberrypi/tools (linaro version) is only 4.8.3.

    If I build my application on my host machine used for cross-compilation, should I ship it with Qt libs which were cross-compiled on the same host too? Or is it possible to ship just application binary only, and take Qt libs from Raspbian repo?

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Unless GCC messed something up, the binaries should be compatible.

      BTW. There are newer GCCs available from Linaro.

      (Z(:^

      A 2 Replies Last reply
      1
      • sierdzioS sierdzio

        Unless GCC messed something up, the binaries should be compatible.

        BTW. There are newer GCCs available from Linaro.

        A Offline
        A Offline
        azarubkin
        wrote on last edited by azarubkin
        #3

        @sierdzio said in Cross compiled Qt libs compatibility on Raspberry Pi 3:

        There are newer GCCs available from Linaro.

        Are there any plans to incorporate them into https://github.com/raspberrypi/tools repo? Or is that repo deprecated, and fresh toolchains should be downloaded from Linaro directly?

        Pablo J. RoginaP 1 Reply Last reply
        0
        • A azarubkin

          @sierdzio said in Cross compiled Qt libs compatibility on Raspberry Pi 3:

          There are newer GCCs available from Linaro.

          Are there any plans to incorporate them into https://github.com/raspberrypi/tools repo? Or is that repo deprecated, and fresh toolchains should be downloaded from Linaro directly?

          Pablo J. RoginaP Offline
          Pablo J. RoginaP Offline
          Pablo J. Rogina
          wrote on last edited by
          #4

          @azarubkin said in Cross compiled Qt libs compatibility on Raspberry Pi 3:

          Are there any plans to incorporate them into https://github.com/raspberrypi/tools repo?

          that's a question for the Raspberry Pi Foundation I guess...

          Upvote the answer(s) that helped you solve the issue
          Use "Topic Tools" button to mark your post as Solved
          Add screenshots via postimage.org
          Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

          sierdzioS 1 Reply Last reply
          2
          • sierdzioS sierdzio

            Unless GCC messed something up, the binaries should be compatible.

            BTW. There are newer GCCs available from Linaro.

            A Offline
            A Offline
            azarubkin
            wrote on last edited by
            #5

            @sierdzio said in Cross compiled Qt libs compatibility on Raspberry Pi 3:

            Unless GCC messed something up, the binaries should be compatible.

            What if repo binaries were compiled with different configure options than mine? I.e. c++14, and I was building them in c++11 mode?

            sierdzioS 1 Reply Last reply
            0
            • A azarubkin

              @sierdzio said in Cross compiled Qt libs compatibility on Raspberry Pi 3:

              Unless GCC messed something up, the binaries should be compatible.

              What if repo binaries were compiled with different configure options than mine? I.e. c++14, and I was building them in c++11 mode?

              sierdzioS Offline
              sierdzioS Offline
              sierdzio
              Moderators
              wrote on last edited by
              #6

              @azarubkin said in Cross compiled Qt libs compatibility on Raspberry Pi 3:

              @sierdzio said in Cross compiled Qt libs compatibility on Raspberry Pi 3:

              Unless GCC messed something up, the binaries should be compatible.

              What if repo binaries were compiled with different configure options than mine? I.e. c++14, and I was building them in c++11 mode?

              I don't think it matters, they should still be compatible.

              Unless you compiled with more heavy flags (like Q_NO_KEYWORDS, Q_NAMESPACE etc.) which change binary footprint.

              (Z(:^

              1 Reply Last reply
              0
              • Pablo J. RoginaP Pablo J. Rogina

                @azarubkin said in Cross compiled Qt libs compatibility on Raspberry Pi 3:

                Are there any plans to incorporate them into https://github.com/raspberrypi/tools repo?

                that's a question for the Raspberry Pi Foundation I guess...

                sierdzioS Offline
                sierdzioS Offline
                sierdzio
                Moderators
                wrote on last edited by
                #7

                @Pablo-J-Rogina said in Cross compiled Qt libs compatibility on Raspberry Pi 3:

                @azarubkin said in Cross compiled Qt libs compatibility on Raspberry Pi 3:

                Are there any plans to incorporate them into https://github.com/raspberrypi/tools repo?

                that's a question for the Raspberry Pi Foundation I guess...

                Yep, I have no idea, ask RPi foundation please (and post the reply here :)).

                (Z(:^

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  azarubkin
                  wrote on last edited by
                  #8

                  Looks like I've found some info: https://github.com/raspberrypi/tools/issues/81#issuecomment-358281044
                  He says there was an ABI change in GCC 5, so it looks like compatibility between 4.9.3 and 6.3.0 is not guaranteed.

                  There's an issue in Raspberry Pi repo: https://github.com/raspberrypi/tools/issues/81. It is still open for now. While RPi foundation haven't provided an answer, a number of people have built their own toolchains, for example here: https://github.com/raspberrypi/tools/issues/81#issuecomment-541411881

                  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