Skip to content
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

make[1]: *** No targets specified and no makefile found. #717

Closed
PirikitoOreo opened this issue Jun 23, 2018 · 14 comments
Closed

make[1]: *** No targets specified and no makefile found. #717

PirikitoOreo opened this issue Jun 23, 2018 · 14 comments

Comments

@PirikitoOreo
Copy link

PirikitoOreo commented Jun 23, 2018

Hello, my os is Linux Mint 18.3
I executed next commands for instaling STLINK on my PC:
sudo apt-get install git
sudo apt-get install autoconf
sudo apt-get install libusb-1.0-0-dev
git clone https://github.com/texane/stlink stlink.git
cd stlink.git/
make release

After typing next command: make release
I've got next error:
[RELEASE]
make[1]: *** No targets specified and no makefile found. Stop.
Makefile:27: recipe for target 'release' failed
make: *** [release] Error 2

I also have read instruction https://github.com/texane/stlink/blob/master/doc/compiling.md, but i'm just started with Linux and I dont understand what i have to do.
Could help me with instalation step by step please?

@xor-gate
Copy link
Member

xor-gate commented Jun 23, 2018

Provide more details please. As the first post in this thread suggests.
You should remove the build folder probably due to non-installed depencies the Makefile is not generated under build/Release. I advice you to read https://github.com/texane/stlink/blob/master/doc/compiling.md. If you provide the whole output before the error you should see CMake build output or something like: command not found: cmake.

@xor-gate xor-gate added this to the Unplanned (Contributions Welcome) milestone Jun 23, 2018
@xor-gate xor-gate changed the title No makefile found make[1]: *** No targets specified and no makefile found. Jun 23, 2018
@PirikitoOreo
Copy link
Author

PirikitoOreo commented Jun 23, 2018

Thank you for your reply, but iI think I'm completely lost.
I have file "Makefile" on my stlink.git foulder
Could you show me commands that i have to run please.

@xor-gate
Copy link
Member

@xor-gate
Copy link
Member

xor-gate commented Jun 23, 2018

@xor-gate
Copy link
Member

I think you forgot to install cmake.

@PirikitoOreo
Copy link
Author

No, I have installed cmake.

@xor-gate
Copy link
Member

Just cleanup the broken build, and then try to build again with:

make clean
make release

And then paste the output of make release if it is still broken.

@PirikitoOreo
Copy link
Author

PirikitoOreo commented Jun 23, 2018

After installing build-essential, commands make release and make debug worked well.
What should I do next?
Thanks

@xor-gate
Copy link
Member

You should build a debian package with make package, and install the package with dpkg -i *.deb.

@PirikitoOreo
Copy link
Author

PirikitoOreo commented Jun 24, 2018

Thank you for your reply. I executed your commands an I think everything is OK.
Bellow I post the output:
~/stlink.git $ make package
[PACKAGE] Release
[ 23%] Built target stlink-static
[ 46%] Built target stlink
[ 56%] Built target st-flash
[ 63%] Built target st-info
[ 76%] Built target st-util
[ 83%] Built target sg
[ 90%] Built target usb
[100%] Built target flash
Run CPack packaging tool...
CPack: Create package using DEB
CPack: Install projects
CPack: - Run preinstall target for: stlink
CPack: - Install project: stlink
CPack: Create package
CPack: - package: /home/usr/stlink.git/build/Release/stlink-1.4.0-39-g6db0fc2-amd64.deb generated.

~/stlink.git $ cd /home/usr/stlink.git/build/Release/
usr@usr-desktop ~/stlink.git/build/Release $ sudo dpkg -i *.deb
Selecting previously unselected package stlink.
(Reading database ... 311484 files and directories currently installed.)
Preparing to unpack stlink-1.4.0-39-g6db0fc2-amd64.deb ...
Unpacking stlink (1.4.0-39-g6db0fc2) ...
Setting up stlink (1.4.0-39-g6db0fc2) ...
Processing triggers for man-db (2.7.5-1) ...

@PirikitoOreo
Copy link
Author

PirikitoOreo commented Jun 24, 2018

I was trying to upload test firmware to my stm32f103C8T6 using stlink-v2 and system workbench ide, but without success. I don't understand what is a problem. How can I check if my stlink-v2 is correctly installed?

@xor-gate
Copy link
Member

I would like to help you, but re-read what your are writing. Trying to understand what your problem is, i'm missing details (logfile, what did you type etc).

@PirikitoOreo
Copy link
Author

I would like to show you logfile, is it possible to find/generate it?

@lyakh
Copy link

lyakh commented Jul 1, 2018

I had the same problem as the OP. What fixed it is running "make clean" before "make". Looks like some files got committed to git that shouldn't be there?

@stlink-org stlink-org locked as resolved and limited conversation to collaborators Apr 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants