[Qt-interest] Building QT under from linux using MingW
Stephan Rose
kermos at somrek.net
Tue Apr 28 17:35:16 CEST 2009
*smack self*
Thanks...I completely didn't even think about that...
stephan at software:~$ ls /usr/i586-mingw32msvc/include | grep windows.h
windows.h
Theres your problem, it's windows.h, not Windows.h - case sensitivity in Linux.
Could
$cp windows.h Windows.h or create a symbol link as a dirty fix.
On Tue, Apr 28, 2009 at 4:28 PM, Stephan Rose <kermos at somrek.net> wrote:
>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.
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090428/cbc00a21/attachment.html
More information about the Qt-interest-old
mailing list