This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Cannot open imported project in Eclipse

Hello everybody,

I am a newbie, and I tried to follow this tutorial to set up my laptop for development.

Everything works until I went to the step "Import existing Eclipse project to workspace". I can import the blinky example, but I cannot open the main.c, it said "File not found: /blinky_blank_pca10040/Application/main.c.", also the other files have the same problem except the "makefile" and the "blinky_gcc_nrf52.ld". if I try to build the project, the result is shown in the picture. image description image description

I wonder whether the path of the project is wrong or not? But if I put "makefile" and "blinky_gcc_nrf52.ld" right under the "armgcc" folder, Eclipse will detect no project.

All the things I am using are the latest version.

So, could you guys give me some hints to solve this problem? Thanks!

Best regards

Tong

Parents
  • In my case, I modified the Makefile. Define a new variable NRF_SDK_ROOT and refer to it whereever the Makefile uses relative paths such as ../../../../components. In other words change that to $(NRF_SDK_ROOT)/components. Then it matters less where the Makefile is located.

Reply
  • In my case, I modified the Makefile. Define a new variable NRF_SDK_ROOT and refer to it whereever the Makefile uses relative paths such as ../../../../components. In other words change that to $(NRF_SDK_ROOT)/components. Then it matters less where the Makefile is located.

Children
No Data
Related