Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. QtonPi
  4. How to add new module? RaspberryPi2EGLFS
Forum Updated to NodeBB v4.3 + New Features

How to add new module? RaspberryPi2EGLFS

Scheduled Pinned Locked Moved Unsolved QtonPi
4 Posts 4 Posters 2.2k Views 2 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.
  • defsD Offline
    defsD Offline
    defs
    wrote on last edited by
    #1

    I am not sure how to add new module for cross-compiling according to this tutorial:
    https://wiki.qt.io/RaspberryPi2EGLFS

    There is step 13 which says:

    13. Build other Qt modules as desired, the steps are the same always:
    
    ~/raspi/qt5/bin/qmake -r
    make
    make install
    

    but where can I get source for wanted module? I want QML and QUICK module to be installed.

    I tried to clone this repo : https://code.qt.io/cgit/qt/qt5.git,
    then went to qtdeclarative folder and run first two commands from step 13.:

    ~/raspi/qt5/bin/qmake -r
    make
    

    but after few minutes I got error:

    ../qsgdefaultdistancefieldglyphcache.cpp: In member function ‘virtual void QSGDefaultDistanceFieldGlyphCache::requestGlyphs(const QSet<unsigned int>&)’:
    scenegraph/qsgdefaultdistancefieldglyphcache.cpp:107:100: error: ‘QT_DISTANCEFIELD_TILESIZE’ was not declared in this scope
             QSize glyphSize(glyphWidth + padding * 2, QT_DISTANCEFIELD_TILESIZE(doubleGlyphResolution()) + padding * 2);
                                                                                                        ^
    Makefile:32437: recipe for target '.obj/qsgdefaultdistancefieldglyphcache.o' failed
    make[2]: *** [.obj/qsgdefaultdistancefieldglyphcache.o] Error 1
    make[2]: Leaving directory '/home/user/gitSources/qt5/qtdeclarative/src/quick'
    Makefile:93: recipe for target 'sub-quick-make_first-ordered' failed
    make[1]: *** [sub-quick-make_first-ordered] Error 2
    make[1]: Leaving directory '/home/user/gitSources/qt5/qtdeclarative/src'
    Makefile:45: recipe for target 'sub-src-make_first' failed
    make: *** [sub-src-make_first] Error 2
    
    

    What am I doing wrong?

    1 Reply Last reply
    0
    • sneubertS Offline
      sneubertS Offline
      sneubert
      wrote on last edited by
      #2

      Did you rerun configure bevor qmake the module? Also note that some modules depend on other modules. I cloned the qt5.git without webkit and webengine. It compiled fine.

      git clone https://code.qt.io/qt/qt5.git
      perl init-repository --module-subset=default,-qtwebkit,-qtwebkit-examples,-qtwebengine
      
      1 Reply Last reply
      0
      • S Offline
        S Offline
        sly110
        wrote on last edited by
        #3

        I am having the exact same question. I followed the same post successfully and now want to use the serial module ON THE PI. So I apt-get the libqt5serialport5 successfully on the Pi and then sync to sysroot on my Ubuntu16 host. But still the build with the RPI kit shows error: Unknown module(s) in QT: serialport.
        Do I need to compile the Qtserial module? If so, how?

        Best regards

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

          @sly110 Yes you need to cross-compile the module.

          mkdir build_qtserialport
          pushd build_qtserialport
          /path/to/cross-compiled/Qt/qtbase/bin/qmake /path/to/Qt/sources/qtserialport/
          make
          make install
          popd
          rm -r build_qtserialport
          

          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