prelimary mingw cross compile instructions

Angus Leeming leeming at lyx.org
Tue Apr 19 19:12:35 CEST 2005


Ralf Habacker wrote:

> hi all,
> 
> currently I've released an initial how to for cross compiling mingw,
> which let compile qt much faster as with native mingw compiler  tool
> chain
> 
> Howto: http://sourceforge.net/project/shownotes.php?release_id=318305
> rpm's:
>
http://sourceforge.net/project/showfiles.php?group_id=49109&package_id=149157&release_id=318305
> 
> It would be nice if anyone can verify this howto before we can make an
> official howto.
> 
> Thanks
> Ralf

Hi, Ralf.

I thought I'd try out your instructions on Fedora Core 3. I got someway
down the line, but compilation of qmake is failing because I haven't told
the compiler where to find the w32api headers:

    $ cd qt3
    $ export QTDIR=$PWD
    $ export QMAKESPEC=win32-g++
    $ export PATH=$PWD/bin:$PATH
    $ make -f Makefile.cvs
    $ ./configure -no-cups -platform win32-g++ -shared

g++ -c -O2 -fno-exceptions -fno-rtti  -DUNICODE -DQT_NO_TEXTCODEC
-DQT_NO_UNICODETABLES -DQT_LITE_COMPONENT -DQT_NODLL -DQT_NO_STL
-DQT_NO_COMPRESS -DHAVE_QCONFIG_CPP -I"." -I"generators"
-I"generators/unix" -I"generators/win32" -I"generators/mac" -I"../include"
-I"../include/private" -I"../include/qmake"
-I"/include"-I"/home/angus/mingw-xcompile/qt3/mkspecs/win32-g++" -o
tmp/qdatetime.o ../src/tools/qdatetime.cpp
In file included from ../src/tools/qdatetime.cpp:38:
/home/angus/mingw-xcompile/qt3/mkspecs/win32-g++/qplatformdefs.h:14:19:
tchar.h: No such file or directory
/home/angus/mingw-xcompile/qt3/mkspecs/win32-g++/qplatformdefs.h:15:16:
io.h: No such file or directory
/home/angus/mingw-xcompile/qt3/mkspecs/win32-g++/qplatformdefs.h:16:20:
direct.h: No such file or directory
/home/angus/mingw-xcompile/qt3/mkspecs/win32-g++/qplatformdefs.h:22:21:
windows.h: No such file or directory
../src/tools/qdatetime.cpp: In static member function `static bool
QTime::currentTime(QTime*, Qt::TimeSpec)':
../src/tools/qdatetime.cpp:1725: error: `gettimeofday' undeclared (first
use this function)
../src/tools/qdatetime.cpp:1725: error: (Each undeclared identifier is
reportedonly once for each function it appears in.)
gmake: *** [tmp/qdatetime.o] Error 1
qmake failed to build. Aborting.

I attach a detailed log of all I have done so far, but basically the MinGW
runtime and w32api are installed as
    /usr/local/i386-mingw32/
        bin/
        include/
        lib/

where do I input this infor?

One further, dumm question: qmake is being built with g++, not
i386-mingw32-g++ . That's correct, isn't it (because qmake will be used to
build the sources).

Regards,
Angus
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: HOWTO
Url: http://mail.kde.org/pipermail/kde-cygwin/attachments/20050419/3909e0f9/HOWTO.ksh


More information about the kde-cygwin mailing list