[SOLVED] configure problem with Qt 4.8.0 with MinGW gcc 4.7
-
I am running on Windows 7. I am not using MSYS. I have qt-everywhere-commercial-src-4.8.0.tar.gz, which I untarred with options xvzf into folder C:\Qt\4.8.0. I cd into that directory and run configure.exe. I get the following error:
mingw32-make: *** No rule to make target 'C:Qt4.8.0/qmake/project.cpp', needed by 'project.o'. Stop.
It looks like the configure program is not recognizing the backslashes in the file name correctly; i.e., instead of C:\Qt\4.8.0/qmake, it has removed the backslashes, so it is C:Qt4.8.0/qmake. Can anyone help me with this? Thank you. Below is the most of the output (had to cut it down a bit - it was too large to post).
c:\Qt\4.8.0>.\configure.exe
This is the Qt for Windows FullFramework Edition.You are licensed to use this software under the terms of
the Qt COMMERCIAL LICENSE AGREEMENT.All the required DirectShow/Direct3D files couldn't be found.
Make sure you have either the platform SDK AND the DirectShow SDK or the Windows
SDK installed.
If you have the DirectShow SDK installed, please make sure that you have run the
<path to SDK>\SetEnv.Cmd script.
vmr9.h not found
dshow.h not found
strmiids.lib not found
dmoguids.lib not found
msdmo.lib not found
d3d9.h not found
Environment:
INCLUDE=
Unset
LIB=
Unset
PATH=
C:\PROGRA~1\Serena\vm\win32\bin
C:\PROGRA~1\Serena\vm\common\bin\win32
C:\Perl\site\bin
C:\Perl\bin
C:\PROGRA~2\Serena\vm\win32\bin
C:\PROGRA~2\Serena\vm\common\bin\win32
C:\Windows\system32
C:\Windows
C:\Windows\System32\Wbem
C:\Windows\System32\WindowsPowerShell\v1.0
C:\Program Files (x86)\QuickTime\QTSystem
C:\Program Files\Gemalto\Access Client\v5
C:\Program Files (x86)\Gemalto\Access Client\v5
C:\Program Files\WIDCOMM\Bluetooth Software
C:\Program Files\WIDCOMM\Bluetooth Software\syswow64
c:\Qt\4.8.0\bin
C:\Program Files (x86)\PVCS\CB\nt
C:\Program Files (x86)\Hummingbird\Connectivity\13.00\Exceed\XDK\Motif21\G
cc\Lib
c:\Program Files (x86)\Hummingbird\Connectivity\13.00\Exceed\XDK\Gcc\Lib
C:\Program Files (x86)\Hummingbird\Connectivity\13.00\Exceed
C:\Program Files\Hummingbird\Connectivity\13.00\Exceed
c:\Qt\4.8.0\lib
c:\MinGW\bin
c:\cygwin\bin
C:\Perl\bin
C:\Perl\site\bin
Licensee....................Scott Merrit
License ID..................1547259
Product license.............FullFramework Edition
Expiry Date.................2010-03-20Configuration:
minimal-config
small-config
medium-config
large-config
full-config
build_all
debug
Qt Configuration:
release
debug
zlib
png
accessibility
qt3support
opengl
s60
ipv6
script
scripttools
xmlpatterns
multimedia
audio-backend
declarative
native-gestures
svg
minimal-config
small-config
medium-config
large-config
full-configQMAKESPEC...................win32-g++-4.6 (detected)
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..............yes
Declarative support.........yes
Declarative debugging.......yes
QtScript support............yes
QtScriptTools support.......yes
Graphics System.............raster
Qt3 compatibility...........yes
DirectWrite support.........noThird Party Libraries:
ZLIB support............qt
GIF support.............plugin
TIFF support............plugin
JPEG support............plugin
PNG support.............yes
MNG support.............plugin
FreeType support........noStyles:
Windows.................yes
Windows XP..............no
Windows Vista...........no
Plastique...............yes
Cleanlooks..............yes
Motif...................yes
CDE.....................yes
Windows CE..............no
Windows Mobile..........no
S60.....................noSql Drivers:
ODBC....................no
MySQL...................no
OCI.....................no
PostgreSQL..............no
TDS.....................no
DB2.....................no
SQLite..................plugin (qt)
SQLite2.................no
InterBase...............noSources are in..............C:\Qt\4.8.0
Build is done in............C:\Qt\4.8.0
Install prefix..............C:\Qt\4.8.0
Headers installed to........C:/Qt/4.8.0/include
Libraries installed to......C:/Qt/4.8.0/lib
Plugins installed to........C:/Qt/4.8.0/plugins
Imports installed to........C:/Qt/4.8.0/imports
Binaries installed to.......C:/Qt/4.8.0/bin
Docs installed to...........C:/Qt/4.8.0/doc
Data installed to...........C:/Qt/4.8.0
Translations installed to...C:/Qt/4.8.0/translations
Examples installed to.......C:/Qt/4.8.0/examples
Demos installed to..........C:/Qt/4.8.0/demosRunning syncqt...
Creating qmake...
mingw32-make: *** No rule to make target 'C:Qt4.8.0/qmake/project.cpp', needed by 'project.o'. Stop.
make (e=2): The system cannot find the file specified.
Makefile:115: recipe for target 'clean' failed
mingw32-make: [clean] Error 2 (ignored)
mingw32-make: *** No rule to make target 'C:Qt4.8.0/qmake/project.cpp', needed by 'project.o'. Stop.
Building qmake failed, return code 2c:\Qt\4.8.0>
-
I have a sneaking suspicion that this is not the configure scripts fault, but something to do with your version of mingw32-make.
cd into the qmake directory, and open up "Makefile" in a text editor and then check to see if the backslashes are missing for BUILD_PATH and SOURCE_PATH (The first few lines).
Configure generates that file, so it should pin down the problem to either configure (if the backslashes are missing), or the next tool down the chain, i.e. mingw32-make.
Edit:
Just for reference I'm using 3.82.90 on my Windows 7 box and it's working fine. (run mingw32-make and see if maybe your running an old version?)
-
Thanks. You are right. There is a recent patch to mingw32-make version 3.82.90. I upgraded to that, and it is now working.