Questions about Compile Erros
-
Here is my Compile Output:
@Running build steps for project Main...
Configuration unchanged, skipping qmake step.
Starting: "/usr/bin/make" -w
make: Entering directory/home/kp/Desktop/Main-build-desktop' /usr/bin/qmake-qt4 -spec /usr/share/qt4/mkspecs/linux-g++ CONFIG+=debug -o Makefile ../DU/Main/Main.pro make: Leaving directory
/home/kp/Desktop/Main-build-desktop'
make: Entering directory/home/kp/Desktop/Main-build-desktop' g++ -c -pipe -g -Wall -W -D_REENTRANT -DNETWORKACCESS -DQT_DECLARATIVE_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I../DU/Main -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtDeclarative -I/usr/include/qt4 -I../DU/Main/qmlapplicationviewer -I. -I../DU/Main -I. -o main.o ../DU/Main/main.cpp ../DU/Main/main.cpp: In function ‘int QtMobility::main(int, char**)’: ../DU/Main/main.cpp:21: error: ‘ScreenOrientationAuto’ is not a member of ‘QmlApplicationViewer’ ../DU/Main/main.cpp:23: error: ‘class QmlApplicationViewer’ has no member named ‘showExpanded’ make: Leaving directory
/home/kp/Desktop/Main-build-desktop'
make: *** [main.o] Error 1
The process "/usr/bin/make" exited with code %2.
Error while building project Main (target: Desktop)
When executing build step 'Make'@Two questions:
- How can I change the build directory? I moved the Project folder and it still uses the old location.
- What should I be suspicious of with the 3 errors that occurred. They just occurred on code that has been there before and not thrown errors.
-
- You can change it in Project settings. Or you simply can delete .pro.user file and load this project into QtCreator again (but all made changes in Project mode will be lost).
- Looks like you are using another version of QmlApplicationViewer, but not sure.
-
Thanks, got the first issue solved but how do I check into the version I have of QmlApplicationViewer? Any suggestions on how to tackle this?
-
kyleplattner, maybe you can upload your code somewhere? It will be easier for others to help you with code in hands.
-
I should have done this to begin, I will upload it when I get into the office tomorrow. Thanks,
Kyle
-
You are using a different (OLDER) version of QML Viewer wrapper as Denis suggested.
-
main.cpp:21: error: ‘ScreenOrientationAuto’ is not a member of ‘QmlApplicationViewer’
This used to be 'Auto'. Change 'ScreenOrientationAuto' to 'Auto' -
main.cpp:23: error: ‘class QmlApplicationViewer’ has no member named ‘showExpanded’
This is a bit trickier because Expanded does something that used to require a define. I'm assuming you're just using a desktop platform? If so, change 'showExpanded' to 'show'.
-
-
I downloaded 4.7.1 very recently, shouldn't it have the most recent?
-
Nevermind, I was able to clear that up but it only revealed more issues.
-
When I say older, I'm referring to the version of QtCreator.
In the latest QtCreator's 'Auto' was changed to 'ScreenOrientationAuto' in the wrapper code, for example.
The latest is QtCreator 2.1 RC.