[Development] Cross build failed of unsupported/win32-g++-cross mkspecs

Loaden loaden at gmail.com
Wed May 16 06:42:43 CEST 2012


Hi, All!
I want cross build Qt5.0 on Ubuntu 12.04, because I deleted all Windows OS
on my laptop.
But now I have a trouble of the cross build. So, I need you help in here.
Source place: ~/qpSOFT/Projects/Qt5
Build place: ~/qpSOFT/Projects/BuildQt5-w32
Here is config script:

> #!/bin/sh
>
>
>> rm -rf bin
>
> mkdir bin
>
> ln -s /usr/bin/i686-w64-mingw32-gcc ./bin/i686-pc-mingw32-gcc
>
> ln -s /usr/bin/i686-w64-mingw32-g++ ./bin/i686-pc-mingw32-g++
>
> ln -s /usr/bin/i686-w64-mingw32-ar ./bin/i686-pc-mingw32-ar
>
> ln -s /usr/bin/i686-w64-mingw32-strip ./bin/i686-pc-mingw32-strip
>
> ln -s /usr/bin/i686-w64-mingw32-windres ./bin/i686-pc-mingw32-windres
>
>
>> export LANG=C
>
> unset QTDIR
>
> export PATH="$PWD/qtbase/bin:$PWD/bin:$PATH"
>
>
>> ../Qt5/configure -prefix $PWD/qtbase -xplatform
>> unsupported/win32-g++-cross -opensource -confirm-license -release -fast
>> -nomake examples >>config.log 2>&1
>
>
>> read -p "Press any key to continue..." nothing
>
>
>> Here is build script:

> #!/bin/sh


> export LANG=C

unset QTDIR

export PATH="$PWD/qtbase/bin:$PWD/bin:$PATH"


> make -j 2 >>build.log 2>&1


> read -p "Press any key to continue..." nothing


>
Issue 1: missed zlib, -qt-zlib invalid too.
I made a patch for this issue, It can work, but seems it's not the correct
way: https://codereview.qt-project.org/#change,26120

Issue 2: After patch-26120, I can build qtbase module as well.
But after this, there still exist more errors, maybe related with V8 module.
I don't know how to solve the problem.
So, Has any devs give me a help?
Thanks a lot!!

-- 
Please don't ask where I come from, It's a shame!
Best Regards
Yuchen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20120516/7e7f8b2d/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BuildQt5-w32.7z
Type: application/octet-stream
Size: 41549 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/development/attachments/20120516/7e7f8b2d/attachment.obj>


More information about the Development mailing list