December 30, 2010

kyleplattner kyleplattner
Lab Rat
242 posts

Questions about Compile Erros

 

Here is my Compile Output:

  1. Running build steps for project Main...
  2. Configuration unchanged, skipping qmake step.
  3. Starting: "/usr/bin/make" -w
  4. make: Entering directory `/home/kp/Desktop/Main-build-desktop'
  5. /usr/bin/qmake-qt4 -spec /usr/share/qt4/mkspecs/linux-g++ CONFIG+=debug -o Makefile ../DU/Main/Main.pro
  6. make: Leaving directory `/home/kp/Desktop/Main-build-desktop'
  7. make: Entering directory `/home/kp/Desktop/Main-build-desktop'
  8. 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
  9. ../DU/Main/main.cpp: In function ‘int QtMobility::main(int, char**)’:
  10. ../DU/Main/main.cpp:21: error: ‘ScreenOrientationAuto’ is not a member of ‘QmlApplicationViewer’
  11. ../DU/Main/main.cpp:23: error: ‘class QmlApplicationViewer’ has no member named ‘showExpanded’
  12. make: Leaving directory `/home/kp/Desktop/Main-build-desktop'
  13. make: *** [main.o] Error 1
  14. The process "/usr/bin/make" exited with code %2.
  15. Error while building project Main (target: Desktop)
  16. 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

December 30, 2010

Denis Kormalev Denis Kormalev
Lab Rat
1654 posts

1. 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).
2. Looks like you are using another version of QmlApplicationViewer, but not sure.

December 30, 2010

kyleplattner kyleplattner
Lab Rat
242 posts

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?

December 31, 2010

Denis Kormalev Denis Kormalev
Lab Rat
1654 posts

kyleplattner, maybe you can upload your code somewhere? It will be easier for others to help you with code in hands.

December 31, 2010

kyleplattner kyleplattner
Lab Rat
242 posts

I should have done this to begin, I will upload it when I get into the office tomorrow. Thanks,

Kyle

December 31, 2010

xsacha xsacha
Lab Rat
517 posts

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’.

 Signature 

- Sacha

December 31, 2010

kyleplattner kyleplattner
Lab Rat
242 posts

I downloaded 4.7.1 very recently, shouldn’t it have the most recent?

December 31, 2010

kyleplattner kyleplattner
Lab Rat
242 posts

Nevermind, I was able to clear that up but it only revealed more issues.

December 31, 2010

xsacha xsacha
Lab Rat
517 posts

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.

 Signature 

- Sacha

 
  ‹‹ need help with button      Map (QDeclarativeGraphicsGeoMap) Can’t Append Map Objects ››

You must log in to post a reply. Not a member yet? Register here!