Page 1 of 1

make not working

Posted: Mon Aug 05, 2019 6:26 pm
by Patsjemoe
I installed ESP-ADF in the ESP directory, as mentioned in the guideline.

where 'make' works in /c/msys32/home/user/esp/ESP-IDF/examples/get-started/blink,
it does not work in /c/msys32/home/user/esp/esp-adf/examples/get-started/play_mp3

I also created a file : export_adf_path.sh with "export ADF_PATH=/c/msys32/home/user/esp/esp-adf"

I get following error :
Makefile:2: /project.mk: No such file or directory
make: *** No rule to make target '/project.mk'. Stop.
Any suggestion why the path seems not to be taken ?

Note : when using mingw32, make is also not working, none of the internet solutions work.

best regards
Ludo

Re: make not working

Posted: Tue Aug 06, 2019 7:19 am
by ESP_Dazz
Could you run

Code: Select all

echo $ADF_PATH

Re: make not working

Posted: Tue Aug 06, 2019 9:25 am
by Patsjemoe
Hi,
thanks for responding.
in cmd.exe, I get $ADF_PATH
in mingw32, nothing happens

when using adf.py build in the /c/msys32/home/user/esp/esp-adf/examples/get-started/play_mp3,
I get following error :
-- Configuring incomplete, errors occurred!
See also "C:/msys32/home/user/esp/esp-adf/examples/get-tarted/play_mp3/build/CMakeFiles/CMakeOutput.log".
See also "C:/msys32/home/user/esp/esp-adf/examples/get-started/play_mp3/build/CMakeFiles/CMakeError.log".
cmake failed with exit code 1

regards

Re: make not working

Posted: Tue Aug 06, 2019 9:40 am
by ESP_Dazz
Patsjemoe wrote:in mingw32, nothing happens
This means export_adf_path.sh did not export the ADF_PATH properly. Did you run the export script in the current shell by putting a dot in front of the command?

Code: Select all

. ./export_adf_path.sh

Re: make not working

Posted: Tue Aug 06, 2019 11:12 am
by Patsjemoe
no, I ran it in the /adf as well as in /play_mp3 directory without the ..
when running it with the .. I get :
$ . ./export_adf_path.sh
bash: ./export_adf_path.sh: No such file or directory

I have put it in it in /c/msys32/etc/profile.d

Re: make not working

Posted: Thu Aug 08, 2019 7:36 am
by Patsjemoe
it looks as I have to trow away the board, nothing works. :x

Re: make not working

Posted: Fri Aug 16, 2019 3:37 pm
by Patsjemoe
Make is now working in MINGW32, with ESP-IDF v3.2.2
It was not allowed to install toolchain 2.0, as this is for ESP-IDF v4.0 ...but that is not clearly mentioned in the install sheets.
Also, I need to manually start IDF_PATH and ADF_PATH, as when starting up mingw32, it does not take into account the profile.d directory.
ALso, I need to add a full path in the toolchain with "make menuconfig".