rockchip-linux / rkdeveloptool

GNU General Public License v2.0
159 stars 91 forks source link

Doesn't configure on macOSX #24

Closed mdforbes500 closed 6 years ago

mdforbes500 commented 6 years ago

After following the instructions provided on the website for the Rock960 Pro eMMC flash installation on a macOSX host system, I have found that the package doesn't configure and no makefile is generated. The error throw is:

./configure: line 4466: syntax error near unexpected token `LIBUSB1,libusb-1.0'
./configure: line 4466: `PKG_CHECK_MODULES(LIBUSB1,libusb-1.0)'

My host machine is running Mac 10.13.6 (High Sierra) and I used Homebrew (1.7.1) to install: libusb (1.0.22), automake (1.16.1), and autoconf (2.69). Full ./configure readout below:

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... cfg/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking whether make sets $(MAKE)... (cached) yes
checking whether ln -s works... yes
checking build system type... x86_64-apple-darwin17.7.0
checking host system type... x86_64-apple-darwin17.7.0
checking for library containing iconv... -liconv
./configure: line 4466: syntax error near unexpected token `LIBUSB1,libusb-1.0'
./configure: line 4466: `PKG_CHECK_MODULES(LIBUSB1,libusb-1.0)'

What's going on?

mdforbes500 commented 6 years ago

Never mind. Found this resource provided by RK: http://opensource.rock-chips.com/wiki_Rkdeveloptool

mdforbes500 commented 6 years ago

Okay. So, I have the libusb-compat brew running as well now. Still nothing. Any thoughts?

mdforbes500 commented 6 years ago

Okay. I got it. You should add to your documentation:

brew install autoconf automake pkg-config libusb

then proceed as normal. I was unaware that MacOSX does not have pkg-config.