Strona 1 z 1

Problem z kompilacją sterownika synaptics.

: 2009-07-02, 19:26
autor: makron
Witam. Mam problem z kompilacja sterownika synaptics. Przy make dostaje taki wynik:

Kod: Zaznacz cały

bash-3.1$ make                                                                                                                                               
rm -f synaptics.o                                                                                                                                            
gcc -c -O2 -pedantic -Wall -Wpointer-arith -fno-merge-constants -fPIC -I. -I/usr/include/X11 -I/usr/include/X11/extensions -I/usr/include/xorg -Dlinux -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE  -D_GNU_SOURCE  -DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP -DXCSECURITY -DTOGCUP   -DDPMSExtension  -DPIXPRIV -DPANORAMIX  -DRENDER -DGCCUSESGAS -DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH -DXFreeXDGA -DXvExtension -DXFree86LOADER  -DXFree86Server -DXF86VIDMODE  -DSMART_SCHEDULE -DBUILDDEBUG -DX_BYTE_ORDER=X_LITTLE_ENDIAN -DNDEBUG -D__i386__ -DFUNCPROTO=15 -DNARROWPROTO -DIN_MODULE -DXFree86Module -DVERSION="\"0.14.6\"" -DVERSION_ID="(0*10000+14*100+6)"  synaptics.c                                                                                  
In file included from /usr/include/xorg/misc.h:113,                                                                                                          
                 from synaptics.c:70:                                                                                                                        
/usr/include/xorg/os.h:517:16: warning: anonymous variadic macros were introduced in C99                                                                     
In file included from /usr/include/xorg/xf86.h:47,                                                                                                           
                 from synaptics.c:71:                                                                                                                        
/usr/include/xorg/xf86str.h:1098: warning: comma at end of enumerator list                                                                                   
synaptics.c:73:24: error: xf86_ansic.h: Nie ma takiego pliku ani katalogu                                                                                    
synaptics.c:161: error: 'XF86_VERSION_CURRENT' undeclared here (not in a function)                                                                           
synaptics.c: In function 'SetDeviceAndProtocol':                                                                                                             
synaptics.c:195: warning: implicit declaration of function 'strcmp'                                                                                          
synaptics.c: In function 'alloc_param_data':                                                                                                                 
synaptics.c:239: warning: implicit declaration of function 'xf86shmget'                                                                                      
synaptics.c:240: warning: implicit declaration of function 'xf86shmctl'                                                                                      
synaptics.c:240: error: 'XF86IPC_RMID' undeclared (first use in this function)                                                                               
synaptics.c:240: error: (Each undeclared identifier is reported only once                                                                                    
synaptics.c:240: error: for each function it appears in.)                                                                                                    
synaptics.c:242: error: 'XF86IPC_CREAT' undeclared (first use in this function)                                                                              
synaptics.c:246: warning: implicit declaration of function 'xf86shmat'                                                                                       
synaptics.c: In function 'free_param_data':                                                                                                                  
synaptics.c:273: error: 'XF86IPC_RMID' undeclared (first use in this function)                                                                               
synaptics.c: In function 'synSetFloatOption':                                                                                                                
synaptics.c:287: warning: implicit declaration of function 'xf86sscanf'                                                                                      
synaptics.c: In function 'SynapticsPreInit':                                                                                                                 
synaptics.c:494: warning: implicit declaration of function 'xf86mknod'                                                                                       
synaptics.c:494: error: 'XF86_S_IFIFO' undeclared (first use in this function)                                                                               
synaptics.c:495: error: 'xf86errno' undeclared (first use in this function)                                                                                  
synaptics.c:495: error: 'xf86_EEXIST' undeclared (first use in this function)                                                                                
synaptics.c:504: warning: implicit declaration of function 'xf86free'                                                                                        
synaptics.c: In function 'DeviceInit':                                                                                                                       
synaptics.c:677: warning: passing argument 4 of 'InitPointerDeviceStruct' from incompatible pointer type                                                     
synaptics.c:677: warning: passing argument 5 of 'InitPointerDeviceStruct' makes integer from pointer without a cast                                          
synaptics.c:677: error: too many arguments to function 'InitPointerDeviceStruct'                                                                             
synaptics.c: In function 'move_distance':                                                                                                                    
synaptics.c:697: warning: implicit declaration of function 'xf86sqrt'                                                                                        
synaptics.c: In function 'angle':                                                                                                                            
synaptics.c:732: warning: implicit declaration of function 'xf86atan2'                                                                                       
synaptics.c: In function 'diffa':                                                                                                                            
synaptics.c:739: warning: implicit declaration of function 'xf86fmod'                                                                                        
synaptics.c: In function 'SynapticsGetHwState':                                                                                                              
synaptics.c:847: warning: implicit declaration of function 'xf86write'                                                                                       
synaptics.c: In function 'ComputeDeltas':                                                                                                                    
synaptics.c:1405: warning: implicit declaration of function 'xf86modf'                                                                                       
make: *** [synaptics.o] Błąd 1
Co może być przyczyną tego dziwnego zjawiska?

