PDA

Visualizza la versione completa : Problema compilazione driver


untamed
07-04-2007, 13:07
Provando a compilare un driver unichrome su una Mepis 6.5 mi viene fuori una serie di errori:



root@2[openchrome]# make
make all-recursive
make[1]: Entering directory `/root/openchrome'
Making all in unichrome
make[2]: Entering directory `/root/openchrome/unichrome'
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -DXFree86Server -DIN_MODULE -DXFree86Module -DXFree86LOADER -I/usr/include/xorg -I/usr/include/drm -I/usr/include/drm -I/usr/include/X11/dri -g -O2 -MT via_accel.lo -MD -MP -MF ".deps/via_accel.Tpo" -c -o via_accel.lo via_accel.c; \
then mv -f ".deps/via_accel.Tpo" ".deps/via_accel.Plo"; else rm -f ".deps/via_accel.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DXFree86Server -DIN_MODULE -DXFree86Module -DXFree86LOADER -I/usr/include/xorg -I/usr/include/drm -I/usr/include/drm -I/usr/include/X11/dri -g -O2 -MT via_accel.lo -MD -MP -MF .deps/via_accel.Tpo -c via_accel.c -fPIC -DPIC -o .libs/via_accel.o
In file included from via_accel.c:45:
via_driver.h:73:23: error: GL/glxint.h: No such file or directory
In file included from via_accel.c:45:
via_driver.h:319: error: syntax error before '__GLXvisualConfig'
via_driver.h:319: warning: no semicolon at end of struct or union
via_driver.h:369: error: syntax error before '}' token
via_driver.h:369: warning: data definition has no type or storage class
via_driver.h:432: error: syntax error before 'pVia'
via_accel.c: In function 'viaFlushPCI':
via_accel.c:86: error: syntax error before 'pVia'
via_accel.c:92: error: 'pVia' undeclared (first use in this function)
via_accel.c:92: error: (Each undeclared identifier is reported only once
via_accel.c:92: error: for each function it appears in.)
via_accel.c: In function 'viaFlushDRIEnabled':
via_accel.c:141: error: syntax error before 'pVia'
via_accel.c:151: error: 'pVia' undeclared (first use in this function)
via_accel.c: In function 'viaSetupCBuffer':
via_accel.c:189: error: syntax error before 'pVia'
via_accel.c:205: error: 'pVia' undeclared (first use in this function)
via_accel.c: At top level:
via_accel.c:229: error: syntax error before 'pVia'
via_accel.c: In function 'viaInitAgp':
via_accel.c:231: error: 'pVia' undeclared (first use in this function)
via_accel.c: At top level:
via_accel.c:253: error: syntax error before 'pVia'
via_accel.c: In function 'viaEnableVQ':
via_accel.c:256: error: 'pVia' undeclared (first use in this function)
via_accel.c: In function 'viaDisableVQ':
via_accel.c:294: error: syntax error before 'pVia'
via_accel.c:296: error: 'pVia' undeclared (first use in this function)
via_accel.c: In function 'viaInitialize2DEngine':
via_accel.c:338: error: syntax error before 'pVia'
via_accel.c:339: error: 'pVia' undeclared (first use in this function)
via_accel.c: In function 'viaAccelSync':
via_accel.c:368: error: syntax error before 'pVia'
via_accel.c:373: error: 'pVia' undeclared (first use in this function)
via_accel.c: In function 'viaSetClippingRectangle':
via_accel.c:388: error: syntax error before 'pVia'
via_accel.c:389: error: 'pVia' undeclared (first use in this function)
via_accel.c: In function 'viaDisableClipping':
via_accel.c:405: error: syntax error before 'pVia'
via_accel.c:406: error: 'pVia' undeclared (first use in this function)
via_accel.c: In function 'viaSetupForScreenToScreenCopy':
via_accel.c:556: error: syntax error before 'pVia'
via_accel.c:558: error: 'pVia' undeclared (first use in this function)
via_accel.c: In function 'viaSubsequentScreenToScreenCopy':
via_accel.c:579: error: syntax error before 'pVia'
via_accel.c:580: error: 'pVia' undeclared (first use in this function)
via_accel.c: In function 'viaSetupForSolidFill':
via_accel.c:603: error: syntax error before 'pVia'
via_accel.c:604: error: 'pVia' undeclared (first use in this function)
via_accel.c: In function 'viaSubsequentSolidFillRect':
via_accel.c:616: error: syntax error before 'pVia'
via_accel.c:617: error: 'pVia' undeclared (first use in this function)
via_accel.c: In function 'viaSetupForMono8x8PatternFill':
via_accel.c:649: error: syntax error before 'pVia'
via_accel.c:651: error: 'pVia' undeclared (first use in this function)
via_accel.c: In function 'viaSubsequentMono8x8PatternFillRect':
via_accel.c:675: error: syntax error before 'pVia'
via_accel.c:677: error: 'pVia' undeclared (first use in this function)
via_accel.c: In function 'viaSetupForColor8x8PatternFill':
via_accel.c:709: error: syntax error before 'pVia'
via_accel.c:710: error: 'pVia' undeclared (first use in this function)
via_accel.c: In function 'viaSubsequentColor8x8PatternFillRect':
via_accel.c:724: error: syntax error before 'pVia'
via_accel.c:726: error: 'pVia' undeclared (first use in this function)
via_accel.c: In function 'viaSetupForCPUToScreenColorExpandFill':
via_accel.c:763: error: syntax error before 'pVia'
via_accel.c:765: error: 'pVia' undeclared (first use in this function)
via_accel.c: In function 'viaSubsequentScanlineCPUToScreenColorExpandFill':
via_accel.c:789: error: syntax error before 'pVia'
via_accel.c:790: error: 'pVia' undeclared (first use in this function)
via_accel.c: In function 'viaSetupForImageWrite':
via_accel.c:816: error: syntax error before 'pVia'
via_accel.c:817: error: 'pVia' undeclared (first use in this function)
via_accel.c: In function 'viaSubsequentImageWriteRect':
via_accel.c:831: error: syntax error before 'pVia'
via_accel.c:832: error: 'pVia' undeclared (first use in this function)
via_accel.c: In function 'viaSetupForSolidLine':
via_accel.c:855: error: syntax error before 'pVia'
via_accel.c:856: error: 'pVia' undeclared (first use in this function)
via_accel.c: In function 'viaSubsequentSolidTwoPointLine':
via_accel.c:875: error: syntax error before 'pVia'
via_accel.c:877: error: 'pVia' undeclared (first use in this function)
via_accel.c: In function 'viaSubsequentSolidHorVertLine':
via_accel.c:939: error: syntax error before 'pVia'
via_accel.c:940: error: 'pVia' undeclared (first use in this function)
via_accel.c: In function 'viaSetupForDashedLine':
via_accel.c:969: error: syntax error before 'pVia'
via_accel.c:972: error: 'pVia' undeclared (first use in this function)
via_accel.c: In function 'viaInitXAA':
via_accel.c:1020: error: syntax error before 'pVia'
via_accel.c:1027: error: 'pVia' undeclared (first use in this function)
via_accel.c: In function 'viaAccelMarkSync':
via_accel.c:1132: error: syntax error before 'pVia'
via_accel.c:1134: error: 'pVia' undeclared (first use in this function)
via_accel.c: In function 'viaAccelWaitMarker':
via_accel.c:1163: error: syntax error before 'pVia'
via_accel.c:1166: error: 'pVia' undeclared (first use in this function)
via_accel.c: In function 'viaExaPrepareSolid':
via_accel.c:1184: error: syntax error before 'pVia'
via_accel.c:1185: error: 'pVia' undeclared (first use in this function)
via_accel.c: In function 'viaExaSolid':
via_accel.c:1210: error: syntax error before 'pVia'
via_accel.c:1211: error: 'pVia' undeclared (first use in this function)
via_accel.c: In function 'viaExaPrepareCopy':
via_accel.c:1236: error: syntax error before 'pVia'
via_accel.c:1237: error: 'pVia' undeclared (first use in this function)
via_accel.c: In function 'viaExaCopy':
via_accel.c:1274: error: syntax error before 'pVia'
via_accel.c:1275: error: 'pVia' undeclared (first use in this function)
via_accel.c: In function 'viaCheckUpload':
via_accel.c:1470: error: syntax error before 'pVia'
via_accel.c:1473: error: 'pVia' undeclared (first use in this function)
via_accel.c: In function 'viaAccelDMADownload':
via_accel.c:1506: error: syntax error before 'pVia'
via_accel.c:1532: error: 'pVia' undeclared (first use in this function)
via_accel.c: In function 'viaExaDownloadFromScreen':
via_accel.c:1597: error: syntax error before 'pVia'
via_accel.c:1616: error: 'pVia' undeclared (first use in this function)
via_accel.c: In function 'viaExaTexUploadToScreen':
via_accel.c:1651: error: syntax error before 'pVia'
via_accel.c:1660: error: 'pVia' undeclared (first use in this function)
via_accel.c: In function 'viaExaUploadToScreen':
via_accel.c:1774: error: syntax error before 'pVia'
via_accel.c:1788: error: 'pVia' undeclared (first use in this function)
via_accel.c: In function 'viaExaUploadToScratch':
via_accel.c:1835: error: syntax error before 'pVia'
via_accel.c:1840: error: 'pVia' undeclared (first use in this function)
via_accel.c: In function 'viaExaCheckComposite':
via_accel.c:1885: error: syntax error before 'pVia'
via_accel.c:1886: error: 'pVia' undeclared (first use in this function)
via_accel.c: At top level:
via_accel.c:1953: error: syntax error before 'pVia'
via_accel.c: In function 'viaIsAGP':
via_accel.c:1958: error: 'pVia' undeclared (first use in this function)
via_accel.c:1959: error: 'pPix' undeclared (first use in this function)
via_accel.c:1963: error: 'offset' undeclared (first use in this function)
via_accel.c: At top level:
via_accel.c:1972: error: syntax error before 'pVia'
via_accel.c: In function 'viaIsOffscreen':
via_accel.c:1974: error: 'pPix' undeclared (first use in this function)
via_accel.c:1975: error: 'pVia' undeclared (first use in this function)
via_accel.c: In function 'viaExaPrepareComposite':
via_accel.c:1985: error: syntax error before 'pVia'
via_accel.c:1986: error: 'pVia' undeclared (first use in this function)
via_accel.c: In function 'viaExaComposite':
via_accel.c:2089: error: syntax error before 'pVia'
via_accel.c:2090: error: 'pVia' undeclared (first use in this function)
via_accel.c: In function 'viaInitExa':
via_accel.c:2117: error: syntax error before 'pVia'
via_accel.c:2127: error: 'pVia' undeclared (first use in this function)
via_accel.c: In function 'viaInitAccel':
via_accel.c:2269: error: syntax error before 'pVia'
via_accel.c:2274: error: 'pVia' undeclared (first use in this function)
via_accel.c: In function 'viaExitAccel':
via_accel.c:2394: error: syntax error before 'pVia'
via_accel.c:2397: error: 'pVia' undeclared (first use in this function)
via_accel.c: In function 'viaFinishInitAccel':
via_accel.c:2448: error: syntax error before 'pVia'
via_accel.c:2454: error: 'pVia' undeclared (first use in this function)
via_accel.c: In function 'viaAccelBlitRect':
via_accel.c:2543: error: syntax error before 'pVia'
via_accel.c:2544: error: 'pVia' undeclared (first use in this function)
via_accel.c: In function 'viaAccelFillRect':
via_accel.c:2577: error: syntax error before 'pVia'
via_accel.c:2578: error: 'pVia' undeclared (first use in this function)
via_accel.c: In function 'viaAccelFillPixmap':
via_accel.c:2603: error: syntax error before 'pVia'
via_accel.c:2605: error: 'pVia' undeclared (first use in this function)
via_accel.c: In function 'viaAccelSyncMarker':
via_accel.c:2626: error: syntax error before 'pVia'
via_accel.c:2628: error: 'pVia' undeclared (first use in this function)
via_accel.c: In function 'viaAccelTextureBlit':
via_accel.c:2637: error: syntax error before 'pVia'
via_accel.c:2639: error: 'pVia' undeclared (first use in this function)
via_accel.c:2641: warning: passing argument 2 of 'viaOrder' from incompatible pointer type
via_accel.c:2642: warning: passing argument 2 of 'viaOrder' from incompatible pointer type
make[2]: *** [via_accel.lo] Error 1
make[2]: Leaving directory `/root/openchrome/unichrome'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/openchrome'
make: *** [all] Error 2


Ho evidenziato quello che mi sembra l'errore principale ma non so come porvi rimedio...

Aiuto!!

andy caps
07-04-2007, 13:37
andy:~# dpkg -S /usr/include/GL/glxint.h
x11proto-gl-dev: /usr/include/GL/glxint.h
andy:~#


devi installare i -dev di xorg e quelli delle sue librerie

installando x11proto-gl-dev comunque poi trova glxint.h

untamed
07-04-2007, 13:46
Argh!! Dopo aver installato x11proto-gl-dev mi dice:



root@2[openchrome]# make
make all-recursive
make[1]: Entering directory `/root/openchrome'
Making all in unichrome
make[2]: Entering directory `/root/openchrome/unichrome'
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -DXFree86Server -DIN_MODULE -DXFree86Module -DXFree86LOADER -I/usr/include/xorg -I/usr/include/drm -I/usr/include/drm -I/usr/include/X11/dri -g -O2 -MT via_accel.lo -MD -MP -MF ".deps/via_accel.Tpo" -c -o via_accel.lo via_accel.c; \
then mv -f ".deps/via_accel.Tpo" ".deps/via_accel.Plo"; else rm -f ".deps/via_accel.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DXFree86Server -DIN_MODULE -DXFree86Module -DXFree86LOADER -I/usr/include/xorg -I/usr/include/drm -I/usr/include/drm -I/usr/include/X11/dri -g -O2 -MT via_accel.lo -MD -MP -MF .deps/via_accel.Tpo -c via_accel.c -fPIC -DPIC -o .libs/via_accel.o
In file included from via_driver.h:73,
from via_accel.c:45:
/usr/include/GL/glxint.h:28:19: error: GL/gl.h: No such file or directory
In file included from via_driver.h:73,
from via_accel.c:45:
/usr/include/GL/glxint.h:95: error: syntax error before 'GLboolean'
/usr/include/GL/glxint.h:97: error: syntax error before 'doubleBufferMode'
/usr/include/GL/glxint.h:98: error: syntax error before 'stereoMode'
/usr/include/GL/glxint.h:99: error: syntax error before 'haveAccumBuffer'
/usr/include/GL/glxint.h:100: error: syntax error before 'haveDepthBuffer'
/usr/include/GL/glxint.h:101: error: syntax error before 'haveStencilBuffer'
/usr/include/GL/glxint.h:104: error: syntax error before 'accumRedBits'
/usr/include/GL/glxint.h:105: error: syntax error before 'depthBits'
/usr/include/GL/glxint.h:106: error: syntax error before 'stencilBits'
/usr/include/GL/glxint.h:107: error: syntax error before 'indexBits'
/usr/include/GL/glxint.h:108: error: syntax error before 'redBits'
/usr/include/GL/glxint.h:109: error: syntax error before 'redMask'
/usr/include/GL/glxint.h:111: error: syntax error before 'multiSampleSize'
/usr/include/GL/glxint.h:113: error: syntax error before 'nMultiSampleBuffers'
/usr/include/GL/glxint.h:114: error: syntax error before 'maxAuxBuffers'
/usr/include/GL/glxint.h:117: error: syntax error before 'level'
/usr/include/GL/glxint.h:120: error: syntax error before 'extendedRange'
/usr/include/GL/glxint.h:121: error: syntax error before 'minRed'
/usr/include/GL/glxint.h:122: error: syntax error before 'minGreen'
/usr/include/GL/glxint.h:123: error: syntax error before 'minBlue'
/usr/include/GL/glxint.h:124: error: syntax error before 'minAlpha'
/usr/include/GL/glxint.h:125: error: syntax error before '}' token
via_accel.c: In function 'viaAccelTextureBlit':
via_accel.c:2641: warning: passing argument 2 of 'viaOrder' from incompatible pointer type
via_accel.c:2642: warning: passing argument 2 of 'viaOrder' from incompatible pointer type
make[2]: *** [via_accel.lo] Error 1
make[2]: Leaving directory `/root/openchrome/unichrome'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/openchrome'
make: *** [all] Error 2


Che faccio, installo tutti i pacchetti x11proto* che vedo su Synaptic?

andy caps
07-04-2007, 13:59
andy:~# dpkg -S /usr/include/GL/gl.h
mesa-common-dev: /usr/include/GL/gl.h
andy:~#


questo dipende da mesa-common-dev

se installi tutti gli headers chiaramente meglio se vuoi compilare

untamed
07-04-2007, 14:08
Ok, ce l'ho fatta, il driver funziona alla perfezione. :zizi:

Grazie mille!!!!!!!!!


:mame:

Loading