Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 5956

Project ERROR: Unknown module(s) in QT: quick usb. How add modules "quick" and "usb" to Qt for Raspberry Pi3 crosscompiler?

$
0
0

I had built crosscompiler Qt5.12.5 on Ubuntu 20.0.4(Host PC) for Raspberry Pi3 according to this guide. Qt5.12.5 I had installed from installer(did not build) qt-opensource-linux-x64-5.12.5.run.According to this guid, I installed on the Raspberry the packages:

sudo apt build-dep qt4-x11 -y

sudo apt build-dep libqt5gui5 -y

sudo apt install -y libudev-dev libinput-dev libts-devlibxcb-xinerama0-dev libxcb-xinerama0

I also additionally installed a package that contains the "qml" and "quick" module:

sudo apt install qtdeclarative5-dev

After I made copiing of libraries and headers from Raspberry(192.168.0.40) to "sysroot" folder on Host PC through SSH by commands:

rsync -avz pi@192.168.0.40:/lib sysroot

rsync -avz pi@192.168.0.40:/usr/include sysroot/usr

rsync -avz pi@192.168.0.40:/usr/lib sysroot/usr

rsync -avz pi@192.168.0.40:/opt/vc sysroot/opt

After I configure, build and install crosscompiler (with libraries location in the "sysroot" folder) on Host PC by commands:

./configure -release -egl -opengl es2 -device linux-rasp-pi3-g++-device-option CROSS_COMPILE=~/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf--sysroot ~/raspi/sysroot -opensource -confirm-license -make libs -prefix /usr/local/qt5pi -extprefix ~/raspi/qt5pi -hostprefix ~/raspi/qt5 -v -no-use-gold-linker

sudo make -j6

sudo make install

enter image description here

  1. First question is why when I try to build my application with "quick" module in the QtCreator I get the following error:Project ERROR: Unknown module(s) in QT: quick.Why is the module "quick" missing if I installed a package "qtdeclarative5-dev" on Raspberry that contains this "quick" module and then the libraries were copied to the sysroot folder on the Host PC before building crosscompiler? Or does the package "qtdeclarative5-dev" not contain a module "quick" and are these just libraries for creating a module? What then is needed to assemble the module? Sources? Is it possible to add any Qt module after the configuration, building(make) and installing(make install) stage the cross-compiler? The strange thing is that when I switch to the default GCC compiler(autodetected,not crosscompile), the module is there and compilation is successful. Where is Qt module "quick" sources located in the installer qt-opensource-linux-x64-5.12.5.run or in the package qtdeclarative5-dev? Which folder modules located in builded form and and how is named? How can I add it? Please help to assemble and add the "quick" module to crosscompiler build because I don't understang what did I do wrong.

  2. The second question from the same theme: there is a repository that allows to add a USB module to Qt. I need work with USB on the Raspberry and I don't find any classes in Qt which provide that. In the repository a root directory contains a CMakeLists.txt file for assembly under cmake and there are nested projects that are assembled under qmake and it says there about building:

Build Unix

You need libusb-1.0-0-dev, libhidapi-dev and pkg-config packagesinstalled

mkdir build && cd build

qmake ..

make install

When I try to open any qmake project in QtCreator from this repository I have the same error:Project ERROR: Unknown module(s) in QT: usb.I would be very appreciative if someone would give detailed instructions (which folders to go into, what to build, what to synchronize on Raspberry and on the Host PC) how to build a "usb" module for Qt for Raspberry and how to embed this module in Qt


Viewing all articles
Browse latest Browse all 5956

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>