hidtest build fails on macOS: No rule to make target `hidtest.cpp' #114

Closed
opened 2019-11-01 09:36:33 -05:00 by LudovicRousseau · 1 comment
LudovicRousseau commented 2019-11-01 09:36:33 -05:00 (Migrated from github.com)

On macOS (Mojave 10.4.6) I have the error:

± make
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
Making all in mac
make[2]: Nothing to be done for `all'.
Making all in hidtest
make[2]: *** No rule to make target `hidtest.cpp', needed by `hidtest.o'.  Stop.
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

This is a regression caused by d98c408ed3

If I rename the source code to hidtestx.c and adapt the Makefile.am I fix the issue.

I don't know why it fails. Maybe make is confused because the directory, the source code and the target have the same name?

± make -v
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i386-apple-darwin11.3.0
On macOS (Mojave 10.4.6) I have the error: ``` ± make /Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive Making all in mac make[2]: Nothing to be done for `all'. Making all in hidtest make[2]: *** No rule to make target `hidtest.cpp', needed by `hidtest.o'. Stop. make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 ``` This is a regression caused by d98c408ed3939647cd2eef255fbb24b463b24622 If I rename the source code to `hidtestx.c` and adapt the `Makefile.am` I fix the issue. I don't know why it fails. Maybe make is confused because the directory, the source code and the target have the same name? ``` ± make -v GNU Make 3.81 Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This program built for i386-apple-darwin11.3.0 ```
Youw commented 2019-11-02 15:37:48 -05:00 (Migrated from github.com)

Duplicate of #108

actually it affects all platforms - no one cared to update manual Makefiles

@z3ntu suggests a fix for it: https://github.com/libusb/hidapi/issues/108#issuecomment-544919585

you may still use autotools to generate a working Makefile for it

Duplicate of #108 actually it affects all platforms - no one cared to update manual Makefiles @z3ntu suggests a fix for it: https://github.com/libusb/hidapi/issues/108#issuecomment-544919585 you may still use autotools to generate a working Makefile for it
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-libusb/hidapi#114
No description provided.