Skip to content
This repository has been archived by the owner on Feb 14, 2024. It is now read-only.

Doesn't make #4

Open
aussiehash opened this issue Apr 28, 2015 · 2 comments
Open

Doesn't make #4

aussiehash opened this issue Apr 28, 2015 · 2 comments

Comments

@aussiehash
Copy link

The old version with "Makefile" built correctly

This version fails

$ make -f Makefile.hidapi
mkdir -p bin
gcc -Wall -Werror -Os -DHAVE_HIDAPI -DEXTRA_DEBUG -DDEBUG_COMM -I. -I/usr/local/include  -    o dongleCommHidHidapi.o -c dongleCommHidHidapi.c
In file included from dongleCommHidHidapi.c:19:
dongleCommHidHidapi.h:26:27: error: hidapi/hidapi.h: No such file or directory
In file included from dongleCommHidHidapi.c:19:
dongleCommHidHidapi.h:30: error: expected ‘)’ before ‘*’ token
dongleCommHidHidapi.h:31: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
dongleCommHidHidapi.h:32: error: expected ‘)’ before ‘*’ token
cc1: warnings being treated as errors
dongleCommHidHidapi.c: In function ‘initHidHidapi’:
dongleCommHidHidapi.c:35: warning: implicit declaration of function ‘hid_init’
dongleCommHidHidapi.c: In function ‘exitHidHidapi’:
dongleCommHidHidapi.c:39: warning: implicit declaration of function ‘hid_exit’
dongleCommHidHidapi.c: At top level:
dongleCommHidHidapi.c:42: error: expected ‘)’ before ‘*’ token
dongleCommHidHidapi.c:136: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
dongleCommHidHidapi.c:158: error: expected ‘)’ before ‘*’ token
make: *** [dongleCommHidHidapi.o] Error 1

also

$ make -f Makefile.libusb
mkdir -p bin
gcc -Wall -Werror -Os -DHAVE_LIBUSB -DEXTRA_DEBUG -DDEBUG_COMM -I. -I/usr/local/include -Ilibusb/include -o dongleCommHid.o -c dongleCommHid.c
mkdir -p bin
gcc -Wall -Werror -Os -DHAVE_LIBUSB -DEXTRA_DEBUG -DDEBUG_COMM -I. -I/usr/local/include -Ilibusb/include -o dongleCommWinUSB.o -c dongleCommWinUSB.c
mkdir -p bin
gcc -Wall -Werror -Os -DHAVE_LIBUSB -DEXTRA_DEBUG -DDEBUG_COMM -I. -I/usr/local/include -Ilibusb/include -o dongleComm.o -c dongleComm.c
In file included from dongleComm.c:24:
dongleCommHidHidapi.h:26:27: error: hidapi/hidapi.h: No such file or directory
In file included from dongleComm.c:24:
dongleCommHidHidapi.h:30: error: expected ‘)’ before ‘*’ token
dongleCommHidHidapi.h:31: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
dongleCommHidHidapi.h:32: error: expected ‘)’ before ‘*’ token
make: *** [dongleComm.o] Error 1

Using my old built (with only Makefile the c-api binaries will not detect a HW-1 flashed with the latest firmware Version 0.6 - 10.04.15_1 / for LW 1.0.1)

@btchip
Copy link
Contributor

btchip commented May 1, 2015

Can you check where your hidapi is installed ? Makefile.hidapi expects the .h in /usr/local/include which might be the problem here

@aussiehash
Copy link
Author

Via pip

hidapi in /usr/local/lib/python2.7/dist-packages

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