project.mk not a directory

Vasili97
Posts: 5
Joined: Thu Aug 15, 2019 8:46 am

project.mk not a directory

Postby Vasili97 » Thu Aug 15, 2019 9:10 am

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?

ESP_Sprite
Posts: 2761
Joined: Thu Nov 26, 2015 4:08 am

Re: project.mk not a directory

Postby ESP_Sprite » Thu Aug 15, 2019 10:22 am

Is your IDF_PATH set?

Vasili97
Posts: 5
Joined: Thu Aug 15, 2019 8:46 am

Re: project.mk not a directory

Postby Vasili97 » Thu Aug 15, 2019 10:28 am

I dont know, but i tried, how i said earlier other versions without $(IDF_PATH).

Vasili97
Posts: 5
Joined: Thu Aug 15, 2019 8:46 am

Re: project.mk not a directory

Postby Vasili97 » Thu Aug 15, 2019 12:01 pm

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.

ESP_Sprite
Posts: 2761
Joined: Thu Nov 26, 2015 4:08 am

Re: project.mk not a directory

Postby ESP_Sprite » Fri Aug 16, 2019 4:13 am

There's more than just that statement that uses the IDF_PATH environment variable. Just set it and you should be good.

Vasili97
Posts: 5
Joined: Thu Aug 15, 2019 8:46 am

Re: project.mk not a directory

Postby Vasili97 » Sun Aug 18, 2019 11:50 am

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?

WiFive
Posts: 2545
Joined: Tue Dec 01, 2015 7:35 am

Re: project.mk not a directory

Postby WiFive » Sun Aug 18, 2019 11:25 pm

Code: Select all

export IDF_PATH=~/esp/esp-idf

Who is online

Users browsing this forum: Bing [Bot] and 12 guests