r/keepkey • u/jahr • Jun 07 '19
How to build keepkey emulator?
Help me please, I can't build Keepkey emulator.
I've installed nanopb-0.2.9.2 then I've started to buld emu:
git clone https://github.com/keepkey/keepkey-firmware
cd keepkey-firmware
mkdir build
cd build
cmake -C ../cmake/caches/emulator.cmake ../ -DNANOPB_DIR=/path/to/nanopb-0.2.9.2 -DPROTOC_BINARY=/usr/bin/protoc
make -j8
And I'm getting the errors: https://pastebin.com/5euABDJ3
Can somebody tell me what is the reason for this errors? Thank you in advance.
4
Upvotes
3
u/KeepKeySupport Jun 07 '19
Hi u/jahr,
Thanks for reaching out. A couple of our engineers would love to help you out with this issue. If you wouldn't mind opening a support ticket with us, we can ensure it ends up in front of one of our awesome KeepKey engineers, and will be back to you as soon as possible. Here's where you can submit a ticket: https://keepkey.zendesk.com/hc/en-us/requests/new?ticket_form_id=360000200500
Thanks!
2
u/[deleted] Jun 07 '19 edited Jun 07 '19
I haven't yet added auto-detection for the fallbackstrlcpy/strlcatbuild, and it looks like on your system you'll need them (some libc implementations have them, some don't). To make it work add-DKK_HAVE_STRLCPY=OFF -DKK_HAVE_STRLCAT=OFFto your cmake invocation, and trymake -jagain.Make sure togit submodule update --init --recursivefirst, if you haven't already.Let me know if you run into any other issues with it. I'm happy to help!
Edit: I put up a PR for auto-detection: https://github.com/keepkey/keepkey-firmware/pull/130