raspbian

SDL2 on Raspberry Pi without X?

大憨熊 提交于 2020-01-13 19:52:05
问题 I'm hoping to develop some code that uses SDL2 to display graphics on the 7" RPi touchscreen, but I'd rather not install a full desktop OS. I've got Raspbian Buster Lite installed. Some simple test code gets an error when I try to run it: user@rpi4:~/01_hello_SDL $ ./hw Window could not be created! SDL_Error: Could not initialize EGL user@rpi4:~/01_hello_SDL $ sudo ./hw error: XDG_RUNTIME_DIR not set in the environment. Window could not be created! SDL_Error: Could not initialize EGL I'm

Does the Raspberry Pi 2 model B v1.1 have an internal RTC?

ぃ、小莉子 提交于 2020-01-13 13:53:30
问题 I work with Raspberry Pi 2 model B v1.1 and I searched about a RTC to keep time even in the case of a power outage or a loss of internet connection. I found that I must buy a RTC chip with a battery. But recently I heard that my Raspberry Pi already contains a RTC. But is it right? If so, where is its location? I don't see anything called RTC on my chip. 回答1: I am fairly certain there is not an RTC chip built-in: "One of the complaints Pi users have is that there's no built-in hardware clock

“This GPIO pin already exists:” GPIO 1 Exception on Second Time

馋奶兔 提交于 2020-01-13 09:41:36
问题 I am working on Raspberry pi and java to make the LED to blink by using pi4j , everything is cleared and worked fine , the LED is blinking as per the code but when i run the second time it causes the following error, i have searche lot there is lot of same question without the clear answer how to solve it ,any help would be appreciated final GpioController gpio = GpioFactory.getInstance(); final GpioPinDigitalOutput pin = gpio.provisionDigitalOutputPin( RaspiPin.GPIO_01, "PinLED", PinState

Netty 4 Receive Multicast packets on Linux

风格不统一 提交于 2020-01-13 02:41:31
问题 I have written an app which receives multicast packets sent by a sender (containing audio). I have used Netty 4 and have got the app working on Windows but it will not receive multicast packets when run on Linux (Debian Wheezy (raspi) and Ubuntu 12). I have created some test code that can send and receive multicast packets, the results are: Send Windows to Windows works. Send Linux to Windows works. Send Windows to Linux, packets are sent but not received. I run the app as root and have SO

Netty 4 Receive Multicast packets on Linux

≯℡__Kan透↙ 提交于 2020-01-13 02:41:07
问题 I have written an app which receives multicast packets sent by a sender (containing audio). I have used Netty 4 and have got the app working on Windows but it will not receive multicast packets when run on Linux (Debian Wheezy (raspi) and Ubuntu 12). I have created some test code that can send and receive multicast packets, the results are: Send Windows to Windows works. Send Linux to Windows works. Send Windows to Linux, packets are sent but not received. I run the app as root and have SO

Gstreamer with gst-omx Raspberry Pi

半腔热情 提交于 2020-01-12 08:40:11
问题 I compiled the gstreamer with gst-omx following this tutorial: http://www.onepitwopi.com/raspberry-pi/gstreamer-1-2-on-the-raspberry-pi/ Everything went fine and in the end when i ran gst-inspect-1.0 | grep omx I got: omx: omxmpeg2videodec: OpenMAX MPEG2 Video Decoder omx: omxmpeg4videodec: OpenMAX MPEG4 Video Decoder omx: omxh263dec: OpenMAX H.263 Video Decoder omx: omxh264dec: OpenMAX H.264 Video Decoder omx: omxtheoradec: OpenMAX Theora Video Decoder omx: omxvp8dec: OpenMAX VP8 Video

java.lang.NoClassDefFoundError: javax/media/opengl/GLException at processing.opengl.PGraphicsOpenGL

萝らか妹 提交于 2020-01-06 19:25:40
问题 I am writing a program in Processing on Raspberrypi(Raspbian), to import a 3D STL image file. It is working perfectly on Microsoft (windows7) & Linux(Ubuntu) platform but I am struggling to run same program on Raspberrypi (Raspbian) platform. I am getting below Error at size(600,600,P3D) when I run this program on Raspberrypi... Coding import toxi.geom.*; import toxi.geom.mesh.*; import toxi.processing.*; TriangleMesh mesh; ToxiclibsSupport gfx; void setup() { size(600,600,P3D); mesh=

java.lang.NoClassDefFoundError: javax/media/opengl/GLException at processing.opengl.PGraphicsOpenGL

我怕爱的太早我们不能终老 提交于 2020-01-06 19:25:07
问题 I am writing a program in Processing on Raspberrypi(Raspbian), to import a 3D STL image file. It is working perfectly on Microsoft (windows7) & Linux(Ubuntu) platform but I am struggling to run same program on Raspberrypi (Raspbian) platform. I am getting below Error at size(600,600,P3D) when I run this program on Raspberrypi... Coding import toxi.geom.*; import toxi.geom.mesh.*; import toxi.processing.*; TriangleMesh mesh; ToxiclibsSupport gfx; void setup() { size(600,600,P3D); mesh=

ProxyPass Failing

我的未来我决定 提交于 2020-01-05 07:27:09
问题 I have a new rasperryPi webserver running raspbian that I'm trying to use to proxy to web-enabled device from FieldServer Tech (fieldserver.com) on our intranet. Inside /etc/apache2/sites-available/default I've added the following line: <Location /modbus/> ProxyPass http://192.168.10.124/ </Location> After restarting the webserver when I try to browse to the defined proxy address http://192.168.10.7/modbus/ I get the password prompt from the FieldServer device but after authenticating I get

ProxyPass Failing

一世执手 提交于 2020-01-05 07:26:06
问题 I have a new rasperryPi webserver running raspbian that I'm trying to use to proxy to web-enabled device from FieldServer Tech (fieldserver.com) on our intranet. Inside /etc/apache2/sites-available/default I've added the following line: <Location /modbus/> ProxyPass http://192.168.10.124/ </Location> After restarting the webserver when I try to browse to the defined proxy address http://192.168.10.7/modbus/ I get the password prompt from the FieldServer device but after authenticating I get