Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. [ Qt 5.6 ] Examples compilation error 'QCoreApplication'
QtWS25 Last Chance

[ Qt 5.6 ] Examples compilation error 'QCoreApplication'

Scheduled Pinned Locked Moved Solved Mobile and Embedded
qt 5.6example error qqcoreapplicatio
5 Posts 2 Posters 3.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.
  • MarekStojeckiM Offline
    MarekStojeckiM Offline
    MarekStojecki
    wrote on last edited by
    #1

    Hello,
    While trying compile qt 5.6 examples for embedded platform I got this error message:

    mainwindow.cpp:180:14: error: 'QCoreApplication' has not been declared
    if (!QCoreApplication::arguments().contains(QStringLi teral("--no_render_alpha")))

    My configuration looks as follows :

    ./configure -prefix /home/marek/TDIR \
    -extprefix /home/marek/INSTDIR \
    -hostprefix /home/marek/TOOLSDIR \
    -release \
    -qpa \
    -eglfs \
    -opengl es2 \
    -no-wayland \
    -no-accessibility \
    -device linux-imx53qsb-g++ -device-option CROSS_COMPILE=arm-guf-linux-gnueabi- -sysroot /projects/Amuse/guf.sdk/sysroots/armv7a-vfp-neon-guf-linux-gnueabi \
    -opensource -confirm-license \
    -make libs \
    -skip qtwebengine \
    -make examples \
    -no-cups -no-dbus -no-glib \
    -no-pch -no-nis -no-accessibility -no-gtkstyle \
    -no-xcb -v
    

    Error context and configure output you can find in attachments http://s000.tinyupload.com/?file_id=16192592158108091085
    Could please give me any hint what is missing ?

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

      Hi and welcome to devnet,

      You should rather cross-compile/install Qt without the examples and only after that build the examples that interests you.

      That will make thing simpler and reduce compile time.

      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
      • MarekStojeckiM Offline
        MarekStojeckiM Offline
        MarekStojecki
        wrote on last edited by
        #3

        Hello,
        Thank you for your answer.
        I did as you suggested and managed to compile an example that I previously made for QT 5.3.1.
        When I try to run it on embedded platform I get a following message :

         qrc:/main.qml:2:1: module "QtQuick.Controls" is not installed
        

        I guess the reason of that is a missing lib: libqtquickcontrolsplugin.so that should be found inside qml/QtQuick/Controls...

        This is what I see while compiling Qtquickcontrols

        marek@marek-VirtualBox:~/Downloads/qt-everywhere-opensource-src-5.6.0/qtquickcontrols$ make -j4 -k
        cd src/ && ( test -e Makefile || /home/marek/TOOLSDIR/bin/qmake /home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtquickcontrols/src/src.pro -o Makefile ) && make -f Makefile 
        make[1]: Entering directory `/home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtquickcontrols/src'
        cd controls/ && ( test -e Makefile || /home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtbase/bin/qmake /home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtquickcontrols/src/controls/controls.pro -o Makefile ) && make -f Makefile 
        cd layouts/ && ( test -e Makefile || /home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtbase/bin/qmake /home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtquickcontrols/src/layouts/layouts.pro -o Makefile ) && make -f Makefile 
        cd extras/ && ( test -e Makefile || /home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtbase/bin/qmake /home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtquickcontrols/src/extras/extras.pro -o Makefile ) && make -f Makefile 
        cd extras/Styles/ && ( test -e Makefile.styles || /home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtbase/bin/qmake /home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtquickcontrols/src/extras/Styles/styles.pro -o Makefile.styles ) && make -f Makefile.styles 
        make[2]: Entering directory `/home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtquickcontrols/src/controls'
        Some of the required modules (contains(QT_CONFIG, accessibility)) are not available.
        Skipped.
        make[2]: Leaving directory `/home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtquickcontrols/src/controls'
        cd dialogs/ && ( test -e Makefile || /home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtbase/bin/qmake /home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtquickcontrols/src/dialogs/dialogs.pro -o Makefile ) && make -f Makefile 
        make[2]: Entering directory `/home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtquickcontrols/src/extras'
        Some of the required modules (contains(QT_CONFIG, accessibility)) are not available.
        make[2]: Entering directory `/home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtquickcontrols/src/extras/Styles'
        cd Flat/ && ( test -e Makefile || /home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtbase/bin/qmake /home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtquickcontrols/src/extras/Styles/Flat/Flat.pro -o Makefile ) && make -f Makefile 
        Skipped.
        make[2]: Leaving directory `/home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtquickcontrols/src/extras'
        cd dialogs/Private/ && ( test -e Makefile || /home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtbase/bin/qmake /home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtquickcontrols/src/dialogs/Private/Private.pro -o Makefile ) && make -f Makefile 
        make[2]: Entering directory `/home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtquickcontrols/src/layouts'
        make[2]: Nothing to be done for `first'.
        make[2]: Leaving directory `/home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtquickcontrols/src/layouts'
        cd widgets/ && ( test -e Makefile || /home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtbase/bin/qmake /home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtquickcontrols/src/widgets/widgets.pro -o Makefile ) && make -f Makefile 
        make[2]: Entering directory `/home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtquickcontrols/src/dialogs'
        Some of the required modules (contains(QT_CONFIG, accessibility)) are not available.
        Skipped.
        make[2]: Leaving directory `/home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtquickcontrols/src/dialogs'
        make[3]: Entering directory `/home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtquickcontrols/src/extras/Styles/Flat'
        make[3]: Nothing to be done for `first'.
        make[3]: Leaving directory `/home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtquickcontrols/src/extras/Styles/Flat'
        make[2]: Leaving directory `/home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtquickcontrols/src/extras/Styles'
        make[2]: Entering directory `/home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtquickcontrols/src/dialogs/Private'
        make[2]: Nothing to be done for `first'.
        make[2]: Leaving directory `/home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtquickcontrols/src/dialogs/Private'
        make[2]: Entering directory `/home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtquickcontrols/src/widgets'
        Some of the required modules (contains(QT_CONFIG, accessibility)) are not available.
        Skipped.
        make[2]: Leaving directory `/home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtquickcontrols/src/widgets'
        make[1]: Leaving directory `/home/marek/Downloads/qt-everywhere-opensource-src-5.6.0/qtquickcontrols/src'
        

        Could you please explain me where I can find a name of not available modules ? :

        Some of the required modules (contains(QT_CONFIG, accessibility)) are not available.
        

        Many thanks,
        Marek

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

          You disabled accessibility when calling configure

          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
          • MarekStojeckiM Offline
            MarekStojeckiM Offline
            MarekStojecki
            wrote on last edited by
            #5

            I didn't notice it ... silly mistake.
            Many thanks for the hint and best regards,
            Marek

            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