Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Qt Contols:Cannot build it in Qt 5.0.1 (Ubuntu 12.04.2 LTS)

    QML and Qt Quick
    3
    6
    1712
    Loading More Posts
    • 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.
    • S
      Simplevolk last edited by

      Hello!
      I try to build qt components (as i understand now it is Qt Controls) for Ubuntu+Qt 5.0.1 (build from source).
      Should i open issue on bug tracker?

      Error:
      cd src/ && ( test -f Makefile || /usr/bin/qmake5 /../../../../qtquickcontrols/src/src.pro -o Makefile ) && make -f Makefile
      make[1]: Entering directory /../../../qmlcomponents/qtquickcontrols/src' cd controls/ && ( test -f Makefile || /usr/bin/qmake5 /../../../qmlcomponents/qtquickcontrols/src/controls/controls.pro -o Makefile ) && make -f Makefile make[2]: Entering directory /../../../../qtquickcontrols/src/controls'
      g++ -c -pipe -O2 -std=c++0x -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -D_REENTRANT -fPIC -DQT_NO_LIBUDEV -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_PLUGIN -DQT_QUICK_LIB -DQT_QML_LIB -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/../../Qt5.0.1/5.0.1/gcc/mkspecs/linux-g++ -I. -I/../../Qt5.0.1/5.0.1/gcc/include -I/../../Qt5.0.1/5.0.1/gcc/include/QtQuick -I/../../Qt5.0.1/5.0.1/gcc/include/QtQml -I/../../Qt5.0.1/5.0.1/gcc/include/QtWidgets -I/../../Qt5.0.1/5.0.1/gcc/include/QtNetwork -I/../../Qt5.0.1/5.0.1/gcc/include/QtGui -I/../../Qt5.0.1/5.0.1/gcc/include/QtGui/5.0.1 -I/../../Qt5.0.1/5.0.1/gcc/include/QtGui/5.0.1/QtGui -I/../../Qt5.0.1/5.0.1/gcc/include/QtCore -I/../../Qt5.0.1/5.0.1/gcc/include/QtCore/5.0.1 -I/../../Qt5.0.1/5.0.1/gcc/include/QtCore/5.0.1/QtCore -I.moc/release-shared -o .obj/release-shared/qtmenu.o qtmenu.cpp
      qtmenu.cpp: In member function ‘void QtMenu::setMinimumWidth(int)’:
      qtmenu.cpp:247:25: error: ‘class QPlatformMenu’ has no member named ‘setMinimumWidth’
      qtmenu.cpp: In member function ‘void QtMenu::setFont(const QFont&)’:
      qtmenu.cpp:253:25: error: ‘class QPlatformMenu’ has no member named ‘setFont’
      qtmenu.cpp: In member function ‘void QtMenu::__popup(qreal, qreal, int)’:
      qtmenu.cpp:318:25: error: ‘class QPlatformMenu’ has no member named ‘showPopup’
      make[2]: *** [.obj/release-shared/qtmenu.o] Error 1
      make[2]: Leaving directory
      make[1]: *** [sub-controls-make_first] Error 2
      make[1]: Leaving directory
      make: *** [sub-src-make_first] Error 2

      1 Reply Last reply Reply Quote 0
      • sierdzio
        sierdzio Moderators last edited by

        Why not update to Qt 5.1?

        (Z(:^

        1 Reply Last reply Reply Quote 0
        • S
          Simplevolk last edited by

          It's solve my problem?

          1 Reply Last reply Reply Quote 0
          • sierdzio
            sierdzio Moderators last edited by

            It might, as Qt Quick Controls are an integral part of 5.1.

            (Z(:^

            1 Reply Last reply Reply Quote 0
            • J
              Jens last edited by

              Yes you have no choice as the repository depends on functions that were added only in 5.1.

              1 Reply Last reply Reply Quote 0
              • S
                Simplevolk last edited by

                Yes,it solved my problem.Thanks!

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post