Is there a set up guide for Windows

smbunn
Posts: 4
Joined: Thu Apr 11, 2019 7:38 am

Is there a set up guide for Windows

Postby smbunn » Thu Apr 11, 2019 7:50 am

I have just bought an ESP-EYE and have successfully set up the environment, started the shell, loaded, compiled and flashed the Hello_World example to my ESP-EYE. Thought it was time to do something a little more exciting so grabbed the esp-who files using

Code: Select all

git clone --recursive https://github.com/espressif/esp-who.git
This all look good. I changed the environment variable IDF_PATH to

Code: Select all

c:/msys32/home/Simon/esp/esp-who
as specified and then tried to run

Code: Select all

make defconfig
No go, this just brings up the error

Code: Select all

Makefile:11: C:/msys32/home/Simon/esp/esp-who/make/project.mk: No such file or directory
make: *** No rule to make target 'C:/msys32/home/Simon/esp/esp-who/make/project.mk'.  Stop.
So I tried

Code: Select all

make menuconfig
which worked with hello_world
Same error message

I realize as a newbie that you are probably all ready to pounce, but I am not totally new to IoT or coding. I run a LoRa site, have 7 LoRa devices working fine and am handy with Linus and Python. It just appears that the documentation around Espressif is all about Linux and they ignore the fact that it does not work with Windows 10.

I noted that hello_world has a massive subfolder called 'build' that contains 53 more subfolders. Nothing like this in 'recognition_solution'.

Also noted this forum is not very active :-(

Thanks

ESP_Alvin
Posts: 211
Joined: Thu May 17, 2018 2:26 am

Re: Is there a set up guide for Windows

Postby ESP_Alvin » Fri Apr 12, 2019 6:31 am

Hi, smbuun

We will look into this and reply later, thanks.

ESP_Dazz
Posts: 308
Joined: Fri Jun 02, 2017 6:50 am

Re: Is there a set up guide for Windows

Postby ESP_Dazz » Fri Apr 12, 2019 7:01 am

smbunn wrote: This all look good. I changed the environment variable IDF_PATH to c:/msys32/home/Simon/esp/esp-who
I don't think IDF_PATH is supposed to be set to the esp-who directory. It should instead be set to the esp-idf directory which is a submodule esp-who repo, so something like the following:

Code: Select all

IDF_PATH="c:/msys32/home/Simon/esp/esp-who/esp-idf"

smbunn
Posts: 4
Joined: Thu Apr 11, 2019 7:38 am

Re: Is there a set up guide for Windows

Postby smbunn » Fri Apr 12, 2019 11:41 pm

Thanks, that got me a lot further. I thought the path had to be to the project, since when you look at ESP-WHO documentation it asks you to set IDF_PATH to this dircetory. I changed it back. I ran make defconfig, successfully. I ran make menuconfig and set my serial port to COM4 which is correct and worked with hello_world. I saved, exited and that worked successfully.
I the ran make flash. This processed for ages creating all of the build folders and files but right at the every end terminated with:

Code: Select all

AR build/lwip/liblwip.a
CC build/main/app_httpserver.o
In file included from C:/msys32/home/Simon/esp/esp-who/examples/single_chip/recognition_solution/main/app_httpserver.c:23:0:
C:/msys32/home/Simon/esp/esp-who/examples/single_chip/recognition_solution/main/include/app_httpserver.h:31:29: fatal error: esp_http_server.h: No such file or directory
compilation terminated.
make[1]: *** [/home/Simon/esp/esp-idf/make/component_wrapper.mk:286: app_httpserver.o] Error 1
make: *** [C:/msys32/home/Simon/esp/esp-idf/make/project.mk:468: component-main-build] Error 2

smbunn
Posts: 4
Joined: Thu Apr 11, 2019 7:38 am

Re: Is there a set up guide for Windows

Postby smbunn » Sat Apr 13, 2019 6:58 am

That worked. Seems that I followed the 'hello_world" example which sets up a completely different IDF, which then confused everything. A complete uninstall and fresh install of just ESP-WHO worked

Who is online

Users browsing this forum: No registered users and 7 guests