# Problem building EmuELEC image

**URL:** <https://emuelec.discourse.group/t/problem-building-emuelec-image/63>\
**Category:** General\
**Created:** [May 11, 2021, 2:55pm UTC](https://emuelec.discourse.group/t/problem-building-emuelec-image/63 "2021-05-11T14:55:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevinrivm](https://avatars.discourse-cdn.com/v4/letter/k/77aa72/32.png) [@kevinrivm](https://emuelec.discourse.group/u/kevinrivm)\
**Post date:** [May 11, 2021, 2:55pm UTC](https://emuelec.discourse.group/t/problem-building-emuelec-image/63/1 "2021-05-11T14:55:16Z")

</div>

Hi,  
I’ve add some BT and Wifi drives to EmuELEC 4.1  
I’m trying to build with ubuntu-20.04.2.0-desktop-amd64 via windows VM 10gb RAM 200gb HDD 128MB video memory.  
I cannot build the image, it gave me the following error:

 ![error emuelec](https://global.discourse-cdn.com/free1/uploads/emuelec/original/1X/0078b749a1b4bdca4227e57c1e942f032259d984.jpeg)

It seems it’s an error with this package [GitHub - EmuELEC/gptokeyb: Gamepad to Keyboard/mouse/xbox360 emulator](https://github.com/EmuELEC/gptokeyb) because it couldn’t find the libevdev package. BTW I’ve installed this package also and still no luck  
Any ideas?

Log [[1;36mGET[0m gptokeyb (git) [1;31mDELETE[0m (/home/kevinrivm/ - Pastebin.com](https://pastebin.com/20JemFz6)

---

<div class="post-metadata">

**Author:** ![EmuELEC](https://yyz2.discourse-cdn.com/free1/user_avatar/emuelec.discourse.group/emuelec/32/26_2.png) [@EmuELEC](https://emuelec.discourse.group/u/EmuELEC)\
**Post date:** [May 11, 2021, 3:47pm UTC](https://emuelec.discourse.group/t/problem-building-emuelec-image/63/2 "2021-05-11T15:47:34Z")

</div>

Please add libevdev to the depends and try again.

`PKG_DEPENDS_TARGET="toolchain SDL2-git libevdev"`

---

<div class="post-metadata">

**Author:** ![kevinrivm](https://avatars.discourse-cdn.com/v4/letter/k/77aa72/32.png) [@kevinrivm](https://emuelec.discourse.group/u/kevinrivm)\
**Post date:** [May 11, 2021, 4:41pm UTC](https://emuelec.discourse.group/t/problem-building-emuelec-image/63/3 "2021-05-11T16:41:23Z")

</div>

Its ok like this sir

> **[kevinrivm/gptokeyb](https://github.com/kevinrivm/gptokeyb)**
>
> Gamepad to Keyboard/mouse/xbox360 emulator. Contribute to kevinrivm/gptokeyb development by creating an account on GitHub.

?

---

<div class="post-metadata">

**Author:** ![EmuELEC](https://yyz2.discourse-cdn.com/free1/user_avatar/emuelec.discourse.group/emuelec/32/26_2.png) [@EmuELEC](https://emuelec.discourse.group/u/EmuELEC)\
**Post date:** [May 11, 2021, 5:32pm UTC](https://emuelec.discourse.group/t/problem-building-emuelec-image/63/4 "2021-05-11T17:32:47Z")

</div>

No, you need to add it to the package.mk on EmuELEC in `/packages/sx05re/tools/sysutils/gptokeyb/package.mk`

---

<div class="post-metadata">

**Author:** ![kevinrivm](https://avatars.discourse-cdn.com/v4/letter/k/77aa72/32.png) [@kevinrivm](https://emuelec.discourse.group/u/kevinrivm)\
**Post date:** [May 14, 2021, 4:37pm UTC](https://emuelec.discourse.group/t/problem-building-emuelec-image/63/5 "2021-05-14T16:37:20Z")

</div>

Sorry for late reply,

Finally I could make it work, I add the dependants as you said.

 ![Captura de Pantalla 2021-05-14 a la(s) 11.33.08](https://global.discourse-cdn.com/free1/uploads/emuelec/original/1X/1b665771edfbeb62163cd6b4935bafe2732f8f61.png)

The pont was to make it work the Bluetooth and Wifi for the x96max+ Q2 version with chip cdtech 4761743 with uses the drivers qca6174.

My procedure was to compare some releases of CE in which the drivers where added and modify the files in EE accordingly: [https://github.com/CoreELEC/CoreELEC/compare/19.1-Matrix\_rc2...19.1-Matrix\_rc4](https://github.com/CoreELEC/CoreELEC/compare/19.1-Matrix_rc2...19.1-Matrix_rc4)

I’ll make a pull request mate, hope it could help to the project.

Note: I’ve made all the changes in the master branch, I’ve seen the instructions on dev too late. Forgive me pls.

---

<div class="post-metadata">

**Author:** ![EmuELEC](https://yyz2.discourse-cdn.com/free1/user_avatar/emuelec.discourse.group/emuelec/32/26_2.png) [@EmuELEC](https://emuelec.discourse.group/u/EmuELEC)\
**Post date:** [May 14, 2021, 4:45pm UTC](https://emuelec.discourse.group/t/problem-building-emuelec-image/63/6 "2021-05-14T16:45:59Z")

</div>

on your PR: Please remove the change from gptokeyb, and reopen the PR on the dev branch, just submit the changes for one thing at a time.
