Page 1 of 2
ESP-IDF problems with mingw/mingw32/make
Posted: Mon Aug 05, 2019 7:23 am
by Patsjemoe
Hi,
I followed the instructions to install ESP-IDF, but have problems when coming to the instruction "make menuconfig".
This is not working, and tried about everything you can find on the web...without any succes.
Somewhere, I read that espressif only works with mingw32.
Unfortunately, this world is very confusing, as there is mingw, mingw32, and what with running mingw64, because of a 64 bit system.
Could someone clarify exactly what you have to install to get "make" to work....this means which version of software, which paths to define in which place (windows or in profile.d) ?
I hope to find a solution, as it took me already 3 days without progress.
Thanks in advance
best regards
Ludo
Re: ESP-IDF problems with mingw/mingw32/make
Posted: Mon Aug 05, 2019 7:41 am
by WiFive
Which instructions? These
https://docs.espressif.com/projects/esp ... setup.html ?
Mingw32.exe runs fine on a 64 bit system.
Re: ESP-IDF problems with mingw/mingw32/make
Posted: Mon Aug 05, 2019 8:00 am
by Patsjemoe
Hi,
thanks, but I followed already this document, but no solution.
have followed all instructions, and make does not work.
now I have an additional problem :
IDF_PATH cannot contain colons. If overriding IDF_PATH on Windows, use MSYS Unix-style /c/dir instead of C:/dir. I tried to change this, but windows does not allow /c/....(see attachement).
regards
Ludo
Re: ESP-IDF problems with mingw/mingw32/make
Posted: Mon Aug 05, 2019 8:28 am
by Patsjemoe
hi,
thanks for your feedback.
Unfortunately, I already followed these instructions without succes.
Trying to fix it, I added IDF_PATH to windows, but got following error :
IDF_PATH cannot contain colons. If overriding IDF_PATH on Windows, use MSYS Unix-style /c/dir instead of C:/dir.
I changed this, but got an error (see attachement) .
Then I deleted completely the windows path to IDF, and kept only the paths to MSYS32/usr/bin to the make file.
Strange enough, I do not have any IDF path in windows anymore, but still get the same error IDF PAth cannot contain colons....
regards
Ludo
Re: ESP-IDF problems with mingw/mingw32/make
Posted: Mon Aug 05, 2019 6:54 pm
by WiFive
https://docs.espressif.com/projects/esp ... ml#windows
You want to add it to the path in the msys2 environment not the windows environment. In general if you are using msys2 just pretend windows doesn't even exist.
Re: ESP-IDF problems with mingw/mingw32/make
Posted: Tue Aug 06, 2019 9:31 am
by Patsjemoe
Hi,
thanks for your feedback.
I have put it in c/msys32/et/profile.d/export_adf_path
But as it does not work, I also tried to put it in windows.
In mingw32, nothing happens, I get following error :
$ make menuconfig
Makefile:2: /project.mk: No such file or directory
make: *** No rule to make target '/project.mk'. Stop.
Still stuck...
Regards
Ludo
Re: ESP-IDF problems with mingw/mingw32/make
Posted: Tue Aug 06, 2019 8:37 pm
by WiFive
Close MSYS2 window and open it again. Check if IDF_PATH is set, by typing:
The path previusly entered in the script file should be printed out.
If you do not like to have IDF_PATH set up permanently in user profile, you should enter it manually on opening of an MSYS2 window:
Code: Select all
export IDF_PATH="C:/msys32/home/user-name/esp/esp-idf"
Re: ESP-IDF problems with mingw/mingw32/make
Posted: Sat Aug 10, 2019 5:28 am
by Patsjemoe
somehow, the system does not take the IDF_PATH file in profile.d directory.
when I now manually export it, the path is returned (there was confusion of the export IDF_PATH, which in a documents also was written as EXPORT_IDF_PATH as name.....so had to do export export_idf_path)
I now have following error :
$ make menuconfig
0 [main] make (6616) C:\msys32\usr\bin\make.exe: *** fatal error - cygheap base mismatch detected - 0x642D5408/0x612B6408.
Have re-installed cygwin, but error remains.
I think to re-install everything, but the problem is that there are several different documents, some of them refer to old versions. If there was 1 "latest" version, it would be good.
What I also do not understand is that some documents refer to mingw32, some documents refer to cmd.exe...............can I only use cmd.exe , and what should/not I install then ?
1 document with clear instructions would be very welcome.
regards
Re: ESP-IDF problems with mingw/mingw32/make
Posted: Sat Aug 10, 2019 5:39 am
by Patsjemoe
when I click on the IDF_PATH.sh in the profile.d directory, it opens a screen and says :
bash: c:/msys32/home/user/esp-idf-v3.2.2: is a directory
/usr/bin/bash: Exit 126.
so this does not work..therefore, no automatically created path...now to solve this...
Re: ESP-IDF problems with mingw/mingw32/make
Posted: Sat Aug 10, 2019 6:02 am
by WiFive
The contents of IDF_PATH.sh file should be
Code: Select all
export IDF_PATH="c:/msys32/home/user/esp-idf-v3.2.2"
Try running autorebase.bat in msys2 directory