-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
PKG_CHECK_MODULES USB unexpected token #83
Comments
can we remove autotools now? It's causing more problems. |
It seems the same trouble I had on OSX using homebrew. See: http://stackoverflow.com/questions/3522248/how-do-i-compile-jzmq-for-zeromq-on-osx |
same problem here on Arch linux x86_64, gcc4.7 and autoconf 2.69... |
I'm having this issue today. I've read that this issue can occur when your pkg.m4 file isn't in some sane directory. It will cause the aclocal.m4 file to not contain the PKG_CHECK_MODULES macro. This is true for me. by modifying the autogen.sh file to execute aclocal --force -I /opt/local/share/aclocal after the autoreconf line, i find the PKG_CHECK_MODULES macro in the generated aclocal.m4 file. Unfortunate it does not resolve my issue. |
resolved my issue by adding: ACLOCAL_AMFLAGS = -I /opt/local/share/aclocal to Makefile.am |
I can confirm that adding ACLOCAL_AMFLAGS = -I /opt/local/share/aclocal to Makefile.am made ./configure run successfully on osx Lion, whereas before it would fail with the same PCK_CHECK_MODULES error. |
(ubuntu linux) |
installing libusb-1.0-0-dev helps me on Ubuntu 12 |
executing aclocal --force -I /opt/local/share/aclocal once was enough for me.
|
Hi, here is what worked on my MacAir (10.7.5).
Tested with st-flash and all worked smoothly. PS: On my MacPro (10.7.5) step #2 was not necessary. |
ACLOCAL_FLAGS="-I /usr/share/aclocal" ./autogen.sh works for me! |
Had the same issue - finally solved it the following way - from comments I figured out that configure script cannot find pkg.mp4 pkg-config file. OS: Mac OSX 10.7.5 + homebrew Thanks everyone for the tips! |
howdy all, I'm unfortunately having similar problems to all above, but none of the options have solved it. I've tried with macports and with homebrew. I get this error after ./configure: I tried: "by modifying the autogen.sh file to execute with no change. "executing no change. "Had the same issue - finally solved it the following way - from comments I figured out that configure script cannot find pkg.mp4 pkg-config file. brew list pkg-config gives me "Error: No such keg: /usr/local/Cellar/pkg-config" and this one Add ACLOCAL_AMFLAGS = -I /opt/local/share/aclocal to Makefile.am with no change. does anyone have any idea what's going on here? Thanks in advance! |
Hi, supersynthesis,
it means you need to install it first.
I also heard that macports and homebrew doesn't work well together, may be this mix can cause issues. |
Closing this issue as the roots date back into 2012. Now things have been working as expected using autoconf or cmake. Reopen when issue still remains. |
I installed this a month ago on OSX and it went fine, I had to reinstall osx and now I am running into problems.
./configure: line 4781: syntax error near unexpected token
USB,' ./configure: line 4781:
PKG_CHECK_MODULES(USB, libusb-1.0 >= 1.0.0,,'I already installed libusb:
$ pkg-config --libs libusb
-L/usr/local/lib -lusb
$ pkg-config --libs libusb-1.0
-L/usr/local/lib -lusb-1.0
if I comment out the line 4781 from configure which causes the problem then it creates the make file but the makefile doesn't Include or link correctly.
I can compile it by adding -lusb-1.0 to the gcc command (also added -I/usr/local/include/libusb to the makefile)
gcc -g -O2 -o st-util gdbserver/st_util-gdb-remote.o gdbserver/st_util-gdb-server.o mingw/st_util-mingw.o libstlink.a -lusb-1.0
Any ideas why I don't have this USB token?
What should it be?
The text was updated successfully, but these errors were encountered: