PDA

View Full Version : Compiling under MSYS / Cygwin with MinGW-w64



hickscorp
20th April 2012, 14:19
Dear forum users,

i have successfully compiled Qt under MSYS with MinGW-w64 (Not MinGW). Now i'm trying to do the same with Cygwin, however i'm unable to succeed with neither the configure script nor the configure.exe program. i'm using Windows XP Pro and Qt 4.8.1 OpenSource.

i am trying to configure Qt with:


#!/bin/sh
../../../../QtSources/4.8.1/configure.exe \
-fast \
-shared \
-debug-and-release \
-opensource \
-confirm-license \
-no-dsp \
-no-vcproj \
-no-qt3support \
-no-webkit \
-no-phonon \
-no-phonon-backend \
-platform win32-g++ \
-nomake demos -nomake examples \
-prefix $BASEDIR/Desktop/Qt/4.8.1/mingw-w64-cygw


First of all, when using cygwin, mingw32-make is not available (i get an error from the configure.exe binary: "execute: File or path is not found (mingw32-make)", right after all the headers generation). So i have downloaded a copy of mingw32-make from msys and put it in cygwin (*gasp*). The configure script goes further, but still fails.
The failure seems related to the fact that the MKSPEC file didn't find the cygwin environment, and is issuing windows command instead of unix. The error looks like th


Preparing build tree...

This is the Qt for Windows Open Source Edition.

You have already accepted the terms of the license.

Environment:
INCLUDE=

Unset
LIB=

Unset
PATH=

C:\cygwin\usr\local\bin

C:\cygwin\bin

C:\WINDOWS

C:\WINDOWS\system32

C:\WINDOWS\System32\Wbem

C:\cygwin\bin
You are licensed to use this software under the terms of the GNU GPL version 3.You are licensed to use this software under the terms of the Lesser GNU LGPL version 2.1.
See C:/QtSDK/QtSources/4.8.13

or C:/QtSDK/QtSources/4.8.1L

Configuration:
minimal-config

small-config

medium-config

large-config

full-config

build_all

debug
Qt Configuration:
release

debug

zlib

png

accessibility

opengl

s60

ipv6

script

scripttools

xmlpatterns

multimedia

audio-backend

declarative

native-gestures

svg

minimal-config

small-config

medium-config

large-config

full-config

QMAKESPEC...................win32-g++ (commandline)
Architecture................windows
Maketool....................mingw32-make
Debug symbols...............yes
Link Time Code Generation...no
Accessibility support.......yes
STL support.................yes
Exception support...........yes
RTTI support................yes
MMX support.................yes
3DNOW support...............no
SSE support.................yes
SSE2 support................yes
IWMMXT support..............no
OpenGL support..............yes
OpenVG support..............no
OpenSSL support.............no
QtDBus support..............no
QtXmlPatterns support.......yes
Phonon support..............no
QtMultimedia support........yes
WebKit support..............no
Declarative support.........yes
Declarative debugging.......yes
QtScript support............yes
QtScriptTools support.......yes
Graphics System.............raster
Qt3 compatibility...........no
DirectWrite support.........no

Third Party Libraries:
ZLIB support............qt
GIF support.............plugin
TIFF support............plugin
JPEG support............plugin
PNG support.............yes
MNG support.............plugin
FreeType support........no

Styles:
Windows.................yes
Windows XP..............no
Windows Vista...........no
Plastique...............yes
Cleanlooks..............yes
Motif...................yes
CDE.....................yes
Windows CE..............no
Windows Mobile..........no
S60.....................no

Sql Drivers:
ODBC....................no
MySQL...................no
OCI.....................no
PostgreSQL..............no
TDS.....................no
DB2.....................no
SQLite..................plugin (qt)
SQLite2.................no
InterBase...............no

Sources are in..............C:\QtSDK\QtSources\4.8.1
Build is done in............C:\QtSDK\Desktop\Qt\4.8.1\mingw-w64-cygw
Install prefix............../Desktop/Qt/4.8.1/mingw-w64-cygw
Headers installed to......../Desktop/Qt/4.8.1/mingw-w64-cygw/include
Libraries installed to....../Desktop/Qt/4.8.1/mingw-w64-cygw/lib
Plugins installed to......../Desktop/Qt/4.8.1/mingw-w64-cygw/plugins
Imports installed to......../Desktop/Qt/4.8.1/mingw-w64-cygw/imports
Binaries installed to......./Desktop/Qt/4.8.1/mingw-w64-cygw/bin
Docs installed to.........../Desktop/Qt/4.8.1/mingw-w64-cygw/doc
Data installed to.........../Desktop/Qt/4.8.1/mingw-w64-cygw
Translations installed to.../Desktop/Qt/4.8.1/mingw-w64-cygw/translations
Examples installed to......./Desktop/Qt/4.8.1/mingw-w64-cygw/examples
Demos installed to........../Desktop/Qt/4.8.1/mingw-w64-cygw/demos

