linux-rockchip / rkflashtool

Tools for flashing Rockchip devices
114 stars 69 forks source link

LD flags fix for OSX #3

Closed leojrfs closed 9 years ago

leojrfs commented 9 years ago

This is when compiling with OSX:

$ > LIBUSB=/usr/local make
gcc -O2 -W -Wall -I/usr/local/include rkcrc.c -o rkcrc  -lusb-1.0
ld: library not found for -lusb-1.0
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [rkcrc] Error 1

It does not include the Library path.

This is a hack, don't know a possible fix.

julienchauveau commented 9 years ago

A bug might have been introduced with commit 752d877.

This patch should be a better fix instead: 24593f3

Does it solve your problem when compiling?

julienchauveau commented 9 years ago

@leojrfs

Ping…

Please reply or close this issue.

leojrfs commented 9 years ago

Yes, it compiles with the latest change on master. Sorry for the delay :smile: