Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build on aarch64 linux #3

Open
kravens opened this issue Mar 1, 2020 · 0 comments
Open

Unable to build on aarch64 linux #3

kravens opened this issue Mar 1, 2020 · 0 comments

Comments

@kravens
Copy link

kravens commented Mar 1, 2020

I've encountered an error when installing ckbunker on a RaspberryPi4 with aarch64-linux.
Hope someone knows a way to get the dependencies compatible...

Installing collected packages: Click, stem, attrs, chardet, multidict, idna, yarl, async-timeout, aiohttp, MarkupSafe, jinja2, aiohttp-jinja2, six, ecdsa, hidapi, pyaes, ckcc-protocol, bunker
Running setup.py install for hidapi ... error
ERROR: Command errored out with exit status 1:
command: /root/Coldcard/ENV/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-8vxcxhta/hidapi/setup.py'"'"'; file='"'"'/tmp/pip-install-8vxcxhta/hidapi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-lsvtqog3/install-record.txt --single-version-externally-managed --compile --install-headers /root/Coldcard/ENV/include/site/python3.7/hidapi
cwd: /tmp/pip-install-8vxcxhta/hidapi/
Complete output (17 lines):
running install
running build
running build_ext
skipping 'hid.c' Cython extension (up-to-date)
skipping 'hidraw.c' Cython extension (up-to-date)
building 'hid' extension
creating build
creating build/temp.linux-aarch64-3.7
creating build/temp.linux-aarch64-3.7/hidapi
creating build/temp.linux-aarch64-3.7/hidapi/libusb
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ihidapi/hidapi -I/usr/include/libusb-1.0 -I/usr/include/python3.7m -I/root/Coldcard/ENV/include/python3.7m -c hid.c -o build/temp.linux-aarch64-3.7/hid.o
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ihidapi/hidapi -I/usr/include/libusb-1.0 -I/usr/include/python3.7m -I/root/Coldcard/ENV/include/python3.7m -c hidapi/libusb/hid.c -o build/temp.linux-aarch64-3.7/hidapi/libusb/hid.o
hidapi/libusb/hid.c:47:10: fatal error: libusb.h: No such file or directory
47 | #include <libusb.h>
| ^~~~~~~~~~
compilation terminated.
error: command 'aarch64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /root/Coldcard/ENV/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-8vxcxhta/hidapi/setup.py'"'"'; file='"'"'/tmp/pip-install-8vxcxhta/hidapi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-lsvtqog3/install-record.txt --single-version-externally-managed --compile --install-headers /root/Coldcard/ENV/include/site/python3.7/hidapi Check the logs for full command output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant