Using Qt Creator under Wine in Linux?
Hi,
Has anybody had any success in using Qt Creator through Wine in Linux? I thought that I might be able to cross-compile simple programs for windows this way....
I can install Qt Creator and Qt4 for Windows in Wine, but Qt Creator does not run (it complains about missing lots of DLLs)
Any thoughts would be welcome.
Re: Using Qt Creator under Wine in Linux?
Running Qt Creator under wine will not help you in any way. You either need to run a compiler (such as MinGW) under wine or you need a full cross-compiler toolchain for the specific platform (i.e. by building MinGW for Linux). Qt Creator is just a text editor. Of course you'll need Qt libs built for the target platform too.
Re: Using Qt Creator under Wine in Linux?
Sorry, my previous statement was perhaps a little ambiguous. I download and installed the whole Qt SDK for Windows (under Wine), which has MinGW and Qt libs bundled in it as well. Do you think that will work? (Obviously, with the caveat that I have to get it to run first!)
I'm just being lazy really, I thought that this might be a relatively simple way to build small executables for Windows under Linux. I had a brief look at MinGW cross-compiling for Windows in Linux, but it looked like a lot of new things to learn!
Re: Using Qt Creator under Wine in Linux?
Quote:
Originally Posted by
kevinchannon
Sorry, my previous statement was perhaps a little ambiguous. I download and installed the whole Qt SDK for Windows (under Wine), which has MinGW and Qt libs bundled in it as well. Do you think that will work? (Obviously, with the caveat that I have to get it to run first!)
My answer still stands - you can use the Creator version for Linux and make it run a compiler that will produce code for Windows.
Quote:
I'm just being lazy really, I thought that this might be a relatively simple way to build small executables for Windows under Linux. I had a brief look at MinGW cross-compiling for Windows in Linux, but it looked like a lot of new things to learn!
It's certainly better to build MinGW for Linux, at least you will be sure it would work correctly. I doubt wine would be able to serve all the tools and libs required for compilation - but who knows... maybe it can :)
Re: Using Qt Creator under Wine in Linux?
Quote:
Originally Posted by
wysota
My answer still stands - you can use the Creator version for Linux and make it run a compiler that will produce code for Windows.
Do you know if there a way that can be specified within Creator itself? Or would it involve editing the Makefile directly?
Re: Using Qt Creator under Wine in Linux?
You can set it in Creator. You need to do two things - first instruct qmake to generate a makefile for a proper platform by passing an appropriate command line option to it and then make sure the proper compiler is in the path where it can be found by the makefile generated.