FRC-Utilities / QDriverStation

Cross-platform clone of the FRC Driver Station

Home Page:https://frc-utilities.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to build on rPi

fovea1959 opened this issue · comments

got a good(?) build on x64. Trying to build on rPi/raspbian.

qmake yields:
Project ERROR: Unknown module(s) in QT: quick qml

I have installed every package I could find that looked applicable; what does it take to build this on raspian?

Sorry for the late reply, I have been somewhat busy lately. Your error occurs because you do not have the QML/Quick module installed, which is used by the QDriverStation to draw the UI.

I will check if rPi has a package for QML available. If not, you can still try the Console DS, which has minimal dependencies (and also supports reading joysticks).

If you are interested, download LibDS and navigate to the examples/ConsoleDS directory. Just modify this line in main.c to point to your robot's static IP address.

If you have multiple version of QT installed, you need to force qmake to use Qt5.

QT_SELECT=qt5 qmake

on my offending x64 system, qt4 seemed to be the default, and I don't think qt4 had all the pieces.

Probably need to update the build instructions. Will try this on rPi tonight.

Thanks for the hint! I will modify the project to force Qt5 usage by default.

on rPi, needed to apt-get install qml-module-qtquick-control, I believe.

 QT_SELECT=qt5 qmake; make

worked fine.

Resultant executable won't run.

00:00.1        DEBUG         Initializing DriverStation...
00:00.3        DEBUG         DriverStation initialized!
00:00.9        WARNING       QQmlApplicationEngine failed to load component
00:00.9        WARNING       qrc:/qml/main.qml:104 Type VirtualJoystickWindow unavailable
qrc:/qml/Dialogs/VirtualJoystickWindow.qml:149 Type Spinbox unavailable
qrc:/qml/Widgets/Spinbox.qml:25 module "QtQuick.Controls.Styles" version 1.4 is not installed

00:00.9        WARNING       QProcess: Destroyed while process ("bash") is still running.
00:00.9        WARNING       QProcess: Destroyed while process ("bash") is still running.
00:01.2        DEBUG         DS networking operations stopped
00:01.2        DEBUG         Log buffer closed
00:01.2        WARNING       QObject::startTimer: Timers can only be used with threads started with QThread

Open a new issue or continue this one?

@fovea1959 Sorry for the (very) late reply. Could you try to build the latest version of the QDriverStation? Also, ensure that you have the dependencies mentioned by @BearzRobotics installed on your system.