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 compile QT5.12.0

cross compile QT5.12.0

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
10 Posts 2 Posters 1.4k Views
  • 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.
  • MihanM Offline
    MihanM Offline
    Mihan
    wrote on last edited by aha_1980
    #1

    what dependent libraries should I prepare

    MihanM 1 Reply Last reply
    0
    • MihanM Mihan

      what dependent libraries should I prepare

      MihanM Offline
      MihanM Offline
      Mihan
      wrote on last edited by
      #2

      @Mihan said in cross conpile QT5.12.0:

      what dependent libraries should I prepare

      On Ubuntu 18.04

      jsulmJ 1 Reply Last reply
      0
      • MihanM Mihan

        @Mihan said in cross conpile QT5.12.0:

        what dependent libraries should I prepare

        On Ubuntu 18.04

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by jsulm
        #3

        @Mihan It depends on which Qt modules you want to build. So, there is no generic answer.
        You should simply call configure and see what it finds and what not. And if some modules are disabled and you need them you can check what is missing adding -v parameter to configure and checking the output.

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        MihanM 1 Reply Last reply
        1
        • jsulmJ jsulm

          @Mihan It depends on which Qt modules you want to build. So, there is no generic answer.
          You should simply call configure and see what it finds and what not. And if some modules are disabled and you need them you can check what is missing adding -v parameter to configure and checking the output.

          MihanM Offline
          MihanM Offline
          Mihan
          wrote on last edited by
          #4

          @jsulm ./configure -prefix /usr/local/Qt-5.12.0-arm/ -release -opensource -make libs -xplatform linux-arm-gnueabi-g++ -optimized-qmake -pch -qt-libjpeg -qt-zlib -no-opengl -skip qt3d -skip qtcanvas3d -skip qtpurchasing -no-sse2 -no-openssl -no-cups -no-glib -no-iconv -nomake examples -nomake tools -skip qtvirtualkeyboard

          Here is the configure of me,I want to use sqlite,should i add some about sqlite?

          And here is a problem when making after configure.
          ![alt text](0_1555571186727_b7d353b1-7c90-43a6-9960-bc2a5b089588-image.png image url)<IMG src="file:///C:\Users\SEELE\AppData\Roaming\feiq\RichOle\2167031044.bmp">

          jsulmJ 1 Reply Last reply
          0
          • MihanM Mihan

            @jsulm ./configure -prefix /usr/local/Qt-5.12.0-arm/ -release -opensource -make libs -xplatform linux-arm-gnueabi-g++ -optimized-qmake -pch -qt-libjpeg -qt-zlib -no-opengl -skip qt3d -skip qtcanvas3d -skip qtpurchasing -no-sse2 -no-openssl -no-cups -no-glib -no-iconv -nomake examples -nomake tools -skip qtvirtualkeyboard

            Here is the configure of me,I want to use sqlite,should i add some about sqlite?

            And here is a problem when making after configure.
            ![alt text](0_1555571186727_b7d353b1-7c90-43a6-9960-bc2a5b089588-image.png image url)<IMG src="file:///C:\Users\SEELE\AppData\Roaming\feiq\RichOle\2167031044.bmp">

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @Mihan SQlite is built in I think, nothing special needed.
            What compiler do you use (version)?
            You should do out of source builds to keep your source tree clean.

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            MihanM 2 Replies Last reply
            0
            • jsulmJ jsulm

              @Mihan SQlite is built in I think, nothing special needed.
              What compiler do you use (version)?
              You should do out of source builds to keep your source tree clean.

              MihanM Offline
              MihanM Offline
              Mihan
              wrote on last edited by
              #6

              @jsulm Did you mean the cross conpiler version? It's arm-none-linux-gnueabi 4.8.3
              And how to interpret that doing out of source builds.Dose it mean I should make sure the prefix ,not the default?

              jsulmJ 1 Reply Last reply
              0
              • MihanM Mihan

                @jsulm Did you mean the cross conpiler version? It's arm-none-linux-gnueabi 4.8.3
                And how to interpret that doing out of source builds.Dose it mean I should make sure the prefix ,not the default?

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by jsulm
                #7

                @Mihan I think this compiler is too old for your Qt version. You need a newer version supporting C++11.
                Out of source build simply means that you build outside of the source code directory:

                mkdir build
                cd build
                PATH_TO_QT_SOURCE_CODE/configure...
                make
                make install
                

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                MihanM 1 Reply Last reply
                0
                • jsulmJ jsulm

                  @Mihan SQlite is built in I think, nothing special needed.
                  What compiler do you use (version)?
                  You should do out of source builds to keep your source tree clean.

                  MihanM Offline
                  MihanM Offline
                  Mihan
                  wrote on last edited by
                  #8

                  @jsulm The problem of the picture was fixed ,I modified the definition of qbswap ,no the Q_DECL_CONSTEXPR,in <qendian.h> ,now I making it.

                  1 Reply Last reply
                  0
                  • jsulmJ jsulm

                    @Mihan I think this compiler is too old for your Qt version. You need a newer version supporting C++11.
                    Out of source build simply means that you build outside of the source code directory:

                    mkdir build
                    cd build
                    PATH_TO_QT_SOURCE_CODE/configure...
                    make
                    make install
                    
                    MihanM Offline
                    MihanM Offline
                    Mihan
                    wrote on last edited by
                    #9

                    @jsulm uh,now it has a problem,is building qml without python,but ubuntu18.04 comes with python3,which version should I install

                    jsulmJ 1 Reply Last reply
                    0
                    • MihanM Mihan

                      @jsulm uh,now it has a problem,is building qml without python,but ubuntu18.04 comes with python3,which version should I install

                      jsulmJ Offline
                      jsulmJ Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      @Mihan I don't know which Python version is needed, but you can install Python 2 and 3 in parallel.

                      https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      0

                      • Login

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