Running syncqt...
Creating qmake...
g++ -c -oproject.o -O -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -Igenerators/symbian -Igenerators/integrity -IC:\QtSDK\Desktop\Qt\4.8.1\mingw-w64-cygw/include -IC:\QtSDK\Desktop\Qt\4.8.1\mingw-w64-cygw/include/QtCore -IC:\QtSDK\QtSources\4.8.1/include -IC:\QtSDK\QtSources\4.8.1/include/QtCore -IC:\QtSDK\Desktop\Qt\4.8.1\mingw-w64-cygw/src/corelib/global -IC:\QtSDK\Desktop\Qt\4.8.1\mingw-w64-cygw/src/corelib/xml -IC:\QtSDK\QtSources\4.8.1/mkspecs/win32-g++ -IC:\QtSDK\QtSources\4.8.1/tools/shared -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_LITE_COMPONENT -DQT_NO_PCRE -DQT_NODLL -DQT_NO_STL -DQT_NO_COMPRESS -DUNICODE -DHAVE_QCONFIG_CPP -DQT_BUILD_QMAKE -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM -DQT_BOOTSTRAPPED -DQLIBRARYINFO_EPOCROOT -DQMAKE_OPENSOURCE_EDITION project.cpp
del project.o main.o makefile.o unixmake.o unixmake2.o mingw_make.o option.o winmakefile.o projectgenerator.o property.o meta.o makefiledeps.o metamakefile.o xmloutput.o pbuilder_pbx.o borland_bmake.o msvc_nmake.o msvc_vcproj.o msvc_vcxproj.o msvc_objectmodel.o msbuild_objectmodel.o symmake.o initprojectdeploy_symbian.o symmake_abld.o symmake_sbsv2.o symbiancommon.o registry.o epocroot.o gbuild.o qbitarray.o qbuffer.o qbytearray.o qcryptographichash.o qvsnprintf.o qbytearraymatcher.o qconfig.o qdatetime.o qdir.o qdiriterator.o qfile.o qtemporaryfile.o qfileinfo.o qabstractfileengine.o qfilesystementry.o qfilesystemengine.o qfilesystemengine_win.o qfilesystemiterator_win.o qfsfileengine.o qfsfileengine_iterator.o qfsfileengine_win.o qglobal.o qhash.o qiodevice.o qlibraryinfo.o qlist.o qlinkedlist.o qlocale.o qlocale_tools.o qlocale_win.o qmalloc.o qmap.o qregexp.o qtextcodec.o qutfcodec.o qstring.o qstringlist.o qsystemlibrary.o qsystemerror.o qtextstream.o quuid.o qvector.o qurl.o qsettings.o qsettings_win.o qvariant.o qmetatype.o qxmlstream.o qxmlutils.o qnumeric.o
g++ -c -oproject.o -O -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -Igenerators/symbian -Igenerators/integrity -IC:\QtSDK\Desktop\Qt\4.8.1\mingw-w64-cygw/include -IC:\QtSDK\Desktop\Qt\4.8.1\mingw-w64-cygw/include/QtCore -IC:\QtSDK\QtSources\4.8.1/include -IC:\QtSDK\QtSources\4.8.1/include/QtCore -IC:\QtSDK\Desktop\Qt\4.8.1\mingw-w64-cygw/src/corelib/global -IC:\QtSDK\Desktop\Qt\4.8.1\mingw-w64-cygw/src/corelib/xml -IC:\QtSDK\QtSources\4.8.1/mkspecs/win32-g++ -IC:\QtSDK\QtSources\4.8.1/tools/shared -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_LITE_COMPONENT -DQT_NO_PCRE -DQT_NODLL -DQT_NO_STL -DQT_NO_COMPRESS -DUNICODE -DHAVE_QCONFIG_CPP -DQT_BUILD_QMAKE -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM -DQT_BOOTSTRAPPED -DQLIBRARYINFO_EPOCROOT -DQMAKE_OPENSOURCE_EDITION project.cpp
Building qmake failed, return code 2


Is there anyone here successful compiling Qt 4.8.x with a cygwin environment?

Thanks,
Pierre.