Jump to content

RaspberryPi: Difference between revisions

From BCI2000 Wiki
Nluczak (talk | contribs)
Created page with "= Raspberry Pi (Linux) Build Dependencies (BCI2000 GUI build) = This section documents system packages needed to compile BCI2000 on a Raspberry Pi with GUI components enabled (e.g., ''OperatorQt'', ''StimulusPresentation'', ''BCI2000Viewer''). == Dependencies observed during build troubleshooting == During compilation, missing headers/libraries were resolved by installing the following packages: '''libdrm-dev''' — Direct Rendering Manager development files (graphic..."
 
Nluczak (talk | contribs)
No edit summary
Line 12: Line 12:


'''libxcb-cursor-dev''' — XCB cursor support (required by Qt/X11)
'''libxcb-cursor-dev''' — XCB cursor support (required by Qt/X11)
These are consistent with building Qt-based GUI applications on Linux/ARM.


== Recommended minimal install command (GUI build) ==
== Recommended minimal install command (GUI build) ==

Revision as of 20:52, 18 December 2025

Raspberry Pi (Linux) Build Dependencies (BCI2000 GUI build)

This section documents system packages needed to compile BCI2000 on a Raspberry Pi with GUI components enabled (e.g., OperatorQt, StimulusPresentation, BCI2000Viewer).

Dependencies observed during build troubleshooting

During compilation, missing headers/libraries were resolved by installing the following packages:

libdrm-dev — Direct Rendering Manager development files (graphics stack)

libxcb-dev / libxcb1-dev — XCB (X11) client library development files

libxcb-cursor-dev — XCB cursor support (required by Qt/X11)

Recommended minimal install command (GUI build)

The following is a practical minimal set for a Raspberry Pi OS / Debian-like system when building BCI2000 with Qt GUI components:

 sudo apt update sudo apt install -y \ build-essential \ cmake \ qtbase5-dev \ qt5-qmake \ qtbase5-dev-tools \ libdrm-dev \ libxcb1-dev \ libxcb-dev \ libxcb-cursor-dev \ libx11-dev \ libxext-dev \ libxrender-dev \ libxi-dev \ libxrandr-dev

Notes:

Qt on Linux typically depends on X11/XCB libraries, so missing XCB/DRM packages commonly block Qt GUI builds.

If you are doing a headless build (no GUI), you may be able to omit Qt and X11/XCB packages.

Verify GUI dependency availability

To confirm the GUI-related packages are installed:

 dpkg -l | egrep "libdrm-dev|libxcb|qtbase5-dev|cmake"

Running the CMake GUI on Raspberry Pi (cmake-gui)

The CMake GUI executable is cmake-gui, provided by Debian’s cmake-qt-gui package. Debian Packages +1

1) Install the CMake GUI package

On Raspberry Pi OS / Debian Bookworm-like systems:

 sudo apt update sudo apt install -y cmake-qt-gui

This installs the cmake-gui executable. Debian Packages +1

2) Run cmake-gui on the Pi desktop (local monitor)

If your Pi is running a desktop environment and you are logged in locally:

 cmake-gui

If launched from a terminal within the Pi desktop, it should open normally.