display image using opencv on beagleboard

hi

i have writtten a opencv program to show image.

this is my program

#include<cv.h>
#include<highgui.h>
int main()
{
IplImage * new;
new = cvLoadImage("lena.jpg",1);
cvNamedWindow("window",1);
cvShowImage("window",new);
cvWaitKey(0);
cvDestroyWindow("window");
cvReleaseImage(&new);
return(0);
}

i have cross compiled opencv2.2.0 with arm2010.09 cross compiling
tool.

i copied the object file obtained after compiling on PC and the
lena.jpg image.

then i executed the program on beagle board as follows
root@beagleboard:/media# ./cv

i got this error

(window:1581): Gtk-WARNING **: cannot open display:

what more softwares i have to install in beagle board

Try :
# export DISPLAY=:0.0
then:
#./cv