Unsolved How to add new module? RaspberryPi2EGLFS
-
I am not sure how to add new module for cross-compiling according to this tutorial:
https://wiki.qt.io/RaspberryPi2EGLFSThere 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?
-
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
-
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
-
@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