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

Command line installation fails on OSX: illegal option -D #252

Closed
c4live opened this issue Oct 8, 2015 · 1 comment
Closed

Command line installation fails on OSX: illegal option -D #252

c4live opened this issue Oct 8, 2015 · 1 comment

Comments

@c4live
Copy link

c4live commented Oct 8, 2015

This is the output of make install for the commandline subdirectory, on my machine:

$ make install
Building for OS=macosx BLINK1_VERSION=v1.98-macosx-x86_64 USBLIB_TYPE=HIDAPI
cc -dynamiclib -o libBlink1.dylib -Wl,-search_paths_first -framework IOKit -framework CoreFoundation -mmacosx-version-min=10.8 -DUSE_HIDAPI -arch i386 -arch x86_64 -O2 -D_THREAD_SAFE -MT MD -MP  -I./hidapi/hidapi  -std=gnu99  -g -DBLINK1_VERSION=\"""v1.98"-macosx-"x86_64""\" ./hidapi/mac/hid.o blink1-lib.o  -framework IOKit -framework CoreFoundation
install -D blink1-tool /usr/local/bin/blink1-tool
install: illegal option -- D
usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
               [-o owner] file1 file2
       install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
               [-o owner] file1 ... fileN directory
       install -d [-v] [-g group] [-m mode] [-o owner] directory ...
make: *** [install] Error 64

Solution: remove the -D flag in the Makefile line that define the INSTALL program, from this:

INSTALL = install -D

to this:

INSTALL = install

and everything works like a charm!

@todbot
Copy link
Owner

todbot commented Oct 15, 2015

Thanks, fixed! (in the repo)

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

2 participants