Page 1 of 1

Error when rename the example project

Posted: Wed Oct 02, 2019 10:44 am
by hetal.panara82
I am working on esp32 and have setup esp-mdf.

I copied https_request example project and did make, it works fine. I did flash to esp32 module and all works fine.

Now, I want to rename the example project to something else like "my_test". For this,
1. I deleted build directory
2. Changed the project name in CMakeList.txt
3. Changed the project name in Makefile

After that if I issue a make command, it throws following error,
make: Circular /home/hetal/esp/esp-mdf/dev/test/my_test/build/my_test <- /home/hetal/esp/esp-mdf/dev/test/my_test/build/my_test dependency dropped.
LD.elf
xtensa-esp32-elf-gcc.exe: error: .map: No such file or directory
make: *** [C:/msys32/home/hetal/esp/esp-idf/make/project.mk:461: .elf] Error 1
Appreciate any pointers to resolve the issue

Re: Error when rename the example project

Posted: Fri Oct 04, 2019 12:15 pm
by mikemoy
did you try make clean ?

Re: Error when rename the example project

Posted: Thu Oct 10, 2019 3:51 pm
by hetal.panara82
Clean also did not help.

Finally I followed as below,
1. Delete build directory
2. Rename the project in CMakeList and Makefile
3. execute make to build
4. Change the directory name (same as project name in my case)

It works then!