XDG_RUNTIME_DIR on eclipse-cdt

I was installed SDL2 libs + eclipse, eclipse-cdt + g++ to start developing some games on Eclipse IDE.

I'm on Debian. I installed it using the apt.

The project builds normally, but does not run. The following output comes from Console window

error: XDG_RUNTIME_DIR not set in the environment.

However, the generated binarie on debug folder runs normally if I execute it out of eclipse.

What is the problem?


try this;

open eclipse settings and try setting up environment variable "XDG_RUNTIME_DIR" as "/run/user/1000" and apply.

open drop down menu near to "Run button" -->den open "Run configuration" --> open "Environment" -->> "new" >> variable as "XDG_RUNTIME_DIR" and value as "/run/user/1000"

its worked for me perfectly.

I can't find the solution for this error. Exporting XDG_RUNTIME_DIR before running eclipse apparently doesn't work.

I installed another version of Eclipse and it worked well (?)

Consider using more recent versions of eclipse-cdt than the repository's one

Need Your Help

how to make include element in my own XML schema?

xml xsd include

I have writen my own xml schema and one large xml file that is an instance of that schema. Now I would like to define include element in my xsd so that xml file can be made out of several smaller u...

mysql: Average over multiple columns in one row, ignoring nulls

sql mysql

I have a large table (of sites) with several numeric columns - say a through f. (These are site rankings from different organizations, like alexa, google, quantcast, etc. Each has a different range...