安洛
2024-07-27 22:47 deepin
编译出错了,我查了下,只在这里找到了一些信息:https://github.com/NixOS/nixpkgs/issues/295708似乎是软件版本和内核版本不匹配的问题。你可以尝试删除~/xone文件夹,然后从git clone这一步开始重新下载安装xone驱动。
不过话说回来,xone驱动仍处于非常早期的阶段,内核中已经有了更成熟的(虽然也更老旧的)xpad驱动。如果你没有什么特别需要xone驱动来实现的功能,只是想日常打游戏的话,应该不需要额外安装xone驱动才对。
Reply Like 0 View the author
我在安装xbox one手柄驱动 xone的时候提示出错,翻译之后没太看明白,请大佬们帮忙看看我是少安装了什么依赖,还是什么情况。我是按照github上给的安装流程做的。谢谢!
whylinux@whylinux-PC ~/xone (master)> cd xone
sudo ./install.sh
cd: The directory 'xone' does not exist
Installing xone v0.3-57-g29ec357...
Sign command: /lib/modules/6.6.25-amd64-desktop-hwe/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Creating symlink /var/lib/dkms/xone/v0.3-57-g29ec357/source -> /usr/src/xone-v0.3-57-g29ec357
Building module:
Cleaning build area...
make -j4 KERNELRELEASE=6.6.25-amd64-desktop-hwe -C /lib/modules/6.6.25-amd64-desktop-hwe/build M=/var/lib/dkms/xone/v0.3-57-g29ec357/build.......(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.6.25-amd64-desktop-hwe (x86_64)
Consult /var/lib/dkms/xone/v0.3-57-g29ec357/build/make.log for more information.
DKMS make.log for xone-v0.3-57-g29ec357 for kernel 6.6.25-amd64-desktop-hwe (x86_64)
2024年 07月 21日 星期日 11:23:33 CST
make: 进入目录“/usr/src/linux-headers-6.6.25-amd64-desktop-hwe”
warning: the compiler differs from the one used to build the kernel
The kernel was built by: gcc (Deepin 13.2.0-3deepin) 13.2.0
You are using: gcc (Deepin 13.2.0-3deepin2) 13.2.0
CC [M] /var/lib/dkms/xone/v0.3-57-g29ec357/build/transport/wired.o
CC [M] /var/lib/dkms/xone/v0.3-57-g29ec357/build/transport/dongle.o
CC [M] /var/lib/dkms/xone/v0.3-57-g29ec357/build/transport/mt76.o
CC [M] /var/lib/dkms/xone/v0.3-57-g29ec357/build/bus/bus.o
CC [M] /var/lib/dkms/xone/v0.3-57-g29ec357/build/bus/protocol.o
CC [M] /var/lib/dkms/xone/v0.3-57-g29ec357/build/auth/auth.o
/var/lib/dkms/xone/v0.3-57-g29ec357/build/transport/dongle.c:1033:10: error: ‘struct usb_driver’ has no member named ‘drvwrap’
1033 | .drvwrap.driver.shutdown = xone_dongle_shutdown,
| ^~~~~~~
/var/lib/dkms/xone/v0.3-57-g29ec357/build/transport/dongle.c:1033:36: error: initialization of ‘const struct attribute_group **’ from incompatible pointer type ‘void (*)(struct device *)’ [-Werror=incompatible-pointer-types]
1033 | .drvwrap.driver.shutdown = xone_dongle_shutdown,
| ^~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/xone/v0.3-57-g29ec357/build/transport/dongle.c:1033:36: note: (near initialization for ‘xone_dongle_driver.dev_groups’)
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:243:/var/lib/dkms/xone/v0.3-57-g29ec357/build/transport/dongle.o] 错误 1
make[2]: *** 正在等待未完成的任务....
make[1]: *** [/usr/src/linux-headers-6.6.25-amd64-desktop-hwe/Makefile:1910:/var/lib/dkms/xone/v0.3-57-g29ec357/build] 错误 2
make: *** [Makefile:234:__sub-make] 错误 2
make: 离开目录“/usr/src/linux-headers-6.6.25-amd64-desktop-hwe”