@kikislater my setup now includes two RPi’s in my GCS with one 7" screen each. One runs OpenHD for RC and FPV, the other is supposed to run QGCS for mission planning.
I’m using a custom joystick board, and everything is mounted in a small Peli case, i will post pictures later
So, here is short guide how to build QGC on Raspbian Buster with default Qt5 from repos. The exact steps and dependencies may vary, depend on what was already installed on your system:
You need to build QtLocation from sources, because QGC requires location-private and positioning-private which is not available into repos:
git clone https://github.com/qt/qtlocation.git
cd qtlocation
git checkout v5.11.3
mkdir build
cd build/
qmake ../qtlocation.pro
make -j4
sudo make install
I didn’t yet resolve the issue with missing “texttospeech” plugin, so just make an empty directory for successfull building: sudo mkdir /usr/lib/arm-linux-gnueabihf/qt5/plugins/texttospeech
Edit your QGCCommon.pri to build everything with right flags (maybe you know the better way, but this one just works):
When everything will be compiled, cd to ./release directory and run ./qgroundcontrol-start.sh. It will show errors about missing QML plugins - you should apt search for them and install.
Unfortunately I met with error at the end like this:
compiling moc/moc_AirspaceManager.cpp
compiling moc/moc_VideoItem.cpp
compiling moc/moc_VideoReceiver.cpp
compiling moc/moc_VideoSurface.cpp
compiling moc/moc_SubtitleWriter.cpp
compiling moc/moc_basedelegate.cpp
compiling moc/moc_qtquick2videosinkdelegate.cpp
compiling moc/moc_qtvideosinkdelegate.cpp
compiling moc/moc_qwidgetvideosinkdelegate.cpp
linking release/QGroundControl
/usr/bin/ld: obj/RTKSettings.o: file not recognized: file truncated
collect2: error: ld returned 1 exit status
make: *** [Makefile:2262:release/QGroundControl] error 1
The raspberry pi 4B once powered off at make period for the first time.
So how could I fix this error?
Thank you so much.
I successfully compiled and started QGC on Pi 4, I just needed to add CONFIG += exceptions setting at qmake to avoid exceptions handling problems during compilation.
Additional install is required to have pixhawk communicating over usb serial with ?
Do you really understand what you are doing?
Do you have any experience in building something under Linux?
The error just says that you have not a “configure” file which you try to execute.
But you don’t need to build a qt5 at all, if you try to launch QGC on RPi4.
I am following your guide and compiling on a Raspberry pi 4 and getting this error
pi@raspberrypi:~/qtlocation/build/qgroundcontrol/build $ qmake -r …/qgroundcontrol.pro CONFIG+=release
Project MESSAGE: Qt version 5.11.3
Project MESSAGE: Linux build
Project MESSAGE: QGroundControl Development master:be64886c5 2020-02-07 13:23:03 -0800
Project MESSAGE: Release flavor
Project MESSAGE: Using Default QtLocation headers
Project MESSAGE: Skipping support for Pairing
Project MESSAGE: Using MAVLink dialect ‘ardupilotmega’.
Project MESSAGE: Skipping support for Zeroconf (unsupported platform)
Project MESSAGE: Looking for Airmap in folder “/home/pi/qtlocation/build/qgroundcontrol/libs/airmapd”, variant: “Qt.5.11”
Project MESSAGE: Including support for video streaming
Project ERROR: Unknown module(s) in QT: x11extras waylandclient
It’s a good step to follow : looking for qt modules related to error, however It will not work you will get another error : could not find wayland-client or similar error.
If you switch to a previous branch instead of master branch, you will not get this error. According to QGC build recommandation, you need Qt 5.12 whereas raspbian buster have 5.11.3. So you need to keep QGC version lower than current :
3.5.6 fails on video even with gstreamer modules installed
Switch back to 3.5.5 or 3.5.4 according to @kpetrykin’s build date