Cross compiling with Qt inside Qt Creator.
-
After waiting to jump into Qt for some months I can finally leap, and right off the bat have a rather noob question.
Is Qt Creator a true cross compiler in the sense that it can make executable binaries for platforms and OSs other then itself?
I was under the impression it was, but the current windows pre-complied download seems to have developed an emphasis on mobile devices (no native desktop use on cold install), while the current Ubuntu one seems to be native (64 bit in my case, I presume it is using GCC) and on Ubuntu running on an OMAP 'Panda' board uses GCC as well.How does one find/load/use suitable tool chains for the another target? There is something missing in my world view at this point regarding how the tools chain gets installed. I think I more or less get how any given project is assign one or more builds.
If the target is not native (consider developing for OMAP-ARM on an intel-32 or an amd-64 platform) is there a provided simulator/emulator that can assist in the debug process, or does this vary with each platform?
-
welcome to this forum
[quote author="DC Kelley" date="1332342443"]
Is Qt Creator a true cross compiler in the sense that it can make executable binaries for platforms and OSs other then itself?
[/quote]
No. Qt creator is an IDE and may use different tool chains (compilers, linker and tools). To my understanding is there also GCC available for an OMAP board, but this is not the same tool chain as you use for compilation for your desktop. -
I do not think the answer can be a 'clean' no if things like Harmattan are supported this way. I understand the tool chain will differ. My question is more if the chain exists in the first place. Maybe the vocabulary is an issue here so let me ask the question in a more typical way...
I have QtCreator 2.1.0 (based on Qt 4.7.2 (64bit)) running on my desktop PC. I want to develop my next project to run on a Mac, Windows and Ubuntu. Do I need a copy of Qt running on each of these platforms in order to build the application for each? *
FYI, I have GCC up on Pandaboard (a development board for OMAP-ARM processors) here, no problem there and frankly I was quite pleased and surprised that Qt runs there. Both pre-ES and ES boards work, although at this time the ES Ubuntu release (12.04) is not a stable release yet.
-
I have QtCreator 2.1.0 (based on Qt 4.7.2 (64bit)) running on my desktop PC. I want to develop my next project to run on a Mac, Windows and Ubuntu. Do I need a copy of Qt running on each of these platforms in order to build the application for each?
Yes.
-
Well, bummer. I can cope. It is just more clutter on the physical desktop.
One final question (in fact two). I know I can have the MS VC and MinGW tool chains both running under Qt Creator under Windows. So I am guessing I can have both 32 and 64 bit versions as well, again both under Windows (right?). Can I also build for Ubuntu under windows if I have the right (Ubuntu) lib things to link to?
-
AFAIK you can build both arch on linux too, as long as you have all the libraries and compilers, etc twice, i.e. a 64 and a 32 bits version.
But, I'm no expert, I didn't try it myself.
EDIT : oups sorry I read your question too fast. I thought you were asking whether it's possible to built both 32 and 64 linux binaries on Ubuntu.
-
[quote author="DC Kelley" date="1332356129"]One final question (in fact two). I know I can have the MS VC and MinGW tool chains both running under Qt Creator under Windows. So I am guessing I can have both 32 and 64 bit versions as well, again both under Windows (right?). Can I also build for Ubuntu under windows if I have the right (Ubuntu) lib things to link to? [/quote]
Yes, you can have different tool chains msvc and mingw supported in parallel. Actually you could have all different versions of msvc 2005, 2008, 2010 in parallel installed. If so, you can use all these as tool chains. However, you need for every tool chain also Qt compiled and available. None of these compilations are compatible with each other. The same holds true for 32 bit and 64 bit in parallel. So a couple of different releases of Qt and a couple of different tool chains also as 32 and 64 bit can fill your harddisk.
I am not aware that you can compile directly for linux (e.g. Ubuntu) in Qt Creator installed in windows. But I might be wrong with this statement. For instance for Android you can install "necessitas":http://sourceforge.net/p/necessitas/home/necessitas/ also under windows. You seem to need a couple of "other stuff to be installed for testing":http://qt-project.org/wiki/How_to_use_Necessitas_Emulator_on_Windows_7.
However, for this Qt creator is just the IDE and it can collaborate with these different packages to my understanding.
-
i have an problem related to qt application on my panda board. I don't know where should i ask this question.
if possible please give me solution.
i have build qt library for panda board on my host Ubuntu machine and build an sample qt application and run it on. but there are two cursors on screen one for Ubuntu and one for qt.
i have tried a lot of options to solve this problem but still not succeed. please give me any solution.