Problem with ESP32 project and Eclipse IDE in Windows

olexandr_turok
Posts: 2
Joined: Thu Aug 15, 2019 6:11 am

Problem with ESP32 project and Eclipse IDE in Windows

Postby olexandr_turok » Thu Aug 15, 2019 6:24 am

Hello everyone.
I try setting Elipce to build ESP32 projects.
I do all like described in this instruction:
https://docs.espressif.com/projects/esp ... setup.html
and this:
https://docs.espressif.com/projects/esp ... setup.html

But, if I try clean or flash I get message:
"09:07:17 **** Clean-only build of configuration Default for project hello_world ****
python c:/msys32/home/Oleksandr_Turok/esp/esp-idf/tools/windows/eclipse_make.py clean
Traceback (most recent call last):
File "c:/msys32/home/Oleksandr_Turok/esp/esp-idf/tools/windows/eclipse_make.py", line 36, in <module>
main()
File "c:/msys32/home/Oleksandr_Turok/esp/esp-idf/tools/windows/eclipse_make.py", line 28, in main
print("Running make in '%s'" % check_path(os.getcwd()))
File "c:/msys32/home/Oleksandr_Turok/esp/esp-idf/tools/windows/eclipse_make.py", line 23, in check_path
winpath = winpath.replace("\\", "/") # make consistent with forward-slashes used elsewhere
TypeError: a bytes-like object is required, not 'str'
"python c:/msys32/home/Oleksandr_Turok/esp/esp-idf/tools/windows/eclipse_make.py clean" terminated with exit code 1. Build might be incomplete.

09:07:18 Build Finished. 0 errors, 0 warnings. (took 239ms)"

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

Re: Problem with ESP32 project and Eclipse IDE in Windows

Postby mikemoy » Thu Aug 15, 2019 8:24 am

Not trying to hijack your post, but do you know about PlatformIO ?

https://community.platformio.org/t/espr ... um=piohome

User avatar
roland
Posts: 25
Joined: Tue Oct 09, 2018 10:28 am

Re: Problem with ESP32 project and Eclipse IDE in Windows

Postby roland » Thu Aug 15, 2019 12:57 pm

Hi olexandr_turok,

please try to edit esp-idf/tools/windows/eclipse_make.py line 23 and replace

Code: Select all

winpath = winpath.replace("\\", "/")
with this:

Code: Select all

winpath = winpath.replace(b"\\", b"/")
If this helps then I'll create a fix for it.

olexandr_turok
Posts: 2
Joined: Thu Aug 15, 2019 6:11 am

Re: Problem with ESP32 project and Eclipse IDE in Windows

Postby olexandr_turok » Fri Aug 16, 2019 6:45 am

roland wrote:
Thu Aug 15, 2019 12:57 pm
Hi olexandr_turok,

please try to edit esp-idf/tools/windows/eclipse_make.py line 23 and replace

Code: Select all

winpath = winpath.replace("\\", "/")
with this:

Code: Select all

winpath = winpath.replace(b"\\", b"/")
If this helps then I'll create a fix for it.
I fixed my problem. But not all.

Firstly, I was not attentive with manual.
In this step:
"Edit the PATH environment variable. Delete the existing value and replace it with "
I didn't delete the existing value and only add new.

So, when I deleted old values in PATH, project builds.
But Eclipce doesn't see includes.


And this manual has a mistake:
https://docs.espressif.com/projects/esp ... dows-setup

In step "In the list of providers, click “CDT Cross GCC Built-in Compiler Settings”. Change “Command to get compiler specs” to "
need changing CDT GCC Built-in Compiler Settings Cygwin. Right?

Who is online

Users browsing this forum: Google [Bot] and 25 guests