raspberry camera module with opencv issue

asked 2015-07-04 10:14:50 -0600

franken gravatar image

updated 2015-07-04 11:45:26 -0600

Hi all i'm trying to test the camera example after installling the userland and raspicam libraries by following this link : https://github.com/robidouille/robido...

when typing startx , i open another terminal and i type ./raspicamtest but i get the message : : cannot connect to X server plz help thanks :)

i'm using ubuntu 14.04 with opencv 3.0.0

edit retag flag offensive close merge delete

Comments

How are you invoking ./raspicamtest ? If you're invoking it over ssh connection, you may need to enable X11 forwarding in your ssh connection. You can't invoke a GUI application over simple SSH connection.

dastaan90 gravatar imagedastaan90 ( 2015-07-04 11:06:11 -0600 )edit

ok thanks you , can you tell me plz how to "enable X11 forwarding in my ssh connection" :)

franken gravatar imagefranken ( 2015-07-04 11:45:02 -0600 )edit

If you're having a linux box, use "ssh -X ..". If using putty, there is a seperate option for X11 forwarding. You will have to enable it from there. Hope it helps.

dastaan90 gravatar imagedastaan90 ( 2015-07-05 04:10:20 -0600 )edit

ok i have solved this by using vnc server to remotely connect to the raspberry , i will try also ssh -X .... thnaks

franken gravatar imagefranken ( 2015-07-05 05:46:29 -0600 )edit