anbox / anbox-modules

Anbox kernel modules
327 stars 224 forks source link

Failed to build anbox-modules on Fedora 35 linux kernel 5.15.7 #88

Open bickkysahani opened 2 years ago

bickkysahani commented 2 years ago

$ sudo dkms install anbox-ashmem/1

Creating symlink /var/lib/dkms/anbox-ashmem/1/source -> /usr/src/anbox-ashmem-1

Building module: cleaning build area... make -j4 KERNELRELEASE=5.15.7-200.fc35.x86_64 all KERNEL_SRC=/lib/modules/5.15.7-200.fc35.x86_64/build...(bad exit status: 2) Error! Bad return status for module build on kernel: 5.15.7-200.fc35.x86_64 (x86_64) Consult /var/lib/dkms/anbox-ashmem/1/build/make.log for more information

SoulInfernoDE commented 2 years ago

In newer kernel versions the anbox modules are migrated into the kernel. You need to build the kernel with the modules enabled and uninstall the modules first. As a base reading you can follow my writeup (you need to copy the writeup for fedora of course): https://github.com/anbox/anbox-modules/issues/75#issuecomment-794079944

https://fedoraproject.org/wiki/Building_a_custom_kernel

How to enable the android modules in the kernel configuration before building from source: https://fedoraproject.org/wiki/Building_a_custom_kernel#Configuring_the_kernel

Short steps overview: