How i can forward application gui from tx2?
I am using in the host (ubuntu 16.4 && nvidia P3000) nsight in cross compile mode to develop and i want forward the application that is running on jetson tx2.
In the jetson i have export the screen:
$ export DISPLAY=:!10 (:10 because i use the tx2 with out hdmi)
In my simple demo app i do that:
int main(int argc, char** argv)
setenv (“DISPLAY”, “:10.0”, 0);
glutCreateWindow(“Hello world :D”);
When i run the the app both trough Nsight and ssh -X i have this error:
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 154 (GLX)
Minor opcode of failed request: 24 (X_GLXCreateNewContext)
Value in failed request: 0x0
Serial number of failed request: 33
Current serial number in output stream: 34
I think that is a problem of my code, because when i lanch programs like gedit with ssh -X it are forwarding on the host