Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. QtonPi
  4. Qt5 Raspberry pi Can’t find declarative
Forum Updated to NodeBB v4.3 + New Features

Qt5 Raspberry pi Can’t find declarative

Scheduled Pinned Locked Moved QtonPi
1 Posts 1 Posters 1.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Stijnb
    wrote on last edited by
    #1

    Hello,

    I crossed compiled Qt5 for the raspberry pi as shown in this "link":http://qt-project.org/wiki/RaspberryPi_Beginners_guide. 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?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved