Solved How to get cross compile to include qtserialport
-
I'm trying to cross compile Qt to Arm but the build does not include qtserialport.
My script is as follows:
/cd /home/user/qtbuild/qtdest /home/user/qtbuild/qtsource/qt-everywhere-src-5.11.2/qtbase/configure \ -v \ -release \ -device linux-beagleboard-g++ \ -device-option CROSS_COMPILE=/opt/dev/gcc-linaro-4.9-2016.02-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- \ -sysroot /mnt/bbb-rootfs \ -opensource \ -confirm-license \ -nomake tests \ -nomake examples \ -no-use-gold-linker \ -no-gcc-sysroot \ -no-openssl \ -no-cups \ -no-glib \ -no-dbus \ -no-xcb \ -no-separate-debug-info \ -make libs \ -evdev \ -no-opengl \ -linuxfb \ -tslib \ -I /mnt/bbb-rootfs/lib \ -I /mnt/bbb-rootfs/lib/arm-linux-gnueabihf \ -I /opt/dev/gcc-linaro-4.9-2016.02-x86_64_arm-linux-gnueabihf/usr/lib \ -I /opt/dev/gcc-linaro-4.9-2016.02-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/lib \ -I /opt/dev/tslib_arm/include \ -L /opt/dev/tslib_arm/lib/ts \ -L /opt/dev/tslib_arm/lib \ -prefix /opt/dev/Qt5.11 \ -extprefix /opt/dev/Qt5.11
All the folders are created in my destination folder but qtserialport is not included.
![alt text]( image url)I've tried adding -qtserialport, -serialport and -qserialport t the configure options but they make no difference.
How do I turn on qtserialport compilation?
Regards,
James -
Hi,
From the looks of it, you are starting the build from Qt qtbase. Either do it from the top level folder of Qt's sources or build the qtserialport module after using the classic qmake, make, make install combo using your cross-compiled Qt version.
-
@SGaist Thanks for the prompt reply.
I'm running the script from the ~/qtbuild folder and (in the script) cd'ing into the qtdest folder from where the configure command is being run, and its compiling the rest of the stuff correctly (I think).
![alt text]( image url)So there is no special flag for configure to tell it to compile qtserialport?
Which folder do you mean by the "top level of Qt's sources" - my "qtsource" directory or the "qt-everywhere-src-5.11.2" directory?I came across your second suggestion while googling but could not find a way to get it to work. I'll try it again.
Regards,
James -
/home/user/qtbuild/qtsource/qt-everywhere-src-5.11.2/qtbase/configure
You're calling configure in
qtbase
.If you want to build all of Qt:
/home/user/qtbuild/qtsource/qt-everywhere-src-5.11.2/configure
-
Ahh gotcha!
Thanks very much!
Regards,
James