View previous topic :: View next topic |
Author |
Message |
darklegion Guru
Joined: 14 Nov 2004 Posts: 468
|
Posted: Fri Oct 13, 2006 2:51 am Post subject: [SOLVED] glext.h errors when compiling opengl software |
|
|
I get errors relating to glext.h when trying to compile opengl software.
e.g when emerging nvidia-settings :
Code: | In file included from /usr/include/GL/gl.h:71,
from /usr/include/GL/glx.h:26,
from src/libXNVCtrlAttributes/NvCtrlAttributesPrivate.h:30,
from src/libXNVCtrlAttributes/NvCtrlAttributesGlx.c:26:
/usr/include/GL/glext.h:2:2: error: #endif without #if
/usr/include/GL/glext.h:56:2: error: #endif without #if
|
I get a different error as well, when emergeing yabause:
Code: | /usr/include/GL/glext.h:1: error: expected =, ,, ;, asm or __attribute__ before len
|
eselect opengl list:
Code: | [1] nvidia *
[2] xorg-x11
|
Switching to the xorg-x11 interface doesn't help but it does give similar errors:
Some examples of errors when compiling yabause.
Code: |
/usr/include/GL/gl.h:1: error: expected =, ,, ;, asm or __attribute__ before param
/usr/include/GL/gl.h:2: error: expected =, ,, ;, asm or __attribute__ before void
/usr/include/GL/glext.h:2:2: error: #endif without #if
/usr/include/GL/glext.h:17: error: expected ) before * token
/usr/include/GL/gl.h:55:2: error: #endif without #if
/usr/include/GL/glu.h:280: error: expected =, ,, ;, asm or __attribute__ before gluBuild1DMipmapLevels
|
I believe these programs (may) have occurred after using nvidia-legacy drivers outside portage (because the portage ones were out of date at the time), but I cannot be certain of this.
Thanks
Last edited by darklegion on Tue Oct 17, 2006 6:02 am; edited 1 time in total |
|
Back to top |
|
|
whig l33t
Joined: 27 Nov 2004 Posts: 973 Location: New Zealand
|
Posted: Fri Oct 13, 2006 3:04 am Post subject: |
|
|
This is my /usr/include/GL/ directory, drivers from portage. My headers are linked to elsewhere.
Code: | GL $ ls -l
total 320
-rw-r--r-- 1 root root 6609 Oct 2 19:07 GLwDrawA.h
-rw-r--r-- 1 root root 2276 Oct 2 19:07 amesa.h
-rw-r--r-- 1 root root 2043 Oct 2 19:07 directfbgl.h
-rw-r--r-- 1 root root 4672 Oct 2 19:07 dmesa.h
-rw-r--r-- 1 root root 2710 Oct 2 19:07 fxmesa.h
-rw-r--r-- 1 root root 2232 Oct 2 19:07 ggimesa.h
lrwxrwxrwx 1 root root 38 Oct 11 11:26 gl.h -> //usr/lib64/opengl/nvidia/include/gl.h
-rw-r--r-- 1 root root 78328 Oct 2 19:07 gl_mangle.h
lrwxrwxrwx 1 root root 41 Oct 11 11:26 glext.h -> //usr/lib64/opengl/global/include/glext.h
-rw-r--r-- 1 root root 4338 Oct 2 19:07 glfbdev.h
-rw-r--r-- 1 root root 16668 Oct 2 19:07 glu.h
-rw-r--r-- 1 root root 3315 Oct 2 19:07 glu_mangle.h
-rw-r--r-- 1 root root 30192 Jun 25 14:20 glut.h
-rw-r--r-- 1 root root 4109 Jun 25 14:20 glutf90.h
lrwxrwxrwx 1 root root 39 Oct 11 11:26 glx.h -> //usr/lib64/opengl/nvidia/include/glx.h
-rw-r--r-- 1 root root 2031 Oct 2 19:07 glx_mangle.h
lrwxrwxrwx 1 root root 42 Oct 11 11:26 glxext.h -> //usr/lib64/opengl/global/include/glxext.h
-rw-r--r-- 1 root root 4257 Sep 21 16:54 glxint.h
lrwxrwxrwx 1 root root 43 Oct 11 11:26 glxmd.h -> //usr/lib64/opengl/xorg-x11/include/glxmd.h
lrwxrwxrwx 1 root root 46 Oct 11 11:26 glxproto.h -> //usr/lib64/opengl/xorg-x11/include/glxproto.h
lrwxrwxrwx 1 root root 47 Oct 11 11:26 glxtokens.h -> //usr/lib64/opengl/xorg-x11/include/glxtokens.h
drwxr-xr-x 2 root root 104 Sep 21 16:54 internal
-rw-r--r-- 1 root root 5609 Oct 2 19:07 mesa_wgl.h
-rw-r--r-- 1 root root 3174 Oct 2 19:07 mglmesa.h
-rw-r--r-- 1 root root 8595 Oct 2 19:07 osmesa.h
-rw-r--r-- 1 root root 2508 Oct 2 19:07 svgamesa.h
-rw-r--r-- 1 root root 1360 Oct 2 19:07 uglglutshapes.h
-rw-r--r-- 1 root root 4313 Oct 2 19:07 uglmesa.h
-rw-r--r-- 1 root root 51274 Oct 2 19:07 vms_x_fix.h
-rw-r--r-- 1 root root 4402 Oct 2 19:07 wmesa.h
-rw-r--r-- 1 root root 10401 Oct 2 19:07 xmesa.h
-rw-r--r-- 1 root root 3313 Oct 2 19:07 xmesa_x.h
-rw-r--r-- 1 root root 5401 Oct 2 19:07 xmesa_xf86.h
|
|
|
Back to top |
|
|
darklegion Guru
Joined: 14 Nov 2004 Posts: 468
|
Posted: Mon Oct 16, 2006 8:33 am Post subject: |
|
|
Here's mine:
Code: |
ls -l /usr/include/GL
total 316
-rw-r--r-- 1 root root 2276 2006-06-28 11:33 amesa.h
-rw-r--r-- 1 root root 2043 2006-06-28 11:33 directfbgl.h
-rw-r--r-- 1 root root 4672 2006-06-28 11:33 dmesa.h
-rw-r--r-- 1 root root 5028 2006-06-27 18:10 freeglut_ext.h
-rw-r--r-- 1 root root 681 2006-06-27 18:10 freeglut.h
-rw-r--r-- 1 root root 23684 2006-06-27 18:10 freeglut_std.h
-rw-r--r-- 1 root root 2710 2006-06-28 11:33 fxmesa.h
-rw-r--r-- 1 root root 2232 2006-06-28 11:33 ggimesa.h
lrwxrwxrwx 1 root root 40 2006-10-13 02:48 glext.h -> /usr/lib64/opengl/global/include/glext.h
-rw-r--r-- 1 root root 4302 2006-06-28 11:33 glfbdev.h
lrwxrwxrwx 1 root root 37 2006-10-13 02:48 gl.h -> /usr/lib64/opengl/nvidia/include/gl.h
-rw-r--r-- 1 root root 77889 2006-06-28 11:33 gl_mangle.h
-rw-r--r-- 1 root root 16668 2006-06-28 11:33 glu.h
-rw-r--r-- 1 root root 3315 2006-06-28 11:33 glu_mangle.h
-rw-r--r-- 1 root root 639 2006-06-27 18:10 glut.h
-rw-r--r-- 1 root root 6609 2006-06-28 11:33 GLwDrawA.h
lrwxrwxrwx 1 root root 41 2006-10-13 02:48 glxext.h -> /usr/lib64/opengl/global/include/glxext.h
lrwxrwxrwx 1 root root 38 2006-10-13 02:48 glx.h -> /usr/lib64/opengl/nvidia/include/glx.h
-rw-r--r-- 1 root root 4257 2006-06-28 11:13 glxint.h
-rw-r--r-- 1 root root 2031 2006-06-28 11:33 glx_mangle.h
lrwxrwxrwx 1 root root 42 2006-10-13 02:48 glxmd.h -> /usr/lib64/opengl/xorg-x11/include/glxmd.h
lrwxrwxrwx 1 root root 45 2006-10-13 02:48 glxproto.h -> /usr/lib64/opengl/xorg-x11/include/glxproto.h
lrwxrwxrwx 1 root root 44 2006-10-13 02:48 glxtokens.h -> /usr/lib64/opengl/nvidia/include/glxtokens.h
drwxr-xr-x 2 root root 4096 2006-06-24 23:01 internal
-rw-r--r-- 1 root root 5609 2006-06-28 11:33 mesa_wgl.h
-rw-r--r-- 1 root root 3174 2006-06-28 11:33 mglmesa.h
-rw-r--r-- 1 root root 8595 2006-06-28 11:33 osmesa.h
-rw-r--r-- 1 root root 2508 2006-06-28 11:33 svgamesa.h
-rw-r--r-- 1 root root 1360 2006-06-28 11:33 uglglutshapes.h
-rw-r--r-- 1 root root 4313 2006-06-28 11:33 uglmesa.h
-rw-r--r-- 1 root root 38120 2006-06-28 11:33 vms_x_fix.h
-rw-r--r-- 1 root root 4402 2006-06-28 11:33 wmesa.h
-rw-r--r-- 1 root root 10401 2006-06-28 11:33 xmesa.h
-rw-r--r-- 1 root root 5401 2006-06-28 11:33 xmesa_xf86.h
|
Looks the same as yours as far as I can tell.
Do these files come from nvidia-legacy-drivers or do they come from another package.Is there a way of searching for files within packages, such as can be done with http://packages.debian.org under debian?
I'll try re-emerging nvidia-legacy-drivers again sometime later, although I'm pretty sure I've already tried this. |
|
Back to top |
|
|
whig l33t
Joined: 27 Nov 2004 Posts: 973 Location: New Zealand
|
|
Back to top |
|
|
darklegion Guru
Joined: 14 Nov 2004 Posts: 468
|
Posted: Tue Oct 17, 2006 6:01 am Post subject: |
|
|
Re-emerging eselect-opengl fixed it.Thanks for that link, wouldn't have found where the file was from without it. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|