[SOLVED] Example "eth2ap" do not compile

gpezzella
Posts: 50
Joined: Sun Jan 27, 2019 8:04 pm

[SOLVED] Example "eth2ap" do not compile

Postby gpezzella » Mon Jan 06, 2020 7:09 pm

Hi friends
I have just clone v3.3.1 and try to flash eth2ap examples but I have this error:

fatal error: esp_private/wifi.h: No such file or directory
compilation terminated.
Annotazione 2020-01-06 200255.png
Annotazione 2020-01-06 200255.png (42.52 KiB) Viewed 9337 times

Now if you look in repository this directory exist but under msys32/components no
Annotazione 2020-01-06 201739.png
Annotazione 2020-01-06 201739.png (298.07 KiB) Viewed 9331 times
How it is possible??
Thanks
Attachments
Annotazione 2020-01-06 191654.png
Annotazione 2020-01-06 191654.png (677.4 KiB) Viewed 9337 times
Last edited by gpezzella on Tue Jan 07, 2020 12:58 pm, edited 1 time in total.

User avatar
rudi ;-)
Posts: 1698
Joined: Fri Nov 13, 2015 3:25 pm

Re: Example "eth2ap" do not compile

Postby rudi ;-) » Mon Jan 06, 2020 8:09 pm

gpezzella wrote:
Mon Jan 06, 2020 7:09 pm
Hi friends
I have just clone v3.3.1 and try to flash eth2ap examples but I have this error:
Hi
did you clone v3.3.1 from git or use you the download zip?
where you get the eth2ap example in and for v3.3.1?
best wishes
rudi ;-)

...edit..
Last edited by rudi ;-) on Mon Jan 06, 2020 8:43 pm, edited 2 times in total.
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

gpezzella
Posts: 50
Joined: Sun Jan 27, 2019 8:04 pm

Re: Example "eth2ap" do not compile

Postby gpezzella » Mon Jan 06, 2020 8:39 pm

Hi Rudi
first I delete esp-idf folder and re clone it (but forgot -b option….)
After that I download esp-idf master and from that I copy eth2ap example and wifi-esp folder
Of course something is wrong in my procedure..

What I must check?

User avatar
rudi ;-)
Posts: 1698
Joined: Fri Nov 13, 2015 3:25 pm

Re: Example "eth2ap" do not compile

Postby rudi ;-) » Mon Jan 06, 2020 8:44 pm

gpezzella wrote:
Mon Jan 06, 2020 8:39 pm
Hi Rudi
first I delete esp-idf folder and re clone it (but forgot -b option….)
After that I download esp-idf master and from that I copy eth2ap example and wifi-esp folder
Of course something is wrong in my procedure..

What I must check?
FYI:
you missing esp_private/wifi.h cause eth2ap is an example from this up esp-idf 4.0-beta1
and also esp_private compo is from up esp-idf 4.0-beta1 and in down esp-idf V3.3.1 not existend.
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

User avatar
rudi ;-)
Posts: 1698
Joined: Fri Nov 13, 2015 3:25 pm

Re: Example "eth2ap" do not compile

Postby rudi ;-) » Mon Jan 06, 2020 8:53 pm

gpezzella wrote:
Mon Jan 06, 2020 8:39 pm
What I must check?
i would not mix the versions things between newer examples and older esp-idf versions.
it can be that there are header missings in the older esp-idf versions what is need in the newer examples.

if you can try the right esp-idf version where the example is exist, example esp-idf v4.0.1 beta and test the build?

hope this helps for the first

best wishes
rudi :-)
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

gpezzella
Posts: 50
Joined: Sun Jan 27, 2019 8:04 pm

Re: Example "eth2ap" do not compile

Postby gpezzella » Mon Jan 06, 2020 9:09 pm

Hi Rudi,

thanks for fast reply.

I'm newby and still do stupid things.

For avoid other error, which is the correct way to install this new version?

Thanks

User avatar
rudi ;-)
Posts: 1698
Joined: Fri Nov 13, 2015 3:25 pm

Re: Example "eth2ap" do not compile

Postby rudi ;-) » Mon Jan 06, 2020 9:17 pm

gpezzella wrote:
Mon Jan 06, 2020 9:09 pm
Hi Rudi,

thanks for fast reply.

I'm newby and still do stupid things.

For avoid other error, which is the correct way to install this new version?

Thanks

Hi

you can git the actually esp-idf version
and checkout the need version / tag
have a look to the github
braches_tags.png
braches_tags.png (33.71 KiB) Viewed 9308 times
you can select branches also tags.

how you git the repo in your way?
do you use command line or do you use a GUI git ?

best wishes
rudi ;-)
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

