Comments (15)
(ubuntu linux)
Anyone still experiencing this I did
sudo apt-get install pkg-config
and it worked. Thanks to https://twitter.com/KenichiHidai for pointing me in the right direction.
from stlink.
can we remove autotools now? It's causing more problems.
from stlink.
It seems the same trouble I had on OSX using homebrew.
In my case, it works well after adding a line "/usr/local/share/aclocal" in /usr/share/aclocal/dirlist file.
See: http://stackoverflow.com/questions/3522248/how-do-i-compile-jzmq-for-zeromq-on-osx
from stlink.
same problem here on Arch linux x86_64, gcc4.7 and autoconf 2.69...
How can i solve?
tomorrow i'll try fall back to autoconf 2.13.
from stlink.
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.
from stlink.
resolved my issue by adding:
ACLOCAL_AMFLAGS = -I /opt/local/share/aclocal
to Makefile.am
from stlink.
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.
from stlink.
installing libusb-1.0-0-dev helps me on Ubuntu 12
from stlink.
executing
aclocal --force -I /opt/local/share/aclocal
once was enough for me.
My config is
- Mac OS X Mountain Lion 10.8.2
- automake 1.13.1, autoconf 2.69 from MacPorts
from stlink.
Hi,
here is what worked on my MacAir (10.7.5).
- Add ACLOCAL_AMFLAGS = -I /opt/local/share/aclocal to Makefile.am
- sudo port install libftdi0
- sudo port install libusb
- ./autogen.sh
- ./configure
- make
Tested with st-flash and all worked smoothly.
PS: On my MacPro (10.7.5) step #2 was not necessary.
from stlink.
ACLOCAL_FLAGS="-I /usr/share/aclocal" ./autogen.sh works for me!
I find my pkg.m4 here /usr/share/aclocal.
from stlink.
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.
Couldn't find it either in /opt/local/share/aclocal nor in /usr/share/aclocal but used the following command:
brew list pkg-config
which outputted - /usr/local/Cellar/pkg-config/0.28/share/aclocal/pkg.m4
added
ACLOCAL_AMFLAGS = -I /usr/local/Cellar/pkg-config/0.28/share/aclocal/
to Makefile.am and it worked fine.
OS: Mac OSX 10.7.5 + homebrew
Thanks everyone for the tips!
from stlink.
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:
./configure: line 4422: syntax error near unexpected token USB,' ./configure: line 4422:
PKG_CHECK_MODULES(USB, libusb-1.0 >= 1.0.0,,'
I tried:
"by modifying the autogen.sh file to execute
aclocal --force -I /opt/local/share/aclocal
...
resolved my issue by adding:
ACLOCAL_AMFLAGS = -I /opt/local/share/aclocal
to Makefile.am"
with no change.
"executing
aclocal --force -I /opt/local/share/aclocal
once was enough for me. "
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.
Couldn't find it either in /opt/local/share/aclocal nor in /usr/share/aclocal but used the following command:
brew list pkg-config
which outputted - /usr/local/Cellar/pkg-config/0.28/share/aclocal/pkg.m4
added
ACLOCAL_AMFLAGS = -I /usr/local/Cellar/pkg-config/0.28/share/aclocal/
to Makefile.am and it worked fine."
brew list pkg-config gives me "Error: No such keg: /usr/local/Cellar/pkg-config"
and this one
"here is what worked on my MacAir (10.7.5).
Add ACLOCAL_AMFLAGS = -I /opt/local/share/aclocal to Makefile.am
sudo port install libftdi0
sudo port install libusb
./autogen.sh
./configure
make
Tested with st-flash and all worked smoothly."
with no change. does anyone have any idea what's going on here? Thanks in advance!
from stlink.
Hi, supersynthesis,
I think if you got:
brew list pkg-config gives me "Error: No such keg: /usr/local/Cellar/pkg-config"
it means you need to install it first.
try the following:
- brew update
- brew install pkg-config
- brew list pkg-config
I also heard that macports and homebrew doesn't work well together, may be this mix can cause issues.
from stlink.
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.
from stlink.
Related Issues (20)
- STLinkv3: UDEV rules in Debian not matching STLINK-V3MINIE HOT 1
- [STM32G0B1RE / Nucleo G0B1RE]: False chip id reading HOT 2
- [STM32F103] stlink programmers are disappearing after running probing twice. HOT 2
- [STM32U575RGT6]: Verification failed at offset 43008 HOT 9
- [feature] Show all info during full erase HOT 13
- Latest release stlink-1.8.0-win32 doesn't run HOT 8
- Can't build stlink 1.8.0 for Fedora HOT 8
- [feature] Caching and diffing bin/hex HOT 1
- Update on #1357 HOT 1
- [feature] Read/write operations on external SPI Serial Flash Memory HOT 1
- STM32H7A: Flash write fails on second page HOT 2
- Compiling stlink with Raspberry Pi fails for v1.8.0 HOT 2
- Cmake minimal version mismatch HOT 1
- Debian 11 x64 doesn't work with v1.8.0 because of incompatible glibc HOT 3
- When I build stlink on windows, it says libusb not found HOT 1
- [feature] Just a question .. about next release and ... clones ... HOT 2
- CH32F103C8T6: Flashing fails because of timeout HOT 1
- [feature] Nucleo-H563ZI Board not recognized
- [STM32L4R5ZI]: gdb-multiarch uses wrong osabi
- [STM32L471RG]: STLINKV3 : can't flash the device. Programmer not supported ? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stlink.