Page 1 of 1

IDF_PATH for make file is not working when setting in eclipse

Posted: Thu Jun 01, 2017 1:50 pm
by ashishespdev
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 14325 times

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

Posted: Fri Jun 02, 2017 4:03 pm
by kolban
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.

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

Posted: Fri Jun 02, 2017 6:03 pm
by loboris
@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.

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

Posted: Fri Jun 02, 2017 7:48 pm
by MarcusW
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.

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

Posted: Sat Jun 03, 2017 3:48 am
by ashishespdev
@kolban

SOLVED
The contents of the directory pointed by IDF_PATH is shown below.
esp32IDF.jpg
esp32IDF.jpg (47.37 KiB) Viewed 14296 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.