FRC-Utilities / QDriverStation

Cross-platform clone of the FRC Driver Station
https://frc-utilities.github.io
MIT License
190 stars 26 forks source link

Unable to build on rPi #42

Closed fovea1959 closed 5 years ago

fovea1959 commented 8 years ago

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?

BearzRobotics commented 8 years ago

from the snapcraft https://github.com/FRC-Utilities/QDriverStation/blob/master/etc/deploy/linux/snapcraft/snapcraft.yaml file these are the dependency it needs to build in a containerized snap. Hope it help, Thursday I can try and set up my raspberry pi 3 and try to compile it.

Sincerely: i:a man Dakota James Owen an ambassador for Christ.

On Mon, Nov 28, 2016 at 7:01 PM, Doug Wegscheid notifications@github.com wrote:

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?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/FRC-Utilities/QDriverStation/issues/42, or mute the thread https://github.com/notifications/unsubscribe-auth/AL8LVSvlaiDafo0U0H4YicjfKoarVYdjks5rC2tOgaJpZM4K-aNq .

alex-spataru commented 7 years ago

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.

fovea1959 commented 7 years ago

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.

alex-spataru commented 7 years ago

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

fovea1959 commented 7 years ago

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?

alex-spataru commented 7 years ago

@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.