[Development] Cross-compling & installing cmake files

Peter Kümmel syntheticpp at gmx.net
Tue Aug 28 13:37:54 CEST 2012


On 28.08.2012 12:18, Peter Kümmel wrote:
> On 28.08.2012 12:04, Stephen Kelly wrote:
>> On Tuesday, August 28, 2012 11:49:28 Peter Kümmel wrote:
>>> I tried it again from scratch, and I was wrong, it also doesn't work
>>> on 12.04, only one file is copied: lib/cmake/Qt5Core/Qt5CTestMacros.cmake
>>
>> Ok. Please tell me how to try it out.
>>
>> 'aptitude search mingw' gives many result. I have not used mingw on linux
>> before.
>>
>
> sudo apt-get install mingw-w64
>
> and attched script to build Qt.
>

When you build Qt5 this way the generated executables are not usable.
You could try with the mainwindow example:

On Windows you need some dlls:

$ mkdir win32-mainwindow
$ cp release/mainwindow.exe win32-mainwindow/
$ cp /opt/Qt-5.0.0-win32-g++-i686-w64-mingw32/bin/*.dll win32-mainwindow/
$ cp /usr/lib/gcc/i686-w64-mingw32/4.6/*.dll win32-mainwindow/

Running mainwindow.exe gives the error:
"This application has requested the Runtime to terminate it in an unusual way"

Seems the msvc runtime is misused:
http://goo.gl/e41XF

Peter





More information about the Development mailing list