PDA

View Full Version : X11/extensions/XInput.h: No such file or directory


STEVE555
19th June 2009, 11:21 PM
Hi everyone,
I've recently taken the plunge to upgrade to Rawhide.I have been compiling the D.R.M,Mesa and the nouveau source code.I'm having trouble compiling them.

The compiling Mesa ends with this error:
glut_input.c:22:35: error: X11/extensions/XInput.h: No such file or directory
glut_input.c:42: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
glut_input.c:43: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
glut_input.c:44: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
glut_input.c: In function ‘queryTabletPos’:
glut_input.c:117: error: ‘XDeviceState’ undeclared (first use in this function)
glut_input.c:117: error: (Each undeclared identifier is reported only once
glut_input.c:117: error: for each function it appears in.)
glut_input.c:117: error: ‘state’ undeclared (first use in this function)
glut_input.c:118: error: ‘XInputClass’ undeclared (first use in this function)
glut_input.c:118: error: ‘any’ undeclared (first use in this function)
glut_input.c:119: error: ‘XValuatorState’ undeclared (first use in this function)
glut_input.c:119: error: ‘v’ undeclared (first use in this function)
glut_input.c:122: warning: implicit declaration of function ‘XQueryDeviceState’
glut_input.c:122: error: ‘__glutTablet’ undeclared (first use in this function)
glut_input.c:130: error: ‘ValuatorClass’ undeclared (first use in this function)
glut_input.c:131: error: expected expression before ‘)’ token
glut_input.c:139: error: expected expression before ‘)’ token
glut_input.c:142: warning: implicit declaration of function ‘XFreeDeviceState’
glut_input.c: In function ‘__glutProcessDeviceEvents’:
glut_input.c:181: error: ‘XDeviceMotionEvent’ undeclared (first use in this function)
glut_input.c:181: error: ‘devmot’ undeclared (first use in this function)
glut_input.c:181: error: expected expression before ‘)’ token
glut_input.c:185: error: ‘__glutTablet’ undeclared (first use in this function)
glut_input.c:190: error: ‘__glutDials’ undeclared (first use in this function)
glut_input.c:198: error: ‘__glutSpaceball’ undeclared (first use in this function)
glut_input.c:220: error: ‘XDeviceButtonEvent’ undeclared (first use in this function)
glut_input.c:220: error: ‘devbtn’ undeclared (first use in this function)
glut_input.c:220: error: expected expression before ‘)’ token
glut_input.c:246: error: expected expression before ‘)’ token
glut_input.c: In function ‘probeDevices’:
glut_input.c:317: error: ‘XExtensionVersion’ undeclared (first use in this function)
glut_input.c:317: error: ‘version’ undeclared (first use in this function)
glut_input.c:318: error: ‘XDeviceInfoPtr’ undeclared (first use in this function)
glut_input.c:318: error: expected ‘;’ before ‘device_info’
glut_input.c:319: error: ‘XAnyClassPtr’ undeclared (first use in this function)
glut_input.c:319: error: expected ‘;’ before ‘any’
glut_input.c:320: error: ‘XButtonInfoPtr’ undeclared (first use in this function)
glut_input.c:320: error: expected ‘;’ before ‘b’
glut_input.c:321: error: ‘XValuatorInfoPtr’ undeclared (first use in this function)
glut_input.c:321: error: expected ‘;’ before ‘v’
glut_input.c:322: error: ‘XAxisInfoPtr’ undeclared (first use in this function)
glut_input.c:322: error: expected ‘;’ before ‘a’
glut_input.c:333: warning: implicit declaration of function ‘XGetExtensionVersion’
glut_input.c:337: error: ‘NoSuchExtension’ undeclared (first use in this function)
glut_input.c:342: error: ‘device_info’ undeclared (first use in this function)
glut_input.c:342: warning: implicit declaration of function ‘XListInputDevices’
glut_input.c:349: error: ‘device’ undeclared (first use in this function)
glut_input.c:350: error: ‘any’ undeclared (first use in this function)
glut_input.c:350: error: expected ‘;’ before ‘device’
glut_input.c:352: error: ‘__glutSpaceball’ undeclared (first use in this function)
glut_input.c:353: error: ‘v’ undeclared (first use in this function)
glut_input.c:354: error: ‘b’ undeclared (first use in this function)
glut_input.c:361: error: ‘ButtonClass’ undeclared (first use in this function)
glut_input.c:362: error: expected ‘;’ before ‘any’
glut_input.c:365: error: ‘ValuatorClass’ undeclared (first use in this function)
glut_input.c:366: error: expected ‘;’ before ‘any’
glut_input.c:370: error: ‘a’ undeclared (first use in this function)
glut_input.c:370: error: ‘XValuatorInfo’ undeclared (first use in this function)
glut_input.c:380: warning: implicit declaration of function ‘XOpenDevice’
glut_input.c:386: error: ‘__glutDials’ undeclared (first use in this function)
glut_input.c:396: error: expected ‘;’ before ‘any’
glut_input.c:400: error: expected ‘;’ before ‘any’
glut_input.c:422: error: ‘__glutTablet’ undeclared (first use in this function)
glut_input.c:432: error: expected ‘;’ before ‘any’
glut_input.c:436: error: expected ‘;’ before ‘any’
glut_input.c:463: error: expected ‘;’ before ‘any’
glut_input.c:471: warning: implicit declaration of function ‘XFreeDeviceList’
glut_input.c: In function ‘__glutUpdateInputDeviceMask’:
glut_input.c:489: error: ‘XEventClass’ undeclared (first use in this function)
glut_input.c:489: error: expected ‘;’ before ‘eventList’
glut_input.c:495: error: ‘__glutTablet’ undeclared (first use in this function)
glut_input.c:497: warning: implicit declaration of function ‘DeviceMotionNotify’
glut_input.c:498: error: ‘eventList’ undeclared (first use in this function)
glut_input.c:502: warning: implicit declaration of function ‘DeviceButtonPress’
glut_input.c:505: warning: implicit declaration of function ‘DeviceButtonPressGrab’
glut_input.c:508: warning: implicit declaration of function ‘DeviceButtonRelease’
glut_input.c:513: warning: implicit declaration of function ‘DeviceStateNotify’
glut_input.c:518: error: ‘__glutDials’ undeclared (first use in this function)
glut_input.c:541: error: ‘__glutSpaceball’ undeclared (first use in this function)
glut_input.c:575: warning: implicit declaration of function ‘XSelectExtensionEvent’
glut_input.c: In function ‘glutDeviceGet’:
glut_input.c:599: error: ‘__glutSpaceball’ undeclared (first use in this function)
glut_input.c:601: error: ‘__glutDials’ undeclared (first use in this function)
glut_input.c:603: error: ‘__glutTablet’ undeclared (first use in this function)
gmake[2]: *** [glut_input.o] Error 1
gmake[2]: Leaving directory `/opt/mesa/src/glut/glx'
gmake[1]: *** [subdirs] Error 1
gmake[1]: Leaving directory `/opt/mesa/src'
gmake: *** [default] Error 1

