February 4, 2011

khalidmushtaq65 khalidmushta..
Lab Rat
40 posts

Deploying Qt Application

 

Hi,

I hope all of you will be fine.

I am current facing an issue. I am using Qt SDK 1.1 on Fedora 14. I want to deploy my application for windows.
Please tell me the way to do it.

Regards,
Khalid Mushtaq

9 replies

February 4, 2011

Gerolf Gerolf
Robot Herder
3286 posts

If you want to deploy (and compile) for windows, you should build on windows.
It would make it much easier. I’m not sure, whther cross compiling for windows works (and if it’s possible i fit works well).

 Signature 

Nokia Certified Qt Specialist.
Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

February 4, 2011

khalidmushtaq65 khalidmushta..
Lab Rat
40 posts

Can you please tell me how to cross-compile for windows using Fedora 14 or any other Linux Distribution?

February 4, 2011

Gerolf Gerolf
Robot Herder
3286 posts

You could ask google:

http://www.google.com/search?q=cross+compile+for+windows+on+linux&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official

use the second post or look for more results

 Signature 

Nokia Certified Qt Specialist.
Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

February 4, 2011

mabrand mabrand
Lab Rat
10 posts

The MinGW Cross Compiling Environment [mingw-cross-env.nongnu.org] might be a good solution for you. It comes ready to cross-build Qt applications. It does static linking, which might simplify your deployment.

February 4, 2011

khalidmushtaq65 khalidmushta..
Lab Rat
40 posts

Thanks for the answer:-)

Now I am going on track..

Regards,
Khalid Mushtaq

February 4, 2011

Volker Volker
Ant Farmer
5428 posts

And don’t forget to read

of the Qt docs.

February 5, 2011

khalidmushtaq65 khalidmushta..
Lab Rat
40 posts

Thanks Volker:-)

February 5, 2012

zeFree zeFree
Lab Rat
5 posts

Hello Guys,

@Khalid,
I know this is kinda late to answer exactly one year after the last post, still I’d like to share with you that I do similar thing regularly.

I develop, build and run the Qt code on my Ubuntu Linux. When results are satisfactory I compile the code for Windows using the Qt (for Windows) which I’ve installed on Ubuntu using Wine.

I have to admit that it’s very slow using Qt on wine – that’s why I do all the stuff on Linux version and when all’s fine, set and tested, I do a build on Qt on Wine.
Till now, I’ve been doing this for Windows, but haven’t found any such way for Mac. Please share if any of you know a similar or better way of doing such (cross-compiling stuff) things.

I hope this information is useful to you and others.

—————————————————————————

Also you all might wanna go thru these links:
1) http://en.wikibooks.org/wiki/Windows_Programming/Programming_Windows_with_OSS_Tools#MinGW
2) http://www.mingw.org/wiki/LinuxCrossMinGW

February 6, 2012

Tobias Hunger Tobias Hunger
Robot Herder
3387 posts

I did enable mingw on Linux last week in Qt Creator (master), that might help a bit with your cross-compiling.

I did limited testing only though: I was able to build a small hello-world application as a PE32 application for windows, but I did not try for a full Qt app.

Please report your findings:-)

 
  ‹‹ Start: Linux or OS X, what developing env?      Help with Ovi certificate testing! ››

You must log in to post a reply. Not a member yet? Register here!