-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
The DISPLAY environment variable is missing on RPI4 #7725
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
it is normal if you are invoking via ssh
|
or try to run via keyboard / mouse on rpi itself |
the photo is me trying directly via keyboard on the rpi. |
There are some tips at the end of the setup guide. RPI 4 requires an X environment to run due to changes in their video driver. We're working on a new approach for this but for now X is required. End of: Will paste it here: Tips for 0.12.0 / Raspberry Pi 4 If you don't want to run PI apps from the X desktop enviornment but want to use the GLFW window system ( or have a Raspberry Pi 4 which requires X ) you can run an OF app without the desktop. First make sure you have X installed with: sudo apt-get install xorg then launch your app with: If you want to run an app headless you can use XVFB ( X Virtual Framebuffer ). First install XVFB with: sudo apt-get install xvfb Then run your app with: |
since this error message mentioned the /dev/tty0 serial port I disabled anything serial in the config and rebooted. while this part of the. error message is gone the rest remains. |
Ahh. I think we've only tested the setup for Pi 4 by installing the Desktop version of Raspbian. ps: We're hoping to get a better approach soon that uses native display drivers so we don't have to rely on X. |
I had to use my steps
on PI
in mac terminal:
|
Going to close this as running OF on RPi headless is documented in the setup guide and headless running with native windowing is already an open issue here: #6713 |
I am on a Raspberry Pi 4 model B with the 32bit version of the OS installed via the Raspberry PI Imager app on macOS 12.
I am trying to compile the videoPlayer example using OF 0.12 and also the latest nightly build of_v20231018_linuxarmv6l_release
In order for it to compile I had to comment out
PLATFORM_LIBRARIES += openmaxil
as suggested here and hereBut I get this error when trying to use
make run
while SSH in tot he RPI.When I try
make run
on the PRI4 directly I get this error:The text was updated successfully, but these errors were encountered: