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. Cross compiling for windows - passing extra include paths to host gcc (Qt5.2.1)
QtWS25 Last Chance

Cross compiling for windows - passing extra include paths to host gcc (Qt5.2.1)

Scheduled Pinned Locked Moved Installation and Deployment
3 Posts 2 Posters 1.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.
  • P Offline
    P Offline
    PhilLello
    wrote on last edited by
    #1

    I'm trying to cross compile Qt 5.2.1 from linux (Ubunut 14.04) to windows. The build is failing in a few places when tools (which presumably should run on the build host) try to include <windows.h>. I have this available on my system for the mingw toolchain, but need to pass this location over to regular gcc - is there a switch available for configure to do this?

    Thanks

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andreyc
      wrote on last edited by
      #2

      configure for Qt 5.3.1 has -I for extra include paths, -L for libraries,-D for extra defines.
      I think it should available for 5.2.1 too.

      1 Reply Last reply
      0
      • P Offline
        P Offline
        PhilLello
        wrote on last edited by
        #3

        The -I option for configure indeed works; sadly the mingw headers (Ubuntu 14.04 deb) explicitly fail compilation if the target isn't Win32 so rather than burn more time on this, I'll look at switching the offending tools to cross compile.

        I'm far from certain what the expected target is for the Qt tools when cross compiling; should SDK bundled tools build for the host or target?

        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