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



  • 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


  • Moderators

    Why not update to Qt 5.1?



  • It's solve my problem?


  • Moderators

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



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



  • Yes,it solved my problem.Thanks!


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.