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
Forum Updated to NodeBB v4.3 + New Features

Deploying Qt5 for cross compiling under Linux for Windows

Scheduled Pinned Locked Moved Installation and Deployment
8 Posts 3 Posters 3.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.
  • T Offline
    T Offline
    Trikrista
    wrote on 9 Jan 2015, 14:44 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 10 Jan 2015, 09:45 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 10 Jan 2015, 14:16 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 10 Jan 2015, 17:37 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 10 Jan 2015, 20:51 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 14 Jan 2015, 13:09 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
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 14 Jan 2015, 23:16 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 15 Jan 2015, 20:22 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

                  3/8

                  10 Jan 2015, 14:16

                  5 unread
                  • Login

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