Qt6 topics merged with General

Running a Qt application in raspberry pi without installing the framework in the device.

  • Hello I am currently able to build Qt for Raspberry Pi-3 following some internet tutorials(no matter which one):
    configure -opengl es2 -eglfs -no-gtk -device linux-rasp-pi-g++ -device-option CROSS_COMPILE=$RPI_TOOLCHAIN -sysroot $RPI_SYSROOT -opensource -confirm-license -debug -make libs -prefix /opt/Qt4Pi -skip qtwebengine -no-use-gold-linker

    ,all of they "requiere" a -sysroot parameter to be used, so when I run make install, it install the framework in the pi file system, so I umount it and put the sd in the pi, now if I want to use the Qt4Pi framework I can not configure it because I was instaled it in the target system, not in the host(my working PC)

    What I want:

    • Build Qt with -static linker flag, to run my qt App in the device without qt installed. Is it possible?
    • Install Qt4Pi in my host to configure it in qtcreator as another build set.
    • Some one can tell me why in recent qt versions I need to use -no-use-gold-linker
    • Know If is possible to use all QML features without qtwebengine.
    • Know if make sense(is possible) build Qt for Pi without a pi filesystem "reference"(-sysroot).

  • For a major question(install in my host), use -extprefix and -hostprefix, see more with configure --help or follow this link:

    For other opinions, I keep the question open.

Log in to reply