oliver_mpt
Posts: 14
Joined: Tue Dec 06, 2016 2:41 pm

starting openGLES app at startup

Wed Feb 20, 2019 8:17 pm

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

oliver_mpt
Posts: 14
Joined: Tue Dec 06, 2016 2:41 pm

Re: starting openGLES app at startup

Wed Feb 20, 2019 8:31 pm

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

User avatar
johannesl
Posts: 16
Joined: Thu May 23, 2013 8:38 pm

Re: starting openGLES app at startup

Sat May 04, 2019 6:49 am

Have you tried something like this in your rc.local?

Code: Select all

cd /home/pi
./NetAv

Return to “OpenGLES”