Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Deploying Qt5 for cross compiling under Linux for Windows
QtWS25 Last Chance

Deploying Qt5 for cross compiling under Linux for Windows

Scheduled Pinned Locked Moved Installation and Deployment
8 Posts 3 Posters 3.2k 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.
  • T Offline
    T Offline
    Trikrista
    wrote on last edited by
    #1

    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
    0
    • D Offline
      D Offline
      doomer3d
      wrote on last edited by
      #2

      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
      0
      • T Offline
        T Offline
        Trikrista
        wrote on last edited by
        #3

        ArchLinux

        mingw installed. And there is "windows.h"

        I'm sorry for my bad English

        1 Reply Last reply
        0
        • D Offline
          D Offline
          doomer3d
          wrote on last edited by
          #4

          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
          0
          • T Offline
            T Offline
            Trikrista
            wrote on last edited by
            #5

            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
            0
            • T Offline
              T Offline
              Trikrista
              wrote on last edited by
              #6

              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
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                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
                0
                • T Offline
                  T Offline
                  Trikrista
                  wrote on last edited by
                  #8

                  The error occurred after the start of operation make

                  I'm sorry for my bad English

                  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