Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Questions about Compile Erros
Forum Updated to NodeBB v4.3 + New Features

Questions about Compile Erros

Scheduled Pinned Locked Moved QML and Qt Quick
9 Posts 3 Posters 4.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kyleplattner
    wrote on last edited by
    #1

    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.
    1 Reply Last reply
    0
    • D Offline
      D Offline
      DenisKormalev
      wrote on last edited by
      #2
      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.
      1 Reply Last reply
      0
      • K Offline
        K Offline
        kyleplattner
        wrote on last edited by
        #3

        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?

        1 Reply Last reply
        0
        • D Offline
          D Offline
          DenisKormalev
          wrote on last edited by
          #4

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

          1 Reply Last reply
          0
          • K Offline
            K Offline
            kyleplattner
            wrote on last edited by
            #5

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

            Kyle

            1 Reply Last reply
            0
            • X Offline
              X Offline
              xsacha
              wrote on last edited by
              #6

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

              • Sacha
              1 Reply Last reply
              0
              • K Offline
                K Offline
                kyleplattner
                wrote on last edited by
                #7

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

                1 Reply Last reply
                0
                • K Offline
                  K Offline
                  kyleplattner
                  wrote on last edited by
                  #8

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

                  1 Reply Last reply
                  0
                  • X Offline
                    X Offline
                    xsacha
                    wrote on last edited by
                    #9

                    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.

                    • Sacha
                    1 Reply Last reply
                    0

                    • Login

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups
                    • Search
                    • Get Qt Extensions
                    • Unsolved