Zac Gross

Code & More

Fixing Opencv Xserver Error With Eclipse CDE

| Comments

When running your first opencv project with CDE you may experience the “cannot connect to x server” error when calling code that requires the opencv imageview or UI elements.

x server error

To fix simply set DISPLAY in your projects environment variables, make sure a file in your project is selected then goto run-> run configurations -> environment and add a display variable like the following:

x server error