User avatar
rudi ;-)
Posts: 1698
Joined: Fri Nov 13, 2015 3:25 pm

Re: Example "eth2ap" do not compile

Postby rudi ;-) » Mon Jan 06, 2020 9:35 pm

command line

Code: Select all

cd ~/esp
git clone -b v4.0-beta1 --recursive https://github.com/espressif/esp-idf.git
or if you want Git GUI and you do not have:Download and install Git from git-scm.com
like here described

FYI: can be that you need update the toolchain too.. check your installed tools ( msys32, toolchain ect ) .. look here

hope this helps in further success steps.
best wishes
rudi ;-)
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

User avatar
rudi ;-)
Posts: 1698
Joined: Fri Nov 13, 2015 3:25 pm

Re: Example "eth2ap" do not compile

Postby rudi ;-) » Mon Jan 06, 2020 10:06 pm

Hi

checked it out for you:
eth2ap example need esp-idf version v4.0-beta1 and up
toolchain 2019_r1

success:

Code: Select all

sysop@xxxxx MINGW32 ~/esp/V4.0.1-beta/eth2ap
$ make -j4 all
Toolchain path: /opt/xtensa-esp32-elf_2019_r1/bin/xtensa-esp32-elf-gcc
Toolchain version: esp32-2019r1
Compiler version: 8.2.0
Python requirements from C:/msys32/home/sysop/gui/esp-idf/requirements.txt are satisfied.
Building partitions from /home/sysop/gui/esp-idf/components/partition_table/partitions_singleapp.csv...
CC build/app_trace/heap_trace_tohost.o
Project is not inside a git repository, will not use 'git describe' to determine PROJECT_VER.
CXX build/asio/asio/asio/src/asio.o
App "eth2ap" version: 1
CC build/app_trace/app_trace.o
CC build/app_update/esp_app_desc.o
CC build/app_trace/host_file_io.o
...

Code: Select all

...
CC build/wpa_supplicant/src/wps/wps_validate.o
CC build/wpa_supplicant/src/wps/wps_attr_process.o
AR build/wpa_supplicant/libwpa_supplicant.a
Generating esp32.project.ld
LD build/eth2ap.elf
esptool.py v2.8-dev
To flash all build output, run 'make flash' or:
python /home/sysop/gui/esp-idf/components/esptool_py/esptool/esptool.py --chip esp32 --port /dev/ttyUSB0 --baud 115200 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 40m --flash_size detect 0x1000 /home/sysop/esp/V4.0.1-beta/eth2ap/build/bootloader/bootloader.bin 0x10000 /home/sysop/esp/V4.0.1-beta/eth2ap/build/eth2ap.bin 0x8000 /home/sysop/esp/V4.0.1-beta/eth2ap/build/partitions_singleapp.bin
..

if you want use eth2ap example you need esp-idf v4.0-beta1 and up also you need toolchain 2019_r1

do not forget to setup in menuconfig you used LAN
Example Configuration -> Ethernet Type
Example Configuration -> Ethernet Phy Device
you can set also SSID and Password there in the Example Configuration
menuconfig_eth2ap.png
menuconfig_eth2ap.png (9.43 KiB) Viewed 9289 times

hope this helps
let us know that you run success or if you anyting need or miss
best wishes
rudi ;-)

edit:if your build now success - please if you want - change the title to [solved] Example "eth2ap" do not compile
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

gpezzella
Posts: 50
Joined: Sun Jan 27, 2019 8:04 pm

Re: Example "eth2ap" do not compile

Postby gpezzella » Mon Jan 06, 2020 10:34 pm

Hi Rudi
thanks very much! It work very good!

The only message was this:

The following Python requirements are not satisfied:

click>=5.0
pyelftools>=0.22

The recommended way to install a packages is via "pacman".
Please run "pacman -S s <package_name>" for searching the package database and if found then "pacman -S mingw-w64-i686-python2-<package_name>" for installing it.

NOTE: You may need to run "pacman -Syu" if your package database is older and run twice if the previous run updated "pacman" itself.

Please read https://github.com/msys2/msys2/wiki/Using-packages for further information about using "pacman"

Alternatively, you can run:
"C:/msys32/mingw32/bin/python.exe -m pip install --user -r C:/msys32/home/giuse/esp/esp-idf/requirements.txt"
for resolving the issue

The script er.exe is installed in 'C:\msys32\home\giuse/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

I have run:
"C:/msys32/mingw32/bin/python.exe -m pip install --user -r C:/msys32/home/giuse/esp/esp-idf/requirements.txt"
and all go well.

Who is online

Users browsing this forum: Bing [Bot] and 177 guests