IDF_PATH for make file is not working when setting in eclipse

ashishespdev
Posts: 2
Joined: Thu Jun 01, 2017 1:24 pm

IDF_PATH for make file is not working when setting in eclipse

Postby ashishespdev » Thu Jun 01, 2017 1:50 pm

I am able to make and upload the flash in esp 32 by terminal in linux and it is working properly.
As per the Kolban book I tried to setup the environment in eclipse and my path variables are shown in the picture as in attachment.
I am trying to build the project and I am encountering the error

18:47:24 **** Incremental Build of configuration Default for project myapp ****
make all
Makefile:8: IDF_PATH=/home/ashish/workspace/esp-idf/make/project.mk: No such file or directory
make: *** No rule to make target 'IDF_PATH=/home/ashish/workspace/esp-idf/make/project.mk'. Stop.

18:47:24 Build Finished (took 87ms)


Now when I run the make commands in the workspace project file manually in terminal, it works perfect. Although I am using the same PATH variable for IDF_PATH.
esp32.png
esp32.png (124.25 KiB) Viewed 14590 times

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

Re: IDF_PATH for make file is not working when setting in eclipse

Postby kolban » Fri Jun 02, 2017 4:03 pm

In your image, it looks like the variable "IDF_PATH" points to the directory:

/home/ashish/workspace/esp-idf

What is actually **in** that directory? The IDF_PATH variable should point to the root install directory of the ESP-IDF SDK. This should be the content of the GitHub repository as seen here:

https://github.com/espressif/esp-idf

Could you go to the directory where your IDF_PATH points and run "ls" and post the results?

Also check permissions down the path. As the user that Eclipse is running as, change directory one at a time to:
/home
/home/ashish
/home/ashish/workspace
/home/ashish/workspace/esp-idf
/home/ashish/workspace/esp-idf/make

and then validate that "project.mk" exists at that final location and has permissions to be read by the Eclipse user.
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

User avatar
loboris
Posts: 514
Joined: Wed Dec 21, 2016 7:40 pm

Re: IDF_PATH for make file is not working when setting in eclipse

Postby loboris » Fri Jun 02, 2017 6:03 pm

@ashishespdev

You have IDF_PATH variable with the value "IDF_PATH=/home/ashish/workspace/esp-idf"

It is not strange that the path connot be found.

MarcusW
Posts: 6
Joined: Fri Dec 23, 2016 5:00 am

Re: IDF_PATH for make file is not working when setting in eclipse

Postby MarcusW » Fri Jun 02, 2017 7:48 pm

The problem is that eclipse is looking for a fully qualified path. Something like IDF_PATH=c:/msys32/home/ashish/workspace/esp-idf, depending on where you've installed it. Note that it wants forward slashes, not backslashes that a windows 7 shell would want.

ashishespdev
Posts: 2
Joined: Thu Jun 01, 2017 1:24 pm

Re: IDF_PATH for make file is not working when setting in eclipse

Postby ashishespdev » Sat Jun 03, 2017 3:48 am

@kolban

SOLVED
The contents of the directory pointed by IDF_PATH is shown below.
esp32IDF.jpg
esp32IDF.jpg (47.37 KiB) Viewed 14561 times
It was eclipse mars. I avoided to use eclipse neon since I had some settings and installed tool-chains, plugins. Switching the IDE to neon from eclipse solved the problem and now it is working fine.

Thanks all for your support and special thanks to Neil Kolban for your books and tutorials.

Who is online

Users browsing this forum: No registered users and 95 guests