Looking at the code,it is stopping with glut,I've tried to re-install freeglut and freeglut-devel,xorg and xcb,but no joy.I even downloaded the glut source code,but that ended with the same start error atyhe top,i.eglut_input.c:22:35: error: X11/extensions/XInput.h: No such file or directory

Can someone tell me which package to re-install or a way to get round this problem?
Any help would be greatly appreciated.

Regards,
STEVE555

SlowJet
19th June 2009, 11:50 PM
"...Mesa and the nouveau source code"

Those have only been compiled once for f12 and both failed.
Is this about 3D video?

SJ

STEVE555
20th June 2009, 12:13 AM

Hi Slowjet,
Sort of,It Mesa did compile successfully a day or two ago,but sadly,it's not compiling right.
I think it's something to do with Glut this time,I'm not that sure what went wrong.

But anyway,the Nouveau source code compiles fine,the Mesa code has snapped for the time being.I wantd to ask how to get round my current problem.

D.R.M compiles fine,but when I try to insert the nouveau module,using modprobe nouveau,it gives me this error:
WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
FATAL: Module nouveua not found.

When I do modprobe drm,that does insert fine.

I had the mesa code and Nouveau drivers working with some 3d apps when I briefly using Fedora 11.But when I was getting the wrong version error with D.R.M in my Xorg.0.log,I decided to upgrade to Rawhide to use the 2.6.30 kernel,etc to see if the problem would be fixed then(but I must add the graphics were VERY sluggish using them) I'm sure I'm getting close to get it working fine with my graphics card(Nvidia Geforce 6,800 GT)

Regards,
STEVE555

SlowJet
20th June 2009, 01:01 AM
nouveau is a 2D drv that only seems to do a little 3D, but is all happens in computer memory.
The push out to the card (functions) are what make glx-gears move around.

If mesa and nouveau src worked a couple of days ago then why didn't they compile for F12 about 1 week ago.
How many f12 src packages are there?

And xorg and drv's are about to be bumped to 7 abi stuff.

?????????

SJ

STEVE555
20th June 2009, 09:17 AM
Hi Slowjet,
I am well aware that the nouveau driver is only 2D on it's own,that is why I compile all three from git.I have to admit the Mesa code from git is a bit flaky at the moment,ever since they merged the Radeon-Rewrite code into git master.The only way at that time to get it to compile fully was to leave out
--with-demos=xdemos,demos,trivial,tests at the end of my configure options.
So now for the moment it failing with those errors in my first post.

Regards,
STEVE555

STEVE555
21st June 2009, 09:28 AM
Hi everyone,
I updated via yum last night,and I have the new xorg-XI packages installed.That has solved my problem in compiling Mesa.I just have to wait for D.R.M to be ironed out(hopefully soon)and then I'll be happy:)

I would like to thank everybody that has tried to help me.

Regards,
STEVE555