Fresh Nokia Qt SDK install - won't run simulator or package anything
-
Thanks for the answer!
The problem is that it fails no matter what I choose as target.
Even the Qt Simulator fails to run and 'Build issues' tab shows the following:
""""
:: error: [build/release/moc_wrtwidgetwindow.cpp] Error 1
""""while 'Compile output' gives:
""""
Running build steps for project QtWebKitStub...
Configuration unchanged, skipping qmake step.
Starting: "C:/NokiaQtSDK/mingw/bin/mingw32-make.exe" -w
mingw32-make: Entering directoryC:/QtProjects/QtWebKitStub-build-simulator' moc ..\QtWebKitStub\src\wrtwidgetwindow.h mingw32-make: Leaving directory
C:/QtProjects/QtWebKitStub-build-simulator'
'C:\NokiaQtSDK\Simulator\Qt\mingw\binmoc.exe' is not recognized as an internal or external command,
operable program or batch file.
mingw32-make: *** [build/release/moc_wrtwidgetwindow.cpp] Error 1
The process "C:/NokiaQtSDK/mingw/bin/mingw32-make.exe" exited with code %2.
Error while building project QtWebKitStub (target: Qt Simulator)
When executing build step 'Make'""""
Tried uninstalling and reinstalling the SDK but nothing changes. I'm running Vista 64bit while a colleague on his workstation with Windows 7 is having no problems at all. Could this be Vista acting up?
-
I am facing the same problem for past few months. can not compile Hello world program due to "QApplication/QLabel - No such file or dir" and "mingw32-make.exe" exited with code %2"
Interesting all the *example Qt programs 4.7 able to build & run.It is very difficult to find -where is the problem? Though one reason may the PATH setting. In the tools, option, Qt Path seems ok. (The message say -path is found except for Mingw).My path for Mingw =
e:\qt\2010.05\mingw\bin\mingw32-g++.exe. Is it ok ?
using Qt4.7 (Windows) and Qt creator 2.0.1Earlier, i can see the path has GREEN Tick mark- now CAN NOT see.and i have done, configure -platform Mingw-g++ and mingw32-make. Or am i missing some basic ??
Posted in QTforum as well - no reply.Thanks for your time and effort.
-Chandra shekar -
Have you included proper header and library files in your project?
-
Earlier version of Qt creator has options to include the INCLUDE files..in 2.0.1 i can see only for QMake. Why ?
Even the mouse over the header files says that -"No such file or Directory".Have you included proper header and library files in your project?
Now i manually include the INCLUDEPATH
on Hellowolrd.PRO file.Still can not Solve the Problem. Is i have to change anything in QMAKE/MAKE file.Any comments Truely helpful. I can not solve this for 2 months. :-(Here the file like
@
#-------------------------------------------------
QT += core
QT -= gui
TARGET = Helloworld
CONFIG += qt
TEMPLATE = app
INCLUDEPATH += E:\Qt\2010.05\qt\include\QtSOURCES += main.cpp
#-------------------------------
@[EDIT: code formatting / Volker]
-
for the hello world example what is the console output error shown.
-
Here is the compile output.
*.\Helloworld\main.cpp:1:30: error: QApplication/QLabel: No such file or directory
*..\Helloworld\main.cpp:2:17: error: QLabel: No such file or directory
..\Helloworld\main.cpp: In function 'int main(int, char**)':
..\Helloworld\main.cpp:8: error: 'QApplication' was not declared in this scope
..\Helloworld\main.cpp:8: error: expected ';' before 'app'
..\Helloworld\main.cpp:9: error: 'QLabel' was not declared in this scope
..\Helloworld\main.cpp:9: error: 'label' was not declared in this scope
..\Helloworld\main.cpp:9: error: expected type-specifier before 'QLabel'
..\Helloworld\main.cpp:9: error: expected ';' before 'QLabel'
..\Helloworld\main.cpp:13: error: 'app' was not declared in this scope
mingw32-make[1]: *** [tmp/obj/release_shared/main.o] Error 1
mingw32-make: *** [release-all] Error 2
*The process "E:/Qt/2010.05/mingw/bin/mingw32-make.exe" exited with code %2.
Error while building project Helloworld (target: Desktop)
*When executing build step 'Make' -
Delete this line
@
QT -= gui
@from your .pro project file. This excludes the complete GUI stuff from your project!
And please put "@-Tags":http://developer.qt.nokia.com/wiki/ForumHelp#e3f82045ad0f480d3fb9e0ac2d58fb01 around your code or file snippets, it's much more easier to read then!
-
IT is working !!
Great.Heartfelt thanks to Volker and others.
@Tags - not working correctly on Opera 11. I will check again.-Chandra
-
[quote author="shekar_brother" date="1294501253"]IT is working !!
Great.Heartfelt thanks to Volker and others.
at-Tags - not working correctly on Opera 11. I will check again.-Chandra [/quote]
Just put a single @-char before your lines of code an one after it. The rest is some magic of the forum and wiki software. The "Forum Help":http://developer.qt.nokia.com/wiki/ForumHelp and "Textile Syntax":http://developer.qt.nokia.com/wiki/TextileSyntax articles in the wiki have some more hints.