Important: Please read the Qt Code of Conduct -

Qt5 Raspberry pi Can’t find declarative

  • Hello,

    I crossed compiled Qt5 for the raspberry pi as shown in this "link": After some initial problems I managed, with the help of this forum, to get it working. I created a project where I can send data to the Rasberry Pi using a QTcpSocket. So far so good.

    But now I want to use QML on the raspberry. I created a QML file and in my Main.cpp file I create a new instance of QDeclarativeView, load the QML file and show it. When I compile and run it on my own pc it all goes the way it should. But if i try to crosscompile it i get a file not found error on:
    @QT += declarative@

    When i look inside the /mnt/rasp-pi-rootfs/usr/local/qt5pi/include map, I can see the core, gui, network module etc but not the declarative module.

    Like the tutorial says I did compile and ran sudo make install for the qtdeclative map when I created the crosscompile environment.

    Are there more steps required to get QML working on the Raspberry Pi?

Log in to reply