[Qt-interest] Building QT under from linux using MingW
Stephan Rose
kermos at somrek.net
Tue Apr 28 17:28:13 CEST 2009
>Why are you trying to compile a win32-g++ version of QT on linux? That doesn't
>seem like it would work.
It's called cross-compiling. It works, usually. How do you think I write software for embedded ARM or Motorola devices? They also use gcc, but of course a version of gcc that targets those devices. The same goes for MingW, it targets windows but the host is linux. Nothing wrong with that.
And as for the reason why, this is why:
Current steps to build a windows version of my QT app:
1. Check in changes to SVN
2. Reboot into windows
3. Get latest changes from SVN in windows
4. Build
5. Reboot into linux
6. Deploy updated executable on update server
If I can cross-compile to MingW from linux, my steps would look like this:
1. Check in changes to SVN
2. Build mingw version
3. Deploy updated executable on update server
>
>And the windows.h file, does it actually exist on the system? Although, it
>might be part of the mingW distribution.
Yes it exists on the system. mingw exists under linux for cross-compiling purposes and comes with all necessary headers and libs.
stephan at software:~$ ls /usr/i586-mingw32msvc/include | grep windows.h
windows.h
There you go.
More information about the Qt-interest-old
mailing list