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.
IDF_PATH for make file is not working when setting in eclipse
-
- Posts: 2
- Joined: Thu Jun 01, 2017 1:24 pm
Re: IDF_PATH for make file is not working when setting in eclipse
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.
/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
Re: IDF_PATH for make file is not working when setting in eclipse
@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.
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
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.
-
- Posts: 2
- Joined: Thu Jun 01, 2017 1:24 pm
Re: IDF_PATH for make file is not working when setting in eclipse
@kolban
SOLVED
The contents of the directory pointed by IDF_PATH is shown below. 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.
SOLVED
The contents of the directory pointed by IDF_PATH is shown below. 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 106 guests