[Development] Cross-compling & installing cmake files

Peter Kümmel syntheticpp at gmx.net
Tue Aug 28 14:09:49 CEST 2012


Many thanks! That solves the problem.

AFAIK mingw still uses the runtime from Studio 6.0.

libstdc++-6.dll links against msvcrt.dll which is here version 7.0

On 28.08.2012 13:55, Andreas Holzammer wrote:
> You are also missing the platform plugin und
> plugin/platforms/windows.dll, needs to be copied to
> win32-mainwindow/platforms. I cannot imagine that the msvc runtime is
> missing, because you are using the mingw compiler and the compiler does
> not use the msvc runtine...
>
> Am 28.08.2012 13:37, schrieb Peter Kümmel:
>> 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
>>
>>
>> _______________________________________________
>> Development mailing list
>> Development at qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/development
>>
>
>
>
>
> _______________________________________________
> Development mailing list
> Development at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development



More information about the Development mailing list