Minimal build for QtBluetooth on Raspberry Pi 3
I have completed my library for handling custom BLE modules. It is running fine on Linux desktop with default 5.8.1. But I am having problem to figure out minimal cutom build configuration for Rasperry Pi (Running Ubuntu Server 16.04, so no X11 installed). I just only need QtCore and QtBluetooth (and QtDBUS, because it is used to communicate with BlueZ daemon). Could you please provide me some minimal ./configure parameters, because I'm having troubles so far.
Thanks for any responses.
I was affraid that some is gonna point me that :) But that page mostly focus on crosscompiling (I do not need too, even if native build take over night) and for Raspbian with different version of basically any package in system.
I had success with this configuration parameters:
./configure -v -no-opengl -no-sql-mysql -no-sql-sqlite -skip qtquick1 -skip qtquickcontrols -no-gui -no-widgets -no-sql-sqlite2 -no-gstreamer -skip gamepad -device linux-rasp-pi-g+ -device-option CROSS_COMPILE=/usr/bin/ -opensource -confirm-license -optimized-qmake -reduce-exports -debug -qt-pcre -make libs -prefix /opt/qt5 -no-pulseaudio -no-directfb -skip declarative -skip webkit -skip websockets -skip location -skip sensors -skip webchannel
Everything compiles with make command, but when I run make install, this error message pops out after while:
<srcbase> = /opt/build/qt5/qtnetworkauth <outbase> = /opt/build/qt5/qtnetworkauth Project ERROR: Unknown module(s) in QT: gui Makefile:66: recipe for target 'sub-oauth-install_subtargets-ordered' failed make: *** [sub-oauth-install_subtargets-ordered] Error 3 make: Leaving directory '/opt/build/qt5/qtnetworkauth/src' Makefile:56: recipe for target 'sub-src-install_subtargets' failed make: *** [sub-src-install_subtargets] Error 2 make: Leaving directory '/opt/build/qt5/qtnetworkauth' Makefile:584: recipe for target 'module-qtnetworkauth-install_subtargets' failed make: *** [module-qtnetworkauth-install_subtargets] Error 2
Which I dont understand, because in config, GUI module is disabled.
Hi and welcome to devnet,
-nomake examplesto your configure line.
The gui module is used only by the example in the qtnetworkauth module.
@SGaist Thanks for suggestion, but error is the same as before. I did completely clean build to avoid some be in cache.
Since you seem to be interested only in a limited subset of modules, what about starting to just build qtbase with everything you don't want removed and then only build the other modules you need ? That might make things easier to narrow down.