Page 1 of 1

project.mk not a directory

Posted: Thu Aug 15, 2019 9:10 am
by Vasili97
Hello, i want to program my esp32 and tried to run the esp-idf, till make menuconfig everything succeed. the commands i used are this:

Code: Select all

mkdir -p ~/esp
cd esp
tar -xzf ~/Downloads/xtensa-esp32-elf-linux64-1.22.0-80-g6c4433a-5.2.0.tar.gz
export PATH=$PATH:$HOME/esp/xtensa-esp32-elf/bin
git clone --recursive https://github.com/espressif/esp-idf.git
cd ~/esp/esp-idf
git submodule update --init
cd ~/esp
git clone https://github.com/espressif/esp-idf-template.git myapp
cd ~/esp/myapp
make menuconfig
and i get this error message at executing make menuconfig:

Code: Select all

Makefile:8: /make/project.mk: No such file or directory
make: *** No rule to make target '/make/project.mk'.  Stop.

the makefile in myapp has an

Code: Select all

include $(IDF_PATH)/make/project.mk
i tried also

Code: Select all

include /home/esp/esp-idf/make/project.mk
and also

Code: Select all

include /home/esp/esp-idf/make
but nothing worked. what i have to do?

Re: project.mk not a directory

Posted: Thu Aug 15, 2019 10:22 am
by ESP_Sprite
Is your IDF_PATH set?

Re: project.mk not a directory

Posted: Thu Aug 15, 2019 10:28 am
by Vasili97
I dont know, but i tried, how i said earlier other versions without $(IDF_PATH).

Re: project.mk not a directory

Posted: Thu Aug 15, 2019 12:01 pm
by Vasili97
ESP_Sprite wrote:Is your IDF_PATH set?
How I said i tried other versions of include, without IDF_PATH and they didnt work too.

Re: project.mk not a directory

Posted: Fri Aug 16, 2019 4:13 am
by ESP_Sprite
There's more than just that statement that uses the IDF_PATH environment variable. Just set it and you should be good.

Re: project.mk not a directory

Posted: Sun Aug 18, 2019 11:50 am
by Vasili97
ESP_Sprite wrote: There's more than just that statement that uses the IDF_PATH environment variable. Just set it and you should be good.
Which statements i have to set to make it working?

Re: project.mk not a directory

Posted: Sun Aug 18, 2019 11:25 pm
by WiFive

Code: Select all

export IDF_PATH=~/esp/esp-idf

Re: project.mk not a directory

Posted: Wed Mar 18, 2020 9:26 am
by Vrutha
I am getting this error, even though i have set IDF_PATH.

My IDF_PATH is;

printenv IDF_PATH
C:/msys64/home/user/esp/esp-idf



make menuconfig
Makefile:8: C:/msys64/home/user/esp/esp-idf/make/project.mk: No such file or di rectory
make: *** No rule to make target 'C:/msys64/home/user/esp/esp-idf/make/project. mk'. Stop.

Re: project.mk not a directory

Posted: Sun Mar 14, 2021 1:06 pm
by MyBeanZ
Hi, have you tried to check path variable? try: export -p.