building with cegcc
Sébastien Lorquet
squalyl at gmail.com
Tue Oct 23 11:49:05 CEST 2007
Hello all,
First of all i'm sorry if this discussion is not related to this mailing
list.
I'm interested in building QT for wince using cegcc (
http://cegcc.sourceforge.net ) It's based on MinGW, and works with cygwin.
I tried to create a working mkspec directory:
- based on win32-g++
- changing the compiler to arm-wince-mingw32ce-gcc
- importing DEFINES from the wince50standard-armv4i-msvc2005 configuration
- importing libraries from wince50standard-armv4i-msvc2005, then change them
to match what I have in mingw32ce
- copying qplatformdefs.h from wince50standard-armv4i-msvc2005
I can provide the exact files to the ones who want it.
I attemted to build under the Qt command line prompt with the following
configure command:
configure.exe -xplatform mingw32ce -no-vcproj
qmake builds
.pro files are read
all tools are built.
then I type:
set INCLUDE=c:\cygwin\opt\mingw32ce\arm-wince-mingw32ce\include
set LIB=c:\cygwin\opt\mingw32ce\arm-wince-mingw32ce\lib
set PATH=c:\cygwin\opt\mingw32ce\bin;%PATH%
mingw32-make
this gives:
C:\Qt\4.3.2-tp1>make
cd src\winmain\ && make -f Makefile
make[1]: Entering directory `C:/Qt/4.3.2-tp1/src/winmain'
make -f Makefile.Debug all
make[2]: Entering directory `C:/Qt/4.3.2-tp1/src/winmain'
arm-wince-mingw32ce-g++ -c -g -Wall -frtti -fexceptions -mthreads
-DQT_THREAD_SUPPORT -DUNDER_CE -DWINCE -D_WINDOWS -D_UNICODE -DUNICODE
-DSTANDARDSHELL_UI_MODEL -D_WIN32_WCE=0x500
-D_ARMV4I_ -Darmv4i -D_ARM_ -DARM -D_M_ARM -DARM -D_WIN32 -D__arm__
-DQ_OS_WINCE_STD -DQT_NO_PRINTER -DQT_NO_PRINTDIALOG
-DQT_EDITION=QT_EDITION_DESKTOP -DQT_NO_CAST_TO_ASCII -DQT
_ASCII_CAST_WARNINGS -DQT_44_API_QSQLQUERY_FINISH -DQT3_SUPPORT
-DQT_MOC_COMPAT -D_USE_MATH_DEFINES -I"..\..\include" -I"tmp"
-I"..\..\include\QtCore" -I"c:\Qt\4.3.2-tp1\include\qt
main" -I"tmp" -I"..\..\include\ActiveQt" -I"tmp\moc\debug_shared" -I"."
-I"c:\cygwin\opt\mingw32ce\arm-wince-mingw32ce\include"
-I"..\..\mkspecs\mingw32ce" -o tmp\obj\debug_shared\
qtmain_win.o qtmain_win.cpp
make[2]: *** [tmp\obj\debug_shared\qtmain_win.o] Error 1
make[2]: Leaving directory `C:/Qt/4.3.2-tp1/src/winmain'
make[1]: *** [debug-all] Error 2
make[1]: Leaving directory `C:/Qt/4.3.2-tp1/src/winmain'
make: *** [sub-winmain-make_default-ordered] Error 2
C:\Qt\4.3.2-tp1>
I checked the output of arm-wince-mingw32ce-gcc -v ; this is dued to gcc
that tries to run cc1plus using paths that start with /opt and not
c:\cygwin\opts.
Then I tried to run the same in a cygwin shell, with a clean qt source tree:
$ export QTDIR=/cygdrive/c/Qt/4.3.2-tp1
$ cd $QTDIR
$ export PATH=$QTDIR/bin:$PATH
$ ./configure -xplatform mingw32ce -no-vcproj
and then I get:
Unable to detect the platform from environment. Use -platform command
lineargument or set the QMAKESPEC environment variable and run configure
again
See the README file for a list of supported operating systems and compilers.
cygwin does not seem to be supported.
So I forced the host platform:
$ ./configure -platform win32-g++ -xplatform mingw32ce -no-vcproj
to force a mingw build under cygwin
configure complained that:
Creating qmake...
execute: File or path is not found (mingw32-make)
execute: File or path is not found (mingw32-make)
Cleaning qmake failed, return code -1
so I added a symlink in /bin:
$ cd /bin
$ ln -s make mingw32-make
$ cd $QTDIR
then I restarted configure:
...
Creating qmake...
execute: File or path is not found (mingw32-make)
execute: File or path is not found (mingw32-make)
Cleaning qmake failed, return code -1
But when I run it manually, it works:
$ mingw32-make
mingw32-make: *** No targets specified and no makefile found. Stop.
renaming the link to ming32-make.exe did not help
copying make.exe to mingw32-make.exe gave:
Creating qmake...
Makefile:143: *** target pattern contains no `%'. Stop.
Makefile:143: *** target pattern contains no `%'. Stop.
Cleaning qmake failed, return code 2
Is there a way to configure under cygwin?
I did not try the following yet:
configuring with mingw,
then compiling under cygwin, using the previously generated tools.
Thanks!
--
Sébastien LORQUET
Ingénieur ENSPG 2006 / ENSIMAG-ASI 2007
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.trolltech.com/pipermail/qtce-preview-feedback/attachments/20071023/26e6af09/attachment.html
More information about the Qtce-preview-feedback
mailing list