Re: Problem z kompilacją sterownika synaptics.

: 2009-07-02, 19:33
autor: marco70
Jaka wersja Slackware ?

Re: Problem z kompilacją sterownika synaptics.

: 2009-07-02, 23:38
autor: makron
Slackware current oczywiscie.

Re: Problem z kompilacją sterownika synaptics.

: 2009-07-03, 04:58
autor: Sajmon
Na curencie xf86_ansic.h nie znajdziesz.


edit:
Pobierz z ostatnich dwu wersji Slackware MANIFEST.bz2, rozpakuj i poszukaj xf86_ansic.h .

Re: Problem z kompilacją sterownika synaptics.

: 2009-07-03, 07:58
autor: marco70
A czy ta paczka nie wystarczy ?

Re: Problem z kompilacją sterownika synaptics.

: 2009-07-03, 10:12
autor: makron
Paczke xf86-input-synaptics mam zainstalowana, ale chodzi mi o pelne wsparcie dla touchpada (przewijanie stron, mozliwosc zmiany czulosci i wszystkie pozostale bajery). Zaraz sprawdze ten MANIFEST.bz2

Re: Problem z kompilacją sterownika synaptics.

: 2009-07-03, 11:34
autor: marco70
To jaką wersję chcesz skompilować ?
To czytałeś ?

Re: Problem z kompilacją sterownika synaptics.

: 2009-07-04, 00:10
autor: makron
http://web.telia.com/~u89404340/touchpad/

Blog mi scxd mi sie nie laduje (Nie mozna wyswietlic strony).

Edit:

Z paczki xorg-server-1.4.2-i486-1.tgz z Slackware 12.2 wyjąłem pliki których brakowało po błędach:

Kod: Zaznacz cały

xf86_ansic.h
xf86_libc.h
Teraz kompilacja zatrzymuje się na:

Kod: Zaznacz cały

bash-3.1$ make
rm -f synaptics.o
gcc -c -O2 -pedantic -Wall -Wpointer-arith -fno-merge-constants -fPIC -I. -I/usr/include/X11 -I/usr/include/X11/extensions -I/usr/include/xorg -Dlinux -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE  -D_GNU_SOURCE  -DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP -DXCSECURITY -DTOGCUP   -DDPMSExtension  -DPIXPRIV -DPANORAMIX  -DRENDER -DGCCUSESGAS -DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH -DXFreeXDGA -DXvExtension -DXFree86LOADER  -DXFree86Server -DXF86VIDMODE  -DSMART_SCHEDULE -DBUILDDEBUG -DX_BYTE_ORDER=X_LITTLE_ENDIAN -DNDEBUG -D__i386__ -DFUNCPROTO=15 -DNARROWPROTO -DIN_MODULE -DXFree86Module -DVERSION="\"0.14.6\"" -DVERSION_ID="(0*10000+14*100+6)"  synaptics.c

In file included from /usr/include/xorg/misc.h:113,
                 from synaptics.c:70:
/usr/include/xorg/os.h:517:16: warning: anonymous variadic macros were introduced in C99
In file included from /usr/include/xorg/xf86.h:47,
                 from synaptics.c:71:
/usr/include/xorg/xf86str.h:1098: warning: comma at end of enumerator list
synaptics.c:161: error: ‘XF86_VERSION_CURRENT’ undeclared here (not in a function)
synaptics.c: In function ‘DeviceInit’:
synaptics.c:677: warning: passing argument 4 of ‘InitPointerDeviceStruct’ from incompatible pointer type
synaptics.c:677: warning: passing argument 5 of ‘InitPointerDeviceStruct’ makes integer from pointer without a cast
synaptics.c:677: error: too many arguments to function ‘InitPointerDeviceStruct’
make: *** [synaptics.o] Błąd 1
Nie wiem czy jest sens się tym bawić, czy nie lepiej zrobić downgrade całego xorga, gdzie wszystko kiedyś działało...

Re: Problem z kompilacją sterownika synaptics.

: 2009-07-04, 10:15
autor: marco70
Faktycznie stronka nie działa (edit już działa).Chodzi mi o ten fragment
Istnieje możliwość pozostania przy starym /etc/X11/xorg.conf. Wystarczy w sekcji ServerLayout dopisać

Kod: Zaznacz cały

Option "AllowEmptyInput" "false"
Odpuść sobie kompilację starszej wersji i poczytaj o nowym xorg-1.6. Zaglądnij do
/var/log/Xorg.0.log tam coś może będzie dlaczego na nowszym sterowniku nie działa.
Jak Miałeś Slackware-12.2 to była tam taka wersja synaptics

Re: Problem z kompilacją sterownika synaptics.

: 2009-07-04, 18:37
autor: makron
Tak, ale chodzi o to ze w starym slacku i tak instalowałem te sterowniki ze strony, ktora podalem. Bez tego touchpad dziala - jest wykrywany przez system i da sie z niego korzystac, ale ma bardzo niska czulosc i nie dzialaja scrolle, ani klikanie w niego 'stuknieciem'. Tak samo bylo na starszych wersjach slacka, i tak samo jest na obecnej. Zawsze kompilowalem ten sterownik z http://web.telia.com/~u89404340/touchpad/

[ Dodano: 2009-07-06, 23:10 ]
Przeczytałem posta na blogu scxd, pozmieniałem xorg.conf, który aktualnie wygląda tak:

Kod: Zaznacz cały

##
## xorg.conf by KB
##

Section "Files"
    FontPath   "/usr/share/fonts/TTF"
    FontPath   "/usr/share/fonts/OTF"
    FontPath   "/usr/share/fonts/Type1"
    FontPath   "/usr/share/fonts/misc"
    FontPath   "/usr/share/fonts/75dpi/:unscaled"
    FontPath   "/usr/lib/X11/fonts/misc/"
    FontPath   "/usr/lib/X11/fonts/75dpi/:unscaled"
    FontPath   "/usr/lib/X11/fonts/100dpi/:unscaled"
    FontPath   "/usr/lib/X11/fonts/Speedo/"
    FontPath   "/usr/lib/X11/fonts/Type1/"
    FontPath   "/usr/lib/X11/fonts/TTF/"
    FontPath   "/usr/lib/X11/fonts/OTF/"
    FontPath   "/usr/lib/X11/fonts/cyrillic/"
    FontPath   "/usr/lib/X11/fonts/75dpi/"
    FontPath   "/usr/lib/X11/fonts/100dpi/"
EndSection

Section "ServerFlags"
Option "PixmapCacheSize" "1000000"
Option "AllowSHMPixmaps" "0"
EndSection

Section "Device"
    Identifier     "Karta Graficzna"
    Driver         "nvidia"
    Option "NoLogo" "true"
EndSection

Section "Screen"
    Identifier     "Ekran"
    Device         "Karta Graficzna"
    Monitor        "Monitor"
    Option "DynamicTwinView" "False"
EndSection

Section "ServerLayout"
    Identifier     "Layout0"
    Screen         "Ekran" 0 0
EndSection
Działa teraz równolegle touchpad i mysz, ale zależy mi na tym aby poustawiać to przewijanie w nim i klikniecie za pomoca stukniecia, a nie przyciskiem. Jak to mam zrobic?