Подскажите пожалуйста, в чем может быть проблема и как её решить. При установке VirtualBox-1.6.6 на Mandriva 2008 free возникает ошибка с установкой Xlibs:
***** Checking X libraries *****
compiling the following source file:
#include <cstdio>
#include <X11/Xlib.h>
extern "C" int main(void)
{
Display *dpy;
int scrn_num;
Screen *scrn;
Window win;
dpy = XOpenDisplay(NULL);
scrn_num = DefaultScreen(dpy);
scrn = ScreenOfDisplay(dpy, scrn_num);
win = XCreateWindow(dpy, RootWindowOfScreen(scrn), 0, 0, 100, 100,
0, 16, InputOutput, CopyFromParent, 0, NULL);
XDestroyWindow(dpy, win);
}
u
sing the following command line:
g++ -O -Wall -o .tmp_out .tmp_src.cc "-L/usr/X11R6/lib -L/usr/X11R6/lib64 -L/usr/local/lib -lXext -lX11 -I/usr/local/include"
.tmp_src.cc:2:22: error: X11/Xlib.h: No such file or directory
.tmp_src.cc: In function 'int main()':
.tmp_src.cc:5: error: 'Display' was not declared in this scope
.tmp_src.cc:5: error: 'dpy' was not declared in this scope
.tmp_src.cc:7: error: 'Screen' was not declared in this scope
.tmp_src.cc:7: error: 'scrn' was not declared in this scope
.tmp_src.cc:8: error: 'Window' was not declared in this scope
.tmp_src.cc:8: error: expected `;' before 'win'
.tmp_src.cc:10: error: 'XOpenDisplay' was not declared in this scope
.tmp_src.cc:11: error: 'DefaultScreen' was not declared in this scope
.tmp_src.cc:12: error: 'ScreenOfDisplay' was not declared in this
scope
.tmp_src.cc:13: error: 'win' was not declared in this scope
.tmp_src.cc:13: error: 'RootWindowOfScreen' was not declared in this
scope
.tmp_src.cc:14: error: 'InputOutput' was not declared in this scope
.tmp_src.cc:14: error: 'CopyFromParent' was not declared in this scope
.tmp_src.cc:14: error: 'XCreateWindow' was not declared in this scope
.tmp_src.cc:15: error: 'XDestroyWindow' was not declared in this scope
Что с этим можно сделать? Заранее спасибо.
>>>