I wrote an image processing tool based on opencv/C++ which runs on iMac. I would like to access the program remotely from a ubuntu machine and I am having troubles with X11. I have installed Xquartz on the iMac and I definitely can run remotely X11 applications, however I don't know how to force opencv to use X11 library for the GUI. Any ideas?