Page 1 of 1

starting openGLES app at startup

Posted: Wed Feb 20, 2019 8:17 pm
by oliver_mpt
Hello,

I have a c++ OpenGLES application that runs perfectly from the terminal (I have a non GUI setup, booting in console mode). If I launch my app at the prompt by typing ./myapp, everything is OK. Now I want to launch the app automatically when the Pi starts.
I have tried rc.local, .bashrc, no way. My app needs several files located in the same directory as the app, and that seemed to be (one of) the problem. Finally with systemd, I can launch my program (specifying WorkinDirectory=), but then the screen is just all black.

Any ideas ???

Oliver

Re: starting openGLES app at startup

Posted: Wed Feb 20, 2019 8:31 pm
by oliver_mpt
Additionnal info : here is my systemd .service file

[Unit]
Description=NetAv
After=multi-user.target

[Service]
Type=idle
WorkingDirectory=/home/pi
ExecStart=/home/pi/NetAv

[Install]
WantedBy=multi-user.target

Re: starting openGLES app at startup

Posted: Sat May 04, 2019 6:49 am
by johannesl
Have you tried something like this in your rc.local?

Code: Select all

cd /home/pi
./NetAv