compilation on windows without MSYS2

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: compilation on windows without MSYS2

Postby ESP_Angus » Mon Apr 30, 2018 6:50 am

Hi sanukrishnan,

We've just announced preview support for CMake, which does not require MSYS2: https://esp32.com/viewtopic.php?f=13&t=5559&p=24109

Angus

sanukrishnan
Posts: 6
Joined: Tue Apr 24, 2018 1:53 pm

Re: compilation on windows without MSYS2

Postby sanukrishnan » Tue May 01, 2018 12:44 pm

Success :D

I tried both ways.

Platformio needs installation of python.

I tried arduino-builder:

1. Downloaded arduino 1.8.5 Zip
2. included esp32hardware support as explained in https://github.com/espressif/arduino-esp32
3. Run get.exe to download required files
4. Deleted all files and folders in arduino folder except hardware,libraries, tools builder.
5. Deleted arduino and tools from harware folder as well
6. Set default value for build flash frequency in boards.txt (by removing menu option)
7. Compressed arduino folder.
8. Now I have that portable folder that can be copied to any other PCs (windows) with zero dependency.

9. To compile:

Code: Select all

 ./arduino-builder  -hardware ./hardware -tools ./hardware/espressif/esp32/tools -tools ./tools-builder -libraries ./libraries -build-path C:\Users\.....\Desktop\arduino-1.8.5\build -verbose -fqbn espressif:esp32:esp32thing main
10. To download :

Code: Select all

./hardware/espressif\esp32/tools/esptool.exe --chip esp32 --port COM18 --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0xe000 C:\Users\.......\Desktop\arduino-1.8.5\hardware\espressif\esp32/tools/partitions/boot_app0.bin 0x1000 C:\Users\....\Desktop\arduino-1.8.5\hardware\espressif\esp32/tools/sdk/bin/bootloader_qio_80m.bin 0x10000 C:\Users\....\Desktop\arduino-1.8.5\ebot_main\build\ebot_main.ino.bin 0x8000 C:\Users\.....\Desktop\arduino-1.8.5\ebot_main\build\ebot_main.ino.partitions.bin 
Thank you all

Who is online

Users browsing this forum: tahseenabbas52 and 85 guests