rockchip-linux / rkdeveloptool

GNU General Public License v2.0
169 stars 98 forks source link

Compile issue on Ubuntu 17.04 #8

Closed sghazagh closed 7 years ago

sghazagh commented 7 years ago

Cannot configure and compile rkdevelop tool on Ubuntu 17.04.

I think it cannot be compiled with GCC/G++ 6.3.0 Any solution?

autoreconf -i

./Configure

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for style of include used by make... GNU
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
./configure: line 4282: syntax error near unexpected token `LIBUSB1,libusb-1.0'
./configure: line 4282: `PKG_CHECK_MODULES(LIBUSB1,libusb-1

make

make: *** No targets specified and no makefile found.  Stop.

I already have installed bellows

apt-get install libudev-dev libusb-1.0-0-dev dh-autoreconf
afaerber commented 7 years ago

That has nothing to do with GCC, it builds fine with 6.3.1. Maybe you don't have pkg-config installed?

sghazagh commented 7 years ago

You were right mate , After installing pkg-config all is good now.

Thank you