Building qmake failed
-
I have spent hours coding a windows app. When compiling the release in Qt creator all goes well. When I try to run the app from windows. It gives me an error about mingwwm10.dll. I have read about static building Qt. So i opened a cmd and typed
configure -static
it gives me the following errors:c:Qt2010.05qt>configure -static
This is the Qt for Windows Open Source Edition.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 foundEnvironment:
INCLUDE=
Unset
LIB=
Unset
PATH=
C:Program FilesCommon FilesMicrosoft SharedWindows Live
C:Program FilesPC Connectivity Solution
C:Windowssystem32
C:Windows
C:WindowsSystem32Wbem
C:WindowsSystem32WindowsPowerShellv1.0
C:Program FilesWindows Imaging
C:Program FilesCommon FilesSymbiantools
C:strawberrycbin
C:strawberryperlsitebin
C:strawberryperlbin
C:Program FilesCSL Arm Toolchainbin
C:Program FilesUniversal Extractor
C:Program FilesUniversal Extractorbin
c:Program FilesMicrosoft SQL Server90Toolsbinn
C:Qt2010.05qtbin
C:MinGWbin
C:Program FilesCommon FilesMicrosoft SharedWindows LiveQMAKESPEC...................win32-g++ (env)
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
QtScript support............yes
QtScriptTools support.......yes
Graphics System.............raster
Qt3 compatibility...........yesSources are in..............C:Qt2010.05qt
Build is done in............C:Qt2010.05qt
Install prefix..............C:Qt2010.05qt
Headers installed to........C:/Qt/2010.05/qt/include
Libraries installed to......C:/Qt/2010.05/qt/lib
Plugins installed to........C:/Qt/2010.05/qt/plugins
Imports installed to........C:/Qt/2010.05/qt/imports
Binaries installed to.......C:/Qt/2010.05/qt/bin
Docs installed to...........C:/Qt/2010.05/qt/doc
Data installed to...........C:/Qt/2010.05/qt
Translations installed to...C:/Qt/2010.05/qt/translations
Examples installed to.......C:/Qt/2010.05/qt/examples
Demos installed to..........C:/Qt/2010.05/qt/demosWARNING: Using static linking will disable the use of plugins.
Make sure you compile ALL needed modules into the library.
Running syncqt...
Creating qmake...
g++ -c -oproject.o -O -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Ige
nerators/mac -Igenerators/symbian -IC:Qt2010.05qt/include -IC:Qt2010.05qt/
include/QtCore -IC:Qt2010.05qt/include -IC:Qt2010.05qt/include/QtCore -IC:
Qt2010.05qt/src/corelib/global -IC:Qt2010.05qt/src/corelib/xml -IC:Qt201
0.05qt/mkspecs/win32-g++ -IC:Qt2010.05qt/tools/shared -DQT_NO_TEXTCODEC -DQT
NO_UNICODETABLES -DQT_LITE_COMPONENT -DQT_NO_PCRE -DQT_NODLL -DQT_NO_STL -DQT_N
O_COMPRESS -DUNICODE -DHAVE_QCONFIG_CPP -DQT_BUILD_QMAKE -DQT_NO_THREAD -DQT_NO
QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM -DQT_BOOTSTRAPPED -DQMAKE_OPENSO
URCE_EDITION project.cpp
To use Symbian OS tools without specifying a device name, a default
device must be set using the devices -setdefault command.
mingw32-make: *** [project.o] Error 255
del project.o main.o makefile.o unixmake.o unixmake2.o mingw_make.o option.o win
makefile.o projectgenerator.o property.o meta.o makefiledeps.o metamakefile.o xm
loutput.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 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 qfsfileengine.o qfsfileengine_iterator.o qfsfileengine_wi
n.o qfsfileengine_iterator_win.o qglobal.o qhash.o qiodevice.o qlibraryinfo.o ql
ist.o qlinkedlist.o qlocale.o qmalloc.o qmap.o qregexp.o qtextcodec.o qutfcodec.
o qstring.o qstringlist.o qtextstream.o quuid.o qvector.o qurl.o qsettings.o qse
ttings_win.o qvariant.o qmetatype.o qxmlstream.o qxmlutils.o qnumeric.o
Could Not Find C:Qt2010.05qtqmakeproject.o
g++ -c -oproject.o -O -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Ige
nerators/mac -Igenerators/symbian -IC:Qt2010.05qt/include -IC:Qt2010.05qt/
include/QtCore -IC:Qt2010.05qt/include -IC:Qt2010.05qt/include/QtCore -IC:
Qt2010.05qt/src/corelib/global -IC:Qt2010.05qt/src/corelib/xml -IC:Qt201
0.05qt/mkspecs/win32-g++ -IC:Qt2010.05qt/tools/shared -DQT_NO_TEXTCODEC -DQT
NO_UNICODETABLES -DQT_LITE_COMPONENT -DQT_NO_PCRE -DQT_NODLL -DQT_NO_STL -DQT_N
O_COMPRESS -DUNICODE -DHAVE_QCONFIG_CPP -DQT_BUILD_QMAKE -DQT_NO_THREAD -DQT_NO
QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM -DQT_BOOTSTRAPPED -DQMAKE_OPENSO
URCE_EDITION project.cpp
To use Symbian OS tools without specifying a device name, a default
device must be set using the devices -setdefault command.
mingw32-make: *** [project.o] Error 255
Building qmake failed, return code 2I have installed Windows SDK and DirectX SDK.
In the devices.xml file there are no devices listed.Please help!!!
-
This looks to me like somehow your Symbian development environment got mixed into the Windows one. The error message states that quite clearly.
Try cleaning up your environment, removing all references to the symbian development environment from PATH, etc. Alternatively you might want to try configuring/building in a mingw/VS command prompt. Those should be properly set up already.
-
Spot on Tobias... i had a symbian reference in my System environment. I removed it and all works like a charm.
Thanks alot!!!
-
Hi,
if you want to build qt statically for windows, "here":http://developer.qt.nokia.com/wiki/How_to_build_a_static_Qt_version_for_Windows_with_gcc is a description how to do it