Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Run Qt linux binary in Windows
Forum Updated to NodeBB v4.3 + New Features

Run Qt linux binary in Windows

Scheduled Pinned Locked Moved General and Desktop
5 Posts 5 Posters 3.1k 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.
  • H Offline
    H Offline
    haney
    wrote on 22 Aug 2012, 06:46 last edited by
    #1

    Hi,

    I developed a sample project in linux and created a binary. I need to test this binary in Windows 7. In my Windows 7 Qt is not installed.

    How can I test linux Qt binary in Windows?

    Please suggest your views.

    Appreciate your help in this regard.

    Thanks,
    Haney.

    1 Reply Last reply
    0
    • U Offline
      U Offline
      unai_i
      wrote on 22 Aug 2012, 06:52 last edited by
      #2

      Hello,
      I think you should compile your source on windows. It will bu much easier for you. For this you have to download windows version of Qt libs and maybe tools for building (e.g: gcc) if you don't already have them. then you can just distribute your binary with the minimum set of dlls needed if you want to run on other Windows computers.
      Bye!

      1 Reply Last reply
      0
      • L Offline
        L Offline
        lgeyer
        wrote on 22 Aug 2012, 06:57 last edited by
        #3

        You can't, because it is a Linux binary. If you want to run your application on Windows you will have to create a Windows binary.

        This can be either done by using a native toolkit on the target platform or cross-compiling (for example using MinGW) for your host platform - in both ways you will have to create a Windows binary.

        1 Reply Last reply
        0
        • T Offline
          T Offline
          tobias.hunger
          wrote on 22 Aug 2012, 08:25 last edited by
          #4

          That depends on what kind of binary you did create: A linux or a windows one (e.g. using mingw on linux).

          You can not test a linux binary on windows. You can obviously run a windows binary on windows, but you will need all the dynamic libraries the binary was linked against.

          You can run windows binaries on linux using wine. That is not the "real windows" experience though: You are just as likely to run into issues with wine as you are of discovering bugs in your application in my experience.

          1 Reply Last reply
          0
          • S Offline
            S Offline
            scroverty
            wrote on 22 Aug 2012, 20:11 last edited by
            #5

            Actually, If you are developing sorely on Linux, and want a cross-compiler target to Window, I suggess you try out "MXE cross compiler":http://mxe.cc

            You can install Qt 4.8.1 and generate window executable file with it. The only bugging thing is, you can't install mobilityKit inside the MXE. Don't know why, but you might try.

            Alvis Ar'Berkeley Andrew.
            Pleased to meet you!

            1 Reply Last reply
            0

            1/5

            22 Aug 2012, 06:46

            • Login

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