Stlink: Compile under Ubuntu

Created on 29 Nov 2016  ·  5Comments  ·  Source: stlink-org/stlink

Hi
I'm trying to compile stlink under Ubuntu 15.04
I have C maker, gcc, libusb, libusb-dev.
Type in Terminal
$ git clone git://github.com/texane/stlink.git
and

$ make release
[RELEASE]
Makefile:27: recipe for target 'release' failed
make: * [release] Error 2

There are a lot of manuals how to install stlink, BUT all of them using autogen.sh. In my case there is no such file.
Any idea?

errocompilation generadocumention olinux question staturesolved

Most helpful comment

Try running make clean && make release this probably due to missing build/Release folder and CMake files. Did you git cloned the latest version from master branch?

All 5 comments

Try running make clean && make release this probably due to missing build/Release folder and CMake files. Did you git cloned the latest version from master branch?

When STLINK connected with Ubuntu, softreset from firmware does not work. Debugged very long to find issue but now seems Linux/Qstlink combination is issue.

I had to run cmake . to make the build files prior to make.

Then you are building inside the source folder which is highly discouraged, I recommend:

mkdir build && cd build && cmake .. && make

I'm closing this, as it is inside the doc/compiling.md documentation.

Was this page helpful?
0 / 5 - 0 ratings