Page 1 of 1

Errors in Eclipse

Posted: Tue May 30, 2017 7:50 pm
by Eman Hussein
I am trying to build esp-idf-template on eclipse following the video "ESP32 Technical Tutorials: Building a C++ Application" by Kolban but I am getting these 2 errors :
Description Resource Path Location Type
make: *** [/home/esp-idf/components/bootloader_support/Makefile.projbuild:7: /home/esp_proj_1/secure_boot_signing_key.pem] Error 1
and
Description Resource Path Location Type
warning, -s option given but default rule can be matched esp_proj_1

Is there any idea what do I need to do to fix them ?
I attached a screenshot of these 2 errors as well .

Re: Errors in Eclipse

Posted: Thu Jun 01, 2017 3:53 am
by kolban
Does your project's environment variables include a setting for IDF_PATH?

Here is what mine looks like:

Image

Re: Errors in Eclipse - Windows

Posted: Thu Jun 01, 2017 4:38 pm
by Eman Hussein
Yes , and the path is
C:/Users/emanh/Desktop/ESP32/esp32_win32_msys2_environment_and_toolchain-20170330/msys32/home/esp-idf

Re: Errors in Eclipse

Posted: Thu Jun 01, 2017 5:25 pm
by Eman Hussein
here is a screenshot

Re: Errors in Eclipse

Posted: Thu Jun 01, 2017 6:28 pm
by Eman Hussein
there is also a warning saying
Invalid project path: Include path not found (C:\Users\emanh\Desktop\ESP32\esp32_win32_msys2_environment_and_toolchain-20170330\msys32\home\esp-idf\components\bt\bluedroid\btc\profile\std\sdp\include). esp_proj_1 pathentry Path Entry Problem

Re: Errors in Eclipse

Posted: Thu Jun 01, 2017 6:35 pm
by Eman Hussein
also the project's path is:
C:\Users\emanh\Desktop\ESP32\esp32_win32_msys2_environment_and_toolchain-20170330\msys32\home\esp_proj_1
and the esp-idf path is :
C:\Users\emanh\Desktop\ESP32\esp32_win32_msys2_environment_and_toolchain-20170330\msys32\home\esp-idf

Re: Errors in Eclipse

Posted: Fri Jun 02, 2017 4:09 pm
by kolban
Aha ... a sudden realization (on my part) ... you are running in Windows. All my experience has been running in Linux. I personally haven't tried any experiments running in the Windows environment. What I will attempt to do is find time this weekend and try and build a Windows build environment and follow my own instructions and see how far I get.
I fully believe that Windows is a supported environment for ESP32 (as per Espressif documentation) however for me, I do all my development in a Linux environment. I run Ubuntu under Oracle's Virtual Box running on Windows 10.

Re: Errors in Eclipse

Posted: Sat Jun 03, 2017 6:24 pm
by f.h-f.s.
@kolban You should do a video on Visual Studio code. it is way easier to set up than eclipse.
Also, on windows you would need a GNU environment like MSYS2. The windows tutorial includes MSYS2, so it wouldn't be that much of a difference from your ubuntu setup.

@eman msys2 cant work with paths containing ":"
Also try using ONLY forward slashes "/"
the C drive is mounted in /c/
It could be the IDF_PATH and the xtensa toolchain path contain ":"
My paths for my vscode setup working with msys2 are:

Code: Select all

"IDF_PATH": "/c/IoT/esp-idf",
"PATH": "${env.PATH}:/c/msys32/usr/bin:/c/msys32/mingw32/bin:/c/IoT/xtensa-esp32-elf/bin",
"XtensaEsp32ELFBinPath": "/c/IoT/xtensa-esp32-elf/bin",

Re: Errors in Eclipse

Posted: Sun Sep 03, 2017 12:02 pm
by Chayal
Hi Eman Hussein,


when running esp-idf-template, getting the same errors like you did, can you tell me how you solved them?

errors:
-s option given but default rule can be matched
make: *** [/c/workspace/esp-idf/components/esptool_py/Makefile.projbuild:53: flash]

please share your knowledge with me,
Chaya

Re: Errors in Eclipse

Posted: Thu Nov 30, 2017 11:19 pm
by tdy91esp32
Concerning Warning "-s option given but default rule can be matched", i had a very similar problem and just post my analysis and a proposed solution at https://github.com/espressif/esp-idf/issues/1338.

Maybe it can help you.