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:
1. How can I change the build directory? I moved the Project folder and it still uses the old location.
2. 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.
8 replies
You are using a different (OLDER) version of QML Viewer wrapper as Denis suggested.
1. main.cpp:21: error: ‘ScreenOrientationAuto’ is not a member of ‘QmlApplicationViewer’
This used to be ‘Auto’. Change ‘ScreenOrientationAuto’ to ‘Auto’
2. 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’.
You must log in to post a reply. Not a member yet? Register here!




