Error when rename the example project

hetal.panara82
Posts: 16
Joined: Wed Jun 26, 2019 7:11 am

Error when rename the example project

Postby hetal.panara82 » Wed Oct 02, 2019 10:44 am

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

mikemoy
Posts: 626
Joined: Fri Jan 12, 2018 9:10 pm

Re: Error when rename the example project

Postby mikemoy » Fri Oct 04, 2019 12:15 pm

did you try make clean ?

hetal.panara82
Posts: 16
Joined: Wed Jun 26, 2019 7:11 am

Re: Error when rename the example project

Postby hetal.panara82 » Thu Oct 10, 2019 3:51 pm

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!

Who is online

Users browsing this forum: Baidu [Spider], Google [Bot] and 63 guests