Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. What does this error mean?
QtWS25 Last Chance

What does this error mean?

Scheduled Pinned Locked Moved Installation and Deployment
11 Posts 5 Posters 5.4k Views
  • 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.
  • I Offline
    I Offline
    IamInu
    wrote on last edited by
    #1

    Hello everybody, can anyone help with this error: (it is the first part of the error message!)

    20:49:53: Running steps for project analogclock...
    20:49:53: Starting: "/Users/ines/Qt5.0.1/5.0.1/clang_64/bin/qmake" /Users/ines/Qt5.0.1/5.0.1/clang_64/examples/gui/analogclock/analogclock.pro -r -spec macx-g++40 CONFIG+=debug CONFIG+=x86_64 CONFIG+=declarative_debug CONFIG+=qml_debug
    20:49:54: The process "/Users/ines/Qt5.0.1/5.0.1/clang_64/bin/qmake" exited normally.
    20:49:54: Starting: "/usr/bin/make" -w
    make: Entering directory `/Users/ines/Qt5.0.1/5.0.1/clang_64/examples/gui/analogclock-build-Desktop_Qt_5_0_1_clang_64bit-Debug'
    g++-4.0 -c -pipe -mmacosx-version-min=10.6 -g -gdwarf-2 -Wall -W -fPIE -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I../../../mkspecs/macx-g++40 -I../analogclock -I../rasterwindow -I../../../include -I../../../include/QtGui -I../../../lib/QtGui.framework/Versions/5/Headers -I../../../include/QtCore -I../../../lib/QtCore.framework/Versions/5/Headers -I. -I/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers -I/System/Library/Frameworks/AGL.framework/Headers -I. -o rasterwindow.o ../rasterwindow/rasterwindow.cpp
    ../../../include/QtCore/qgenericatomic.h:96: warning: 'gnu_inline' attribute directive ignored
    ../../../include/QtCore/qgenericatomic.h:102: warning: 'gnu_inline' attribute directive ignored
    ../../../include/QtCore/qgenericatomic.h:108: warning: 'gnu_inline' attribute directive ignored
    ../../../include/QtCore/qgenericatomic.h:116: warning: 'gnu_inline' attribute directive ignored
    ../../../include/QtCore/qgenericatomic.h:127: warning: 'gnu_inline' attribute directive ignored
    ../../../include/QtCore/qgenericatomic.h:133: warning: 'gnu_inline' attribute directive ignored
    ../../../include/QtCore/qgenericatomic.h:148: warning: 'gnu_inline' attribute directive ignored
    ../../../include/QtCore/qgenericatomic.h:156: warning: 'gnu_inline' attribute directive ignored
    ../../../include/QtCore/qgenericatomic.h:163: warning: 'gnu_inline' attribute directive ignored
    ../../../include/QtCore/qgenericatomic.h:173: warning: 'gnu_inline' attribute directive ignored
    ../../../include/QtCore/qgenericatomic.h:184: warning: 'gnu_inline' attribute directive ignored
    ../../../include/QtCore/qgenericatomic.h:192: warning: 'gnu_inline' attribute directive ignored
    ../../../include/QtCore/qgenericatomic.h:199: warning: 'gnu_inline' attribute directive ignored
    ../../../include/QtCore/qgenericatomic.h:208: warning: 'gnu_inline' attribute directive ignored
    ../../../include/QtCore/qgenericatomic.h:219: warning: 'gnu_inline' attribute directive ignored
    ../../../include/QtCore/qgenericatomic.h:227: warning: 'gnu_inline' attribute directive ignored
    ../../../include/QtCore/qgenericatomic.h:234: warning: 'gnu_inline' attribute directive ignored
    ../../../include/QtCore/qstring.h: In member function 'QString QString::arg(int, int, int, QChar) const':
    ../../../include/QtCore/qstring.h:774: warning: ignoring return value of 'QString QString::arg(qlonglong, int, int, QChar) const', declared with attribute warn_unused_result
    ../../../include/QtCore/qstring.h: In member function 'QString QString::arg(uint, int, int, QChar) const':
    ../../../include/QtCore/qstring.h:776: warning: ignoring return value of 'QString QString::arg(qulonglong, int, int, QChar) const', declared with attribute warn_unused_result
    ../../../include/QtCore/qstring.h: In member function 'QString QString::arg(long int, int, int, QChar) const':
    ../../../include/QtCore/qstring.h:778: warning: ignoring return value of 'QString QString::arg(qlonglong, int, int, QChar) const', declared with attribute warn_unused_result
    ../../../include/QtCore/qstring.h: In member function 'QString QString::arg(ulong, int, int, QChar) const':
    ../../../include/QtCore/qstring.h:780: warning: ignoring return value of 'QString QString::arg(qulonglong, int, int, QChar) const', declared with attribute warn_unused_result
    ../../../include/QtCore/qstring.h: In member function 'QString QString::arg(short int, int, int, QChar) const':
    ../../../include/QtCore/qstring.h:782: warning: ignoring return value of 'QString QString::arg(qlonglong, int, int, QChar) const', declared with attribute warn_unused_result
    ../../../include/QtCore/qstring.h: In member function 'QString QString::arg(ushort, int, int, QChar) const':
    ../../../include/QtCore/qstring.h:784: warning: ignoring return value of 'QString QString::arg(qulonglong, int, int, QChar) const', declared with attribute warn_unused_result
    ../../../include/QtCore/qstring.h: In member function 'QByteArray& QByteArray::append(const QString&)':

    1 Reply Last reply
    0
    • B Offline
      B Offline
      bootchk
      wrote on last edited by
      #2

      Please be more specific.

      I skimmed your post and do not see an error, only warnings (there is a difference.) I don't think most readers want to read 40 lines. Instead, please tell us exactly what error message you are concerned about.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        amccarthy
        wrote on last edited by
        #3

        You are using the QString::arg() function which does not modify the original string but returns a new modified string. You are not using the return value, hence your code is essentially a no-op.

        1 Reply Last reply
        0
        • I Offline
          I Offline
          IamInu
          wrote on last edited by
          #4

          Hello, Thanks for replying. My previous message was the output I got when trying to compile an example of Qt. I got a very long warning/error message and the program did not work.

          I tried a simpler code:
          @
          #include <QApplication>
          #include <QPushButton>

          int main(int argc, char *argv[])
          {
          QApplication app(argc, argv);

          QPushButton bouton("Hello World!");
          bouton.show();
          
          return app.exec&#40;&#41;;
          

          }
          @

          It does not work and the error message is:
          @
          ../test/main.cpp:1:24: error: QApplication: No such file or directory
          ../test/main.cpp:2:23: error: QPushButton: No such file or directory
          ../test/main.cpp: In function 'int main(int, char**)':
          ../test/main.cpp:6: error: 'QApplication' was not declared in this scope
          ../test/main.cpp:6: error: expected ;' before 'app' ../test/main.cpp:8: error: 'QPushButton' was not declared in this scope ../test/main.cpp:8: error: expected ;' before 'bouton'
          ../test/main.cpp:9: error: 'bouton' was not declared in this scope
          ../test/main.cpp:11: error: 'app' was not declared in this scope
          ../test/main.cpp: At global scope:
          ../test/main.cpp:4: warning: unused parameter 'argc'
          ../test/main.cpp:4: warning: unused parameter 'argv'
          make: *** [main.o] Error 1
          @
          Any hints? Thanks a lot :)

          [Edit: Added @ tags for formatting -- mlong]

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Hi,

            since you'r using Qt5 add QT += qtwidgets to you pro file

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • G Offline
              G Offline
              guziemic
              wrote on last edited by
              #6

              Hi,

              Looks like all Qt objects are missing (compiler does not see includes files). Can you post .pro file?

              BR,

              1 Reply Last reply
              0
              • I Offline
                I Offline
                IamInu
                wrote on last edited by
                #7

                Hello, this is all what was written automatically in the .pro file:

                SOURCES +=
                main.cpp

                1 Reply Last reply
                0
                • I Offline
                  I Offline
                  IamInu
                  wrote on last edited by
                  #8

                  @SGaist: I added QT += qtwidgets and here is the error message:

                  Project ERROR: Unknown module(s) in QT: qtwidgets
                  make: *** [Makefile] Error 3
                  make: Leaving directory `/Users/ines/test-build-Desktop_Qt_5_0_1_clang_64bit-Debug'
                  10:13:10: The process "/usr/bin/make" exited with code 2.
                  Error while building/deploying project test (kit: Desktop Qt 5.0.1 clang 64bit)
                  When executing step 'Make'

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    Your pro file does not contain the minimal stuff to build a Qt project. Since your trying things, delete that project and create a new Qt Gui Application with QtCreator. This will give you a starting point to test code

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply
                    0
                    • I Offline
                      I Offline
                      IamInu
                      wrote on last edited by
                      #10

                      I created a Qt Gui Application but again I have this huge list of warnings as output and then this

                      10:45:48: The process "/usr/bin/make" exited with code 2.
                      Error while building/deploying project test (kit: Desktop Qt 5.0.1 clang 64bit)
                      When executing step 'Make'

                      1 Reply Last reply
                      0
                      • I Offline
                        I Offline
                        IamInu
                        wrote on last edited by
                        #11

                        A question, When I compile an example of Qt creator, it should normally work? I tried out different example and each time I have this huge list of warning and errors ...

                        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