我正在按照說明進行操作這裡sudo make
但當我運行和時出現錯誤sudo make install
。關於如何修復此錯誤的任何想法:
make all-recursive
make[1]: Entering directory '/home/me/xserver-xorg-input-synaptics'
Making all in include
make[2]: Entering directory '/home/me/xserver-xorg-input-synaptics/include'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/me/xserver-xorg-input-synaptics/include'
Making all in src
make[2]: Entering directory '/home/me/xserver-xorg-input-synaptics/src'
CC synaptics.lo
CC synproto.lo
In file included from /usr/include/string.h:630:0,
from /usr/include/xorg/os.h:53,
from /usr/include/xorg/misc.h:116,
from /usr/include/xorg/xf86str.h:37,
from /usr/include/xorg/xf86.h:44,
from /usr/include/xorg/xf86Xinput.h:54,
from synproto.h:36,
from synproto.c:24:
/usr/include/xorg/os.h:590:1: error: expected identifier or ‘(’ before ‘__extension__’
strndup(const char *str, size_t n);
^
Makefile:515: recipe for target 'synproto.lo' failed
make[2]: *** [synproto.lo] Error 1
make[2]: Leaving directory '/home/me/xserver-xorg-input-synaptics/src'
Makefile:511: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/me/xserver-xorg-input-synaptics'
Makefile:420: recipe for target 'all' failed
make: *** [all] Error 2
答案1
我剛剛也遇到過這個問題,並發現了以下內容:
https://github.com/felipejfc/xserver-xorg-input-synaptics/issues/1
然後我發現了這個:
雖然是幾年前的事了,但看起來還是同一個問題。
總結以上兩個鏈接,要讓驅動程式與較新版本的 glibc 配合使用,您必須修改使用以下命令克隆的 git 儲存庫中的 3 個檔案:
$ git clone https://github.com/Chosko/xserver-xorg-input-synaptics.git
這些檔案都位於src目錄下,名稱如下:
- eventcomm.h
- ps2comm.h
- 同步協定.h
您需要添加#include <xorg-server.h>
到上述文件(我已將其放在每個文件中包含的其他文件之上),然後重新運行以下命令:
$ ./autogen.sh $ ./configure --exec_prefix=/usr $ make $ sudo make install
我不知道這是否是正確的方法,但它對我有用!
如果您的觸控板不再工作,請不要怪我!