[Qt-interest] cross compiling qt using mingw

schoappied schoappied at gmail.com
Mon Jul 27 15:27:41 CEST 2009


schoappied wrote:
> John McClurkin wrote:
>> schoappied wrote:
>>  
>>> Hi,
>>>
>>> I try to build an Qt  application  for windows, on Debian via cross 
>>> compiling with mingw.
>>>
>>> The configuration seems to go pretty well now, all though I have my 
>>> whether the right Qt is used (see attachment).
>>>
>>> But when I do make I get an error:
>>>
>>> # make
>>> [  1%] Generating bin2res
>>> [  1%] Generating embedded_resources.h
>>> [  1%] Generating ui_export_project.h
>>> make[2]: execvp: /usr/i586-mingw32msvc/bin/uic.exe: Permission denied
>>> make[2]: *** [ui_export_project.h] Error 127
>>> make[1]: *** [CMakeFiles/lmms.dir/all] Error 2
>>> make: *** [all] Error 2
>>>
>>>
>>> What could be wrong here? I like to get some help here.
>>>
>>> Thanks in advance,
>>>
>>> /d
>>>
>>>     
>> Have you checked the permissions of /usr/i586-mingw32msvc/bin/uic.exe?
>>   
> Thanks for your reply.
>
> I've made the exe file executable, and now I get:
>
> /usr/i586-mingw32msvc/bin/uic.exe: /usr/i586-mingw32msvc/bin/uic.exe: 
> cannot execute binary file
>
> Regards,
>
> \d
>
To setup mingw I installed mingw32 on Debian with aptitude

Then I took a look at: 
http://lists.trolltech.com/qt-interest/2006-03/thread00351-0.html

But I don't think the setup is 100% right yet, I need some help with that.

a) Mingw is in: /usr/i586-mingw32msvc

b) I copied Qt from Windows to Linux

c) I copied /usr/i586-mingw32msvc/share/qt4/mkspecs/win32-g++ to  
/usr/i586-mingw32msvc/share/qt4/mkspecs/win32-x-g++

d) And have the qmake.conf now as (see attachment)

7. Make sure that the bin directory for Qt4 (for Linux, not Windows!) and
the bin directory for your cross-compiler are in your path, *before* anything
else. (This is to prevent the wrong tools being used, in case you also have
Qt3 installed, e.g.) Set QTDIR to wherever you put the Windows build of Qt4.


About which path are we talking about here?

> 8. Run 'qmake -spec win32-x-g++' on your project.
>
>   
How?

I tried this:

$ qmake -spec win32-x-g++ lmmsconfig.h
Could not find mkspecs for your QMAKESPEC(win32-x-g++) after trying:
        /usr/share/qt4/mkspecs
Error processing project file: lmmsconfig.h


Would be nice if I got some help here.

Kind regards,

~D
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: qmake.conf
Url: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090727/bcb444be/attachment.pl 


More information about the Qt-interest-old mailing list