Cross compiling error in Nsight Eclipse for Jetson Nano in deepstream sample apps

I’ve been trying to cross compile the sample applications of deepstream using Nsight Eclipse but unable to do so due to some errors including glibconfig.h.
The current application which I’m using is deepstream-test2 with all stated requirements and libraries installed but still, some errors are there.
Here’s a screenshot of the IDE.


Deepstream requires lots of dependencies which make it not easy to be cross-compiled on the host.
It’s recommended to choose remote compile and debug to avoid these issues.