I have seen this problem addressed on here, for windows, but I am running Unbuntu -mate, on a Raspberry PI3 (B).
When I upload a sketch, I get the following error …
Arduino: 1.8.5 (Linux), Board: “ESP32 Dev Module, Default, QIO, 80MHz, 4MB (32Mb), 921600, None”
fork/exec /home/jake/Arduino/hardware/espressif/esp32/tools/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++: no such file or directory
Error compiling for board ESP32 Dev Module.
After doing some exploring on the web, I went to the directory ….
/home/jake/Arduino/hardware/espressif/esp32/tools
and tried to run get,exe. First I double clicked on it, andthe arcive manager opens up, and I get the error ..
7-Zip 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18
p7zip Version 9.20 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,4 CPUs)
Error: /home/jake/Arduino/hardware/espressif/esp32/tools/get.exe: Can not open file as archive
Errors: 1
(Remember,I am on Linux, Not Windows) … When I right click on get.exe, there is no choice to run as administrator, only open as administrator ..and I get the same error.Installing the ESP32 Board in Arduino IDE (Mac OS and Linux instructions)
I am guessing I am getting this because get.exe is a windows file. However, I followed the Linux instructions, for installing the eps32 board … Module 1, unit 4.
Please help, Jake
Hi Jake!
Thanks for the detailed comment! If you are installing the ESP32 add-on in a Linux machine, you need to use the Linux instructions.
Please take a look at this Unit: https://rntlab.com/installing-the-esp32-board-in-arduino-ide-mac-os-and-linux-instructions/
Read the instructions at “B – Instructions for Debian/Ubuntu OS” section. On a Linux machine, you can’t run get.exe files…
You’ll need to have Python installed and run the get.py file with:
python get.py
But please take a look at the Unit that I’ve mentioned and let me know if it helps you solve that problem.
Regards,
Rui
I went ahead and followed the instructions, and it seemed to work fine,
When I ran the IDE and tested it, I got the following error …
Arduino: 1.8.5 (Linux), Board: “DOIT ESP32 DEVKIT V1, 80MHz, 921600, None”
fork/exec /home/jake/Arduino/hardware/espressif/esp32/tools/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++: no such file or directory
Error compiling for board DOIT ESP32 DEVKIT V1.
This report would have more information with
“Show verbose output during compilation”
option enabled in File -> Preferences.
upon farther examination, it creates the following path … /home/jake/Arduino/hardware/espressif/esp32/tools …
in there, is a folder name mkspiffs … in there is a file with the same name.
I noticed, when I copied and pasted the code … it got to where it created,then renamed it .. then it ended .. no errors,just back to prompt.
It never created xtensa-esp32
So, I then went to …. /home/jake/Arduino/hardware/espressif/esp32/tools … and opened a terminal there, and did the command ….
sudo python2 get.py ….
result was …
System: Linux, Info: Linux-4.4.38-v7+-armv7l-with-Ubuntu-16.04-xenial
Platform: arm-linux-gnueabihf
Tool mkspiffs-0.2.2-arduino-esp32-linux-armhf.tar.gz already downloaded
Extracting mkspiffs-0.2.2-arduino-esp32-linux-armhf.tar.gz
Renaming mkspiffs-0.2.2-arduino-esp32-linux-armhf to mkspiffs
Done
jake@jake-desktop:~/Arduino/hardware/espressif/esp32/tools$
Since that is last command in sequence .. and it, and … looks to me,like all others excuted fine … I am not sure where (or when) the xtensa is created.
Jake
Hi David,
Thanks for providing the detailed process that you’ve followed. I would recommend deleting the full espressif folder (and of course everything inside) and start over.
I would also recommend instead of copying the full command, I would run each line individually and see if any error or problem happens during that process.
Then, I would re-run all the commands again and hopefully everything downloads/install this time.
The xtensa-esp32 is downloaded/installed with the Python command. Do you have Python 3 installed in your system?
Instead of executing the file get.py with Python 2, can you run it with Python 3 this time?
Ignore this… See the next 2 replies, for solution.
Hello,
I deleted espressif .. and ran the commands, one at a time … I did it twice, once with python3 get.py … and once with python2 get.py
both times I get the same result .. here is copy and paste of me excuting python3 get.py …. and the results I see on screen …
jake@jake-desktop:~/Arduino/hardware/espressif/esp32/tools$ python3 get.py
System: Linux, Info: Linux-4.4.38-v7+-armv7l-with-Ubuntu-16.04-xenial
Platform: arm-linux-gnueabihf
Tool mkspiffs-0.2.2-arduino-esp32-linux-armhf.tar.gz already downloaded
Extracting mkspiffs-0.2.2-arduino-esp32-linux-armhf.tar.gz
Renaming mkspiffs-0.2.2-arduino-esp32-linux-armhf to mkspiffs
Done
jake@jake-desktop:~/Arduino/hardware/espressif/esp32/tools$
This may be a problem tied to the Raspberry PI3 , with the Arduino IDE, and the ESP32 tool chain ….
I just found this ….
https://github.com/espressif/arduino-esp32/issues/789
At the bottom of this page, the last post .. the person posts a couple of google drive links, where he compiled the tool chain himself, and he says it works …
I will pull those down, and see if it works. If it does, I will let people on here know .. Hopefully, this will fix the problem, considering this is my exact set-up, and he is/was having exact same problem.
Jake
Ok, I have it working now. I will explain what to do .. Rui ..feel free to clean this up, and/or post a better explanition.
This fix is for people using a Raspberry Pi ) I am using a Pi3 (B) .. but I am guessing it applies to all Raspberry PI’s).
In the course, follow the instructions for a Debian Unbuntu install …
( I am not sure if you have to do the last command … python2 get.py …. it will partially work, but not completely .. I would go ahead and run it, it doesn’t hurt).
then go to this page …
https://github.com/espressif/arduino-esp32/issues/789
scroll down to the message ..
CosmicBandito69 commented on Nov 2, 2017 …. right now it is the last message, but that may change …
In the message, click on the blue word LINK … it will open up a google drive page.
There are 2 files there .. the one you want is … xtensa-toolchain-rpi.zip
I know, the other is a lot smaller, it didn’t work for me, wouldn’t compile sketches correctly.
Once you get the file, extract the folder in the zip file, it is named xtensa-esp32-elf
Place that folder in … Arduino/hardware/espressif/esp32/tools
(If you followed the course instructions, that path exists).
That’s it ..should work now. Make sure you reset your ESP32 board, if you were trying anything before you did this.
Final notes … the … python2 get.py … command creates the .. mkspiffs folder, but then stops,does not create the rest of what you need. (again, this is on a Raspberry Pi) . The files you are downloading are a toolchain that was created specifically for the RPI3.
Last note: .. that zip file is located on someone’s Google Drive. If for some reason it dissapears, please let Rui know ..he can contact me via e-mail ( I know he has it, we have communicated in the last couple of days) . If it does dissapear .. I have a … Google Drive acct, a Box acct, and a onedrive acct. So I can put it up if needed.
I hope this helps.
Jake
Thank you Jake for posting a detailed explanation of what happened and how you solved it.
I’ve only tried to install the ESP32 add-on for the Arduino IDE on Ubuntu, Mac OS X and Windows. If this starts being a popular question, I’ll definitely send a link to this conversation or create a section that describes how to install on the Raspberry Pi.
Regards,
Rui