This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

make: *** No rule to make target `all'. in Eclipse

I am trying to get the ble_app_uart project to build in Eclipse for the PCA10036 nRF52 board. I have followed the Tutorial titled " Development with GCC and Eclipse" and successfully built the ble_app_hrs in both Eclipse and command line. Now, I did the same exercise with the ble_app_uart project but get this message in Eclipse:

17:21:56 **** Incremental Build of configuration Default for project ble_app_uart **** make all make: *** No rule to make target `all'. Stop.

17:21:56 Build Finished (took 101ms)

I am able to build this project from the command line.

This is the case for any other project that I attempt to import and build with Eclipse except for the original, first project, ble_app_hrs.

Any help would be appreciated!

  • Seems like the build directory is wrong and the makefile is not found.

    Try to go to 'project settings -> C/C++ Build' and change the 'Build directory' to the absolute path where the makefile is stored (i.e. /home/hello/nRF51_SDK_8.0.0/examples/ble_peripheral/ble_app_uart_eclipse/pca10028/s110/armgcc)

    Also notice that the armgcc folder in the ble_app_uart example is one level up compared to the original ble_app_hrs example. So you should create a s110 folder inside pca10028/ and place the armgcc in there, or else the paths will be wrong.

  • I was able to move past this issue, but it was the brute force method. There may have been a setting that was off in the project options.

    I have had more success importing a project in to Eclipse using the File->New->Makefile Project with Existing Code. Most tutorials use the File->Import...

    When pointing to the tree of the project, I have used the root of the project. For example, the ble_app_hrs project would point to:

    .\Nordic\nRF52_SDK_0.9.1_3639cc9\examples\ble_peripheral\ble_app_hrs

    Then, in the project properties->C/C++ Build->Build Location, set the path to point to the path where the Makefile lives. In this case:

    .\Nordic\nRF52_SDK_0.9.1_3639cc9\examples\ble_peripheral\ble_app_hrs\pca10036\s132\armgcc

    This, along with the other settings discussed in the tutorial:

    devzone.nordicsemi.com/.../

    have given me good success although I have not gotten the debugger to work yet.

  • I also meet this question when I use Nsight Eclipse Edition to build a CUDA project on ubuntu 14.04 with CUDA 8.0. I teied to run the application in commend line, it runs well. So I checked the configuration of Nsight, I found there is a parameter "all" in build button. Once I delete the parameter the application runs well. So the method to solve the problem is:

    1. Select Project->Properties from the menu bar.

    2. Click C/C++ Build on the left in the dialog that comes up.

    3. Delete the parameter "all".

Related