brektrou / rtl8821CU

Realtek RTL8811CU/RTL8821CU USB Wi-Fi adapter driver for Linux
GNU General Public License v2.0
1.59k stars 460 forks source link

raspberry pi 4 build error #47

Closed CMCCAdmin closed 4 years ago

CMCCAdmin commented 4 years ago

make ARCH=arm CROSS_COMPILE= -C /lib/modules/4.19.97-v7l+/build M=/home/pi/rtl8821CU modules make[1]: 进入目录“/usr/src/linux-headers-4.19.97-v7l+” CC [M] /home/pi/rtl8821CU/core/rtw_cmd.o gcc: error: -mfloat-abi=soft and -mfloat-abi=hard may not be used together make[2]: [scripts/Makefile.build:304:/home/pi/rtl8821CU/core/rtw_cmd.o] 错误 1 make[1]: [Makefile:1522:module/home/pi/rtl8821CU] 错误 2 make[1]: 离开目录“/usr/src/linux-headers-4.19.97-v7l+” make: *** [Makefile:2213:modules] 错误 2

rrafal1337 commented 4 years ago

Hi. You need to follow this instruction to avoid this problem: https://github.com/brektrou/rtl8821CU#arm-architecture-tweak-for-this-driver-this-solves-compilation-problem-of-this-driver By default is -mfloat-abi=soft but this driver requires -mfloat-abi=hard and you can't use both at same time.