My question is not really directly connected to the Raspberry Pi, but I am using it in this case. I am not exactly a veteran when it comes to software development on Linux. I am using my PC with an ARM x86 cross compiler to compile the binaries, now I want to automatically deploy them on the Raspberry Pi.
I created a Makefile which compiles the source, copies the binaries to the Pi via SCP, SSH's into the Pi and executes the binary. This works fine for some basic stuff. But the main issue arises when I want to add a GUI. The Pi has a small touchscreen attached to it so I can see the desktop on one session. So what I want to do is compile on PC, transfer to the Pi and execute it in the session which has a desktop so a GUI opens. Suggestions are much appreciated as I am kind of lost on what to do to get this working. I heard that Eclipse CDT has some features for remote deployment, but I am unsure if it can do exactly what I want.