Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Deploying Qt5 for cross compiling under Linux for Windows

    Installation and Deployment
    3
    8
    2738
    Loading More Posts
    • 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.
    • T
      Trikrista last edited by

      How deploy Qt5 for cross compiling under Linux for Windows?
      I tried to do so:
      @
      ./configure -xplatform win32-g++ -prefix /opt/qt5win32 -device-option CROSS_COMPILE=i686-w64-mingw32- -nomake examples -nomake tools -continue -qt-sql-sqlite
      @

      but as a result of this error pops up here:
      @
      fatal error: windows.h: No such file or directory
      @

      I'm sorry for my bad English

      1 Reply Last reply Reply Quote 0
      • D
        doomer3d last edited by

        Your linux distro?

        You must have installed mingw runtime package . E.g. 'mingw-w64-x86-64-dev' or 'mingw-w64-i686-dev' on Ubuntu.

        1 Reply Last reply Reply Quote 0
        • T
          Trikrista last edited by

          ArchLinux

          mingw installed. And there is "windows.h"

          I'm sorry for my bad English

          1 Reply Last reply Reply Quote 0
          • D
            doomer3d last edited by

            bq. ArchLinux

            You must to install mingw-w64-headers package, who contains win32 includes.

            And if you use x86_64 arch, you can use additional repo for install precompiled mingw build of Qt.

            @[mingw-w64]
            SigLevel = Optional TrustAll
            Server = http://downloads.sourceforge.net/project/mingw-w64-archlinux/$arch
            @

            1 Reply Last reply Reply Quote 0
            • T
              Trikrista last edited by

              mingw-w64-headers installed

              I installed mingw-w64-qt5-base-opengl from http://downloads.sourceforge.net/project/mingw-w64-archlinux/$arch

              What I must write after CROSS_COMPILE that compiling start?

              I'm sorry for my bad English

              1 Reply Last reply Reply Quote 0
              • T
                Trikrista last edited by

                I added path to "include" in qmake.conf.

                Now appear new mistakes:

                @
                228: 50: error: no declaration «NotDouble_Mask» in this scope
                      inline bool isDouble () const {return (tag & NotDouble_Mask)! = NotDouble_Mask; }
                                                                   ^
                ../../include/QtQml/5.4.0/QtQml/private/../../../../../src/qml/jsruntime/qv4value_p.h: In member function «bool QV4 :: Value :: isNumber () const »:
                ../../include/QtQml/5.4.0/QtQml/private/../../../../../src/qml/jsruntime/qv4value_p.h:229:74: error: no Declaration «NotDouble_Mask» in this scope
                      inline bool isNumber () const {return tag == _Integer_Type || (tag & NotDouble_Mask)! = NotDouble_Mask; }

                ...
                @

                I'm sorry for my bad English

                1 Reply Last reply Reply Quote 0
                • SGaist
                  SGaist Lifetime Qt Champion last edited by

                  Hi,

                  What's the error message ?

                  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 Reply Quote 0
                  • T
                    Trikrista last edited by

                    The error occurred after the start of operation make

                    I'm sorry for my bad English

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post