fernandorpardo / DispmanX

DispmanX example
15 stars 0 forks source link

Trouble compiling on raspi 4 #2

Open joevand opened 4 years ago

joevand commented 4 years ago

Hello! I would like to try this out as I believe it is the solution I am looking for in displaying graphics over video on my raspi device. I am not very familiar with c++ and I am having tons of trouble getting it to compile (missing files on compilation). Would you be able to provide a pre compiled binary?

fernandorpardo commented 4 years ago

I am sorry I haven’t any Pi 4. The example was initially worked for a PI 3. The following is what I have done on a Pi Zero to try to find the issue you are reporting. I see there are many changes in the firmware part for the Pi 4 so let’s try this and let me know where it fails so I can guide you further. (1) Go to https://github.com/raspberrypi/firmware and download the firmware-master.zip (2) Unzip and ftp the files into the Raspberry. Create the directory /home/pi/firmware-master and download the files into it. (3) Create directory /home/pi/fox. Download the fox code from GitHub (DispmanX-master.zip), unzip and ftp into the /home/pi/fox directory just created (4) Edit /home/pi/fox/Makefile and change SDKSTAGE to point to the directory where you have placed the firmware files SDKSTAGE=/home/pi/firmware-master (5) Go to /home/pi/fox and type make The outcome is the exec file fox that the Makefile places into /home/pi/bin that I have in my PATH environment variable. You probably need either to create that same directory /home/pi/bin or to change the Makefile to place the exec file where you need. (6) From an SSH session run fox and press the right arrow key to see the bottom side of the screen changes color. If any of all this does not happen then please get back with the point it failed and I will try to support you.