Skip to content
This repository has been archived by the owner on Nov 9, 2023. It is now read-only.

How to build u2f-test/HID #170

Open
stephenwwu opened this issue Feb 15, 2018 · 1 comment
Open

How to build u2f-test/HID #170

stephenwwu opened this issue Feb 15, 2018 · 1 comment

Comments

@stephenwwu
Copy link

I can't build the code under Linux. The README only specify one command "make". Error message

Package hidapi-hidraw was not found in the pkg-config search path.
Perhaps you should add the directory containing hidapi-hidraw.pc' to the PKG_CONFIG_PATH environment variable No package 'hidapi-hidraw' found make: *** No rule to make target hidapi/linux/hid.c', needed by `hid.o'. Stop.

@Coconop
Copy link

Coconop commented Jan 2, 2019

Looking at the makefile, it tests if you have hidapi-hidraw in your pkg-config. If so it will use it, otherwise it will use local sources.
Indeed, the README also specifies :

DEPENDENCIES:
git clone https://github.com/signal11/hidapi
git clone -b lollipop-release https://android.googlesource.com/platform/system/core

So it means that you should have downloaded hidapi and core folders in the u2f-tests/HID/ folder to build correctly.

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

No branches or pull requests

2 participants