Page 1 of 2

Problems setting up Windows Linux Subsystem with esp-idf

Posted: Fri Mar 30, 2018 12:33 pm
by gnorkus
Hi All!

I heard that the Windows Subsystem for Linux would compile a bunch faster than MingW32, so I decided to give it a try, both in Debian and Ubuntu. I'm simply trying to make from the command line, and both Debian and Ubuntu are giving me the same problem, however.

When I get everything set up, I type "make" and this is what I get on both systems.

Below is a picture of the problem:

Thanks ahead of time for the help!
Screenshot (24).png
Screenshot (24).png (101.58 KiB) Viewed 10369 times

Re: Problems setting up Windows Linux Subsystem with esp-idf

Posted: Fri Mar 30, 2018 3:00 pm
by kolban
It looks good according to my notes. The only thing I see that appears a little odd to my eyes is that the error message appears to be:

/make/project.mk'. Stop. target '/home/gnork/esp/esp-idf

which doesn't seem to be formatted correctly.

Also, is your IDF_PATH environment variable "exported".

How did you set the variable?

Try:

export IDF_PATH=...value...

and try again.

Re: Problems setting up Windows Linux Subsystem with esp-idf

Posted: Fri Mar 30, 2018 3:09 pm
by gnorkus
Hi nkolban,

Thx for the reply!

I put the export commands in some scripts. I put them in /etc/profile.d

The echo commands were just to show you the environment variables indeed were set properly (I hope)

Re: Problems setting up Windows Linux Subsystem with esp-idf

Posted: Fri Mar 30, 2018 3:44 pm
by WiFive
Your path is messed up, look at the last 2 entries

Re: Problems setting up Windows Linux Subsystem with esp-idf

Posted: Fri Mar 30, 2018 3:48 pm
by chegewara
Missing python interpreter in path perhaps?

Re: Problems setting up Windows Linux Subsystem with esp-idf

Posted: Fri Mar 30, 2018 4:39 pm
by kolban
@gnorkus
Assuming the great suggestions just posted don't resolve the problem, I have some time today and this is an area that interests me. If you feel it would be useful to have another pair of eyes on the puzzle, ping me on IRC in channel #ESP32 user kolban and we can do a skype/screen share to look at it together.

Re: Problems setting up Windows Linux Subsystem with esp-idf

Posted: Fri Mar 30, 2018 4:50 pm
by gnorkus
Chegewara, thx!

O.K. Uninstalled Debian and reinstalled clean setup. New esp-idf and toolchain. Same problem, but fixed the paths.

Here's a new pic:
Screenshot (26).png
Screenshot (26).png (361.39 KiB) Viewed 10336 times

Re: Problems setting up Windows Linux Subsystem with esp-idf

Posted: Fri Mar 30, 2018 4:59 pm
by gnorkus
Thx nkolban,

O.K. Python was not installed. So, I assume I should add that to the path, per your other comment? (I didn't see that in the espressif setup instructions. :) )

Suggestions on path to add?

Re: Problems setting up Windows Linux Subsystem with esp-idf

Posted: Fri Mar 30, 2018 6:08 pm
by gnorkus
sudo apt-get install git wget make libncurses-dev flex bison gperf python python-serial

Well, I guess it was in the instructions....

Doh..

Re: Problems setting up Windows Linux Subsystem with esp-idf

Posted: Fri Mar 30, 2018 6:57 pm
by gnorkus
Ok even with python and python-serial installed, it still doesn't compile, same messages. I did a full reinstall using the exact method of installation. So I'll google the python path. If that doesn't work, will Monday be a good day to Skype you? (Nkolban)