Closed meleschi closed 3 years ago
Thank you for the bug report. Looks like I was too optimistic about using pkg-config on MacOS. Please try change 1af792bd8d3c4316a5b98e99f4b35758b5db1517.
Slightly different error now:
dmrconfig$ make gcc -g -O -Wall -Werror -DVERSION='"1.1.219"' -c -o main.o main.c gcc -g -O -Wall -Werror -DVERSION='"1.1.219"' -c -o util.o util.c gcc -g -O -Wall -Werror -DVERSION='"1.1.219"' -c -o radio.o radio.c gcc -g -O -Wall -Werror -DVERSION='"1.1.219"' -c -o dfu-libusb.o dfu-libusb.c dfu-libusb.c:32:10: fatal error: 'libusb.h' file not found
^~~~~~~~~~
1 error generated. make: *** [dfu-libusb.o] Error 1
Would you mind to install pkg-config and libusb-1.0? Like this:
brew install pkg-config libusb
More details here: http://macappstore.org/pkg-config/
This version should build correctly with pkg-config installed: eb1417ebfaf4161193436784cba2827c36c1c707
It worked!
BTW - I already had libusb installed, but I did install pkg-config per your recommendation.
Excellent! I've added a comment to Makefile about installing pkg-config on Mac.
This issue seems resolved.
I've also added the Mac OS build dependencies to the README.md
I get the following error when attempting to compile the most recent version of dmrconfig. I do get a successful compile when I use version 1.1 code however. Just wanted to let you know. =)
I am on 10.14.5 BTW.
laptop-01:dmrconfig meleschi$ make make: pkg-config: Command not found gcc -g -O -Wall -Werror -DVERSION='"1.1.218"' -c -o main.o main.c make: pkg-config: Command not found gcc -g -O -Wall -Werror -DVERSION='"1.1.218"' -c -o util.o util.c make: pkg-config: Command not found gcc -g -O -Wall -Werror -DVERSION='"1.1.218"' -c -o radio.o radio.c make: pkg-config: Command not found gcc -g -O -Wall -Werror -DVERSION='"1.1.218"' -c -o dfu-libusb.o dfu-libusb.c dfu-libusb.c:32:10: fatal error: 'libusb.h' file not found
include
1 error generated. make: *** [dfu-libusb.o] Error 1