Hi everyone, thanks in advance for any time you can spare to hear me out.
I’ve done some digging around and cannot find anything specific already posted that relates to the “core.cpp” file issue so adding here in case it can help me or anyone else.
I am attempting to display a Transport for London field from Pi to a 64x32 display board. I have the results from the TfL api running just fine, but I cannot for the life of me install the rgb led matrix to get anything to display on the board.
The persistent error I get it:
(rgbmatrix-env) pi@raspberrypi:~/rpi-rgb-led-matrix/bindings/python $ python setup.py build
cc1plus: fatal error: rgbmatrix/core.cpp: No such file or directory
compilation terminated.
error: command ‘/usr/bin/arm-linux-gnueabihf-gcc’ failed with exit code 1
I am using chatgpt to help me out, and have tried several things already, but the main point seems to be that install expects “core.cpp” but it does not exist? I keep getting stuck at:
Step 7: Build the RGB Matrix Library
Now we will build the RGB Matrix library from source. Let’s navigate to the directory and run the setup script.
- Navigate to the Python bindings directory:
cd rpi-rgb-led-matrix/bindings/python
- Run the build command:
python setup.py build
This will compile the C++ code into Python bindings for use.
I have been able to do this without issue, as steps 1-6:
pi@raspberrypi:~ $ sudo apt update && sudo apt upgrade -y
0% [Working]
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
1 package can be upgraded. Run ‘apt list --upgradable’ to see it.
W: http://raspbian.raspberrypi.com/raspbian/dists/bookworm/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Calculating upgrade… Done
The following package was automatically installed and is no longer required:
libwlroots12
Use ‘sudo apt autoremove’ to remove it.
The following packages have been kept back:
raspberrypi-ui-mods
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
pi@raspberrypi:~ $ sudo apt install -y build-essential git python3-dev python3-venv libgraphicsmagick+±dev \
libwebp-dev python3-setuptools python3-wheel
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Note, selecting ‘libgraphicsmagick++1-dev’ instead of ‘libgraphicsmagick+±dev’
build-essential is already the newest version (12.9).
git is already the newest version (1:2.39.5-0+deb12u1).
python3-dev is already the newest version (3.11.2-1).
python3-venv is already the newest version (3.11.2-1).
libgraphicsmagick++1-dev is already the newest version (1.4+really1.3.40-4+rpi1).
libwebp-dev is already the newest version (1.2.4-0.2+deb12u1).
python3-setuptools is already the newest version (66.1.1-1+deb12u1).
python3-wheel is already the newest version (0.38.4-2).
The following package was automatically installed and is no longer required:
libwlroots12
Use ‘sudo apt autoremove’ to remove it.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
pi@raspberrypi:~ $ mkdir ~/virtualenvs
pi@raspberrypi:~ $ cd ~/virtualenvs
pi@raspberrypi:~/virtualenvs $ python3 -m venv rgbmatrix-env
source rgbmatrix-env/bin/activate
^[[A^[[A^[[B^[[B^[[B^[[B^[[Bpi@raspberrypi:~/virtualenvs $ source rgbmatrix-env/bin/activate
(rgbmatrix-env) pi@raspberrypi:~/virtualenvs $
(rgbmatrix-env) pi@raspberrypi:~/virtualenvs $ source rgbmatrix-env/bin/activate
(rgbmatrix-env) pi@raspberrypi:~/virtualenvs $ cd
(rgbmatrix-env) pi@raspberrypi:~ $ git clone --recursive GitHub - hzeller/rpi-rgb-led-matrix: Controlling up to three chains of 64x64, 32x32, 16x32 or similar RGB LED displays using Raspberry Pi GPIO
fatal: destination path ‘rpi-rgb-led-matrix’ already exists and is not an empty directory.
(rgbmatrix-env) pi@raspberrypi:~ $ cd rpi-rgb-led-matrix
(rgbmatrix-env) pi@raspberrypi:~/rpi-rgb-led-matrix $ cd bindings/python
(rgbmatrix-env) pi@raspberrypi:~/rpi-rgb-led-matrix/bindings/python $ pip install cython
Installing collected packages: cython
Successfully installed cython-3.0.11
Some basics on Pi model and OS version:
Raspberry Pi Zero W Rev 1.1
PRETTY_NAME=“Raspbian GNU/Linux 12 (bookworm)”
NAME=“Raspbian GNU/Linux”
VERSION_ID=“12”
VERSION=“12 (bookworm)”
VERSION_CODENAME=bookworm
ID=raspbian
ID_LIKE=debian
Thank you in advance for any assistance, and if there is more info I can provide, happy to do so.