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. Project ERROR: Unknown module(s) in QT: quick
Forum Updated to NodeBB v4.3 + New Features

Project ERROR: Unknown module(s) in QT: quick

Scheduled Pinned Locked Moved QML and Qt Quick
25 Posts 6 Posters 35.0k 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.
  • R Offline
    R Offline
    raghaw
    wrote on last edited by
    #14

    just for your information during configure i got these errors types

    make: *** [pulseaudio.o] Error 1

    compilation terminated.
    make: *** [opengldesktop.o] Error 1

    opengles2.cpp:45:25: fatal error: GLES2/gl2.h: No such file or directory
    #include <GLES2/gl2.h>
    ^
    compilation terminated.
    make: *** [opengles2.o] Error 1

    #include <ft2build.h>
    ^
    compilation terminated.

    libudev.cpp:42:21: fatal error: libudev.h: No such file or directory
    #include <libudev.h>
    ^
    compilation terminated.
    make: *** [libudev.o] Error 1
    libudev disabled.
    evdev auto-detection... ()
    /home/ubuntu/Raghaw/gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux/bin/arm-linux-gnueabihf-g++ -c -pipe -marm -mfpu=neon -mfloat-abi=hard -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o evdev.o evdev.cpp
    /home/ubuntu/Raghaw/gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux/bin/arm-linux-gnueabihf-g++ -Wl,-O1 -o evdev evdev.o
    evdev enabled.
    XLib auto-detection... ()
    /home/ubuntu/Raghaw/gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux/bin/arm-linux-gnueabihf-g++ -c -pipe -marm -mfpu=neon -mfloat-abi=hard -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o xlib.o xlib.cpp
    xlib.cpp:42:22: fatal error: X11/Xlib.h: No such file or directory
    #include <X11/Xlib.h>
    ^
    compilation terminated.
    make: *** [xlib.o] Error 1

    #include <xcb/xcb.h>
    ^
    compilation terminated.
    make: *** [xcb.o] Error 1
    xcb disabled.
    LinuxFB auto-detection... ()
    /home/ubuntu/Raghaw/gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux/bin/arm-linux-gnueabihf-g++ -c -pipe -marm -mfpu=neon -mfloat-abi=hard -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o linuxfb.o linuxfb.cpp
    /home/ubuntu/Raghaw/gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux/bin/arm-linux-gnueabihf-g++ -Wl,-O1 -o linuxfb linuxfb.o
    LinuxFB enabled.
    KMS auto-detection... ()
    Project ERROR: Package libudev not found
    make: *** No targets specified and no makefile found. Stop.

    openvg.cpp:48:23: fatal error: VG/openvg.h: No such file or directory
    #include <VG/openvg.h>
    ^
    compilation terminated.
    make: *** [openvg.o] Error 1
    OpenVG disabled.
    OpenVG auto-detection... ()
    /home/ubuntu/Raghaw/gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux/bin/arm-linux-gnueabihf-g++ -c -pipe -marm -mfpu=neon -mfloat-abi=hard -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o openvg.o openvg.cpp
    openvg.cpp:48:23: fatal error: VG/openvg.h: No such file or directory
    #include <VG/openvg.h>
    ^
    compilation terminated.
    make: *** [openvg.o] Error 1

    Build options:
    Configuration .......... accessibility audio-backend c++11 clock-gettime clock-monotonic compile_examples concurrent cross_compile evdev eventfd freetype full-config getaddrinfo getifaddrs iconv inotify ipv6ifname large-config largefile linuxfb medium-config minimal-config mremap neon nis no-pkg-config pcre png precompile_header qpa qpa reduce_exports reduce_relocations release rpath shared small-config v8 v8snapshot zlib
    Build parts ............ libs
    Mode ................... release
    Using C++11 ............ yes
    Using PCH .............. yes
    Target compiler supports:
    iWMMXt/Neon .......... no/yes

    Qt modules and options:
    Qt D-Bus ............... no
    Qt Concurrent .......... yes
    Qt GUI ................. yes
    Qt Widgets ............. yes
    JavaScriptCore JIT ..... yes (To be decided by JavaScriptCore)
    QML debugging .......... yes
    Use system proxies ..... no

    Support enabled for:
    Accessibility .......... yes
    ALSA ................... no
    CUPS ................... no
    FontConfig ............. no
    Iconv .................. yes
    ICU .................... no
    Image formats:
    GIF .................. yes (plugin, using system library)
    JPEG ................. yes (plugin, using bundled copy)
    PNG .................. yes (in QtGui, using bundled copy)
    Glib ................... no
    GStreamer .............. no
    GTK theme .............. no
    Large File ............. yes
    libudev ................ no
    Networking:
    getaddrinfo .......... yes
    getifaddrs ........... yes
    IPv6 ifname .......... yes
    OpenSSL .............. no
    NIS .................... yes
    OpenGL ................. no
    OpenVG ................. no
    PCRE ................... yes (bundled copy)
    pkg-config ............. no
    PulseAudio ............. no
    QPA backends:
    DirectFB ............. no
    EGLFS ................ no
    KMS .................. no
    LinuxFB .............. yes
    XCB .................. no
    Session management ..... yes
    SQL drivers:
    DB2 .................. no
    InterBase ............ no
    MySQL ................ no
    OCI .................. no
    ODBC ................. no
    PostgreSQL ........... no
    SQLite 2 ............. no
    SQLite ............... yes (plugin, using bundled copy)
    TDS .................. no
    udev ................... no
    xkbcommon .............. no
    zlib ................... yes (bundled copy)

    Qt is now configured for building. Just run 'make'.
    Once everything is built, you must run 'make install'.
    Qt will be installed into /usr/local/Qt-5.1.1

    Prior to reconfiguration, make sure you remove any leftovers from
    the previous build.

    So does this is source of problem??But after this also i was able to make && make install.

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #15

      Compile Qt with -opengl desktop. You don't have OpenGL ES 2 on your PC, and rightly so: if desktop OpenGL is available, it's better to use that.

      Check out the compilation guide I have provided, it lists all dependencies and how to install them on Ubunutu.

      (Z(:^

      1 Reply Last reply
      0
      • R Offline
        R Offline
        raghaw
        wrote on last edited by
        #16

        Hi Do i need to add some plugin of Qdeclarative5 and QtQuick2 to access its classes.?

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #17

          Classes? In C++? Most of them are private and you can't officially access them. The ones blessed with being public are QQml* classes, and QQuickView, QQuickItem, QQuickPaintedItem.

          No plugins are required here. if you compile Qt correctly, it will all be there by default.

          (Z(:^

          1 Reply Last reply
          0
          • R Offline
            R Offline
            raghaw
            wrote on last edited by
            #18

            I tried compiling with -opengl desktop flag but in the end i got this message

            "You might need to modify the include and library search paths by editing
            QMAKE_INCDIR_OPENGL, QMAKE_LIBDIR_OPENGL and QMAKE_LIBS_OPENGL in
            /home/ubuntu/Raghaw/Qt5.1.1/qtbase/mkspecs/linux-arm-gnueabi-g++."

            What to do with these???

            1 Reply Last reply
            0
            • sierdzioS Offline
              sierdzioS Offline
              sierdzio
              Moderators
              wrote on last edited by
              #19

              This has something to do with cross-compiling. I have somehow assumed you are compiling for the desktop, my bad. I don't know how to help you in this case, sorry.

              (Z(:^

              1 Reply Last reply
              0
              • R Offline
                R Offline
                raghaw
                wrote on last edited by
                #20

                Yeah u r somewhat right ..my plan is to compile Qt5 with linaro toolchain for desktop.Create the Application and then flash it on imx6 board.Is this feasible??

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

                  Hi,

                  It's not exactly like that, you cross-compile Qt with the linaro tool chain , then you use that version to compile your application for your target and copy it on. In between you can develop it using the Desktop version on your computer.

                  You can search through the forum, there have been several posts about cross-compiling Qt 5 for the imx6

                  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
                  • M Offline
                    M Offline
                    maatong
                    wrote on last edited by
                    #22

                    I think we met the same problem here.
                    Have you solved this?

                    https://www.linkedin.com/pub/yini-guo/71/4b3/4a0

                    1 Reply Last reply
                    0
                    • N Offline
                      N Offline
                      neozaru
                      wrote on last edited by
                      #23

                      Same problem. Compiled with "angle" (Windows, Mingw32) option. Qtdeclarative (quick1) was compiled but not QtQuick2.
                      I thought it was not configured by default but there is no "-quick" or "-quick2" option in the "configure" script, nor in the "configure" output.

                      Are the compilation logs stored somewhere ? (took about 4H)

                      1 Reply Last reply
                      0
                      • J Offline
                        J Offline
                        jlwall
                        wrote on last edited by
                        #24

                        I have had the same problem with not having qt creator being able to use declarative, quick, or qml

                        In my case, its a cross-compile for an imx6 with linaro. build, qt5.2.1base, the script, the declarative make + sudo make install
                        no issues, things and demos run on the target, and I can compile QT command line apps, but not quick1, or 2

                        I also tried with a buildroot release of 2014.05, and this works and compiles the libs and examples to run on target, yet QTCreator cannot find quick or qml in the pro when included, and will not compile my own applications.

                        As always I am assuming I have done something stupid from the beginning, perhaps in the configure -prefix area?

                        If anyone has identified why this happens, I would appreciate some advice

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

                          Hi and welcome to devnet,

                          Did you cross-compiled/installed all related modules ?

                          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

                          • Login

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