Eclipse build failed

VNNGia
Posts: 3
Joined: Thu Mar 05, 2020 6:59 pm

Eclipse build failed

Postby VNNGia » Sun Mar 08, 2020 4:34 pm

Hello everyone,
i am new with esp32. I tried to setup eclipse under this Link https://github.com/espressif/idf-eclipse-plugin
Build is failed and following messages appeared.
FAILED: bootloader-prefix/src/bootloader-stamp/bootloader-build bootloader/bootloader.elf bootloader/bootloader.bin bootloader/bootloader.map
cmd.exe /C "cd /D "C:\Workspace\Workspace Eclipse\test1\build\bootloader" && C:\Users\vanng\.espressif\tools\cmake\3.13.4\bin\cmake.exe --build ."
[1/2] Linking C executable bootloader.elf
FAILED: bootloader.elf
Could you please have me to solve it!? Many thanks in advance!
Best regards
Han
Attachments
elipse_esp32.png
elipse_esp32.png (197.54 KiB) Viewed 14260 times

ESP_kondalkolipaka
Posts: 161
Joined: Wed Jul 17, 2019 5:26 pm

Re: Eclipse build failed

Postby ESP_kondalkolipaka » Mon Mar 09, 2020 5:54 am

Hello,

Could you please provide the global build log as per the instructions. https://github.com/espressif/idf-eclips ... -build-log

Also provide PATH value from the CDT build preferences. That will help us to see whether any path variable is missing

Code: Select all

Preferences > C/C++ Build > Environment
For example, PATH value looks like this https://github.com/espressif/idf-eclipse-plugin#path so check if anything is missing

VNNGia
Posts: 3
Joined: Thu Mar 05, 2020 6:59 pm

Re: Eclipse build failed

Postby VNNGia » Mon Mar 09, 2020 8:34 pm

Hello kondalkolipaka,
you can see in Attachment the Picture of Espressif IDF Tools Console .
In which I saw the message
"Executing C:\Program Files\Python\python.exe C:\Workspace\esp-idf-v4.0\tools\idf_tools.py install-python-env
Creating a new Python environment in C:\Users\vanng\.espressif\python_env\idf4.0_py3.7_env"
I checked the folder \.espressif and I did not found the python_env folder, maybe is something wrong here?

PATH value from Build Enviroment is

C:\Users\vanng\.espressif\tools\xtensa-esp32-elf\esp-2019r2-8.2.0\xtensa-esp32-elf\bin;
C:\Users\vanng\.espressif\tools\esp32ulp-elf\2.28.51.20170517\esp32ulp-elf-binutils\bin;
C:\Users\vanng\.espressif\tools\cmake\3.13.4\bin;
C:\Users\vanng\.espressif\tools\openocd-esp32\v0.10.0-esp32-20190313\openocd-esp32\bin;
C:\Users\vanng\.espressif\tools\mconf\v4.6.0.0-idf-20190628\;
C:\Users\vanng\.espressif\tools\ninja\1.9.0\;
C:\Users\vanng\.espressif\tools\idf-exe\1.0.1\;
C:\Users\vanng\.espressif\tools\ccache\3.7\;
C:\Workspace\esp-idf-v4.0\tools;
C:/Program Files/Java/jre1.8.0_241/bin/server;
C:/Program Files/Java/jre1.8.0_241/bin;
C:/Program Files/Java/jre1.8.0_241/lib/amd64;
C:\Program Files (x86)\Common Files\Oracle\Java\javapath;
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;
C:\Windows\System32\WindowsPowerShell\v1.0\;
C:\Windows\System32\OpenSSH\;C:\Program Files\dotnet\;
C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;
C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;
C:\Program Files (x86)\STMicroelectronics\STM32 ST-LINK Utility\ST-LINK Utility;
C:\Program Files\TortoiseSVN\bin;C:\Program Files\doxygen\bin;
C:\Program Files\Git\cmd;C:\Program Files\TortoiseGit\bin;
C:\Program Files\Java\jdk-13.0.2\bin;
C:\Program Files\Git\bin;
C:\Program Files\Python;C:\Users\vanng\AppData\Local\Microsoft\WindowsApps;
C:\Users\vanng\Downloads\eclipse-cpp-2019-09-R-win32-x86_64\eclipse

Thanks you for your effort!
Best regards
Han
Attachments
esp32_1.png
esp32_1.png (39.25 KiB) Viewed 14178 times
esp32_2.png
esp32_2.png (25.27 KiB) Viewed 14178 times

ESP_kondalkolipaka
Posts: 161
Joined: Wed Jul 17, 2019 5:26 pm

Re: Eclipse build failed

Postby ESP_kondalkolipaka » Wed Mar 11, 2020 10:46 am

Hi,

At least I don't see any issue with the PATH environment variable.

Could you run the below command from the terminal and see what happens?

Code: Select all

C:\Program Files\Python\python.exe C:\Workspace\esp-idf-v4.0\tools\idf_tools.py install-python-env
Does it show any error? Is it able to install the required python version for the selected idf?

ESP_kondalkolipaka
Posts: 161
Joined: Wed Jul 17, 2019 5:26 pm

Re: Eclipse build failed

Postby ESP_kondalkolipaka » Wed Mar 11, 2020 10:54 am

As you pointed out, python path might be causing an issue.

I could see below entry in the PATH environment variable and which is missing in your case.

Code: Select all

C:\Users\kondalk\.espressif\python_env\idf4.1_py3.8_env\Scripts;

VNNGia
Posts: 3
Joined: Thu Mar 05, 2020 6:59 pm

Re: Eclipse build failed

Postby VNNGia » Fri Mar 13, 2020 7:35 am

Now it works for me.
I deleted all related Folders and did the installation from beginning.
The different was I made clone ESP-IDF Folder instead of Zip download as previously.
Now I can see the missing python_env Folder in .espressif Folder
Many thanks for your supports.
Best regards
Han

Buming_O
Posts: 1
Joined: Thu Sep 16, 2021 3:46 pm

Re: Eclipse build failed

Postby Buming_O » Thu Sep 16, 2021 4:08 pm

Hi
I may find a solution that can solve the problem.
I'm was also tormented by this problem and I'm using VS code. The problem occurs with different means of installation, which leads me to believe that it is not a problem with the installation. I check the Official Documents of ESPIDE. It says here that the name of your file path cannot contain any spaces and I noticed that your file path is contain with spaces.
SO check you file path , make sure no such problems. Is should be fine. :D

Who is online

Users browsing this forum: No registered users and 26 guests