If you are using the Arduino IDE installed in root/Arduino-1.8.5/, then root/Arduino-1.8.5/hardware/esp8266com/esp8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h should be recognized, but it will only be found when you have one of the ESP8266 core for Arduino boards selected from the Tools > Board menu. The library is specifically written for ESP8266 so it wouldn't work for any other board anyway.
Note the file name is ESP8266WiFi.h, not esp8266wifi.h.
root/Arduino-1.8.5/hardware/esp8266com indicates you did a manual installation of ESP8266 core for Arduino. You should only do that if you are a beta tester or a developer with the ESP8266 core for Arduino project. Normal users should always use the Boards Manager installation method to install ESP8266 core for Arduino:
I changed the preferences.txt to point to my sketches folder and I get a totally different error relating to python3.
So i updated Python3 and get this error.
Using board 'huzzah' from platform in folder: /root/Arduino-1.8.5/hardware/esp8266com/esp8266
Using core 'esp8266' from platform in folder: /root/Arduino-1.8.5/hardware/esp8266com/esp8266
"/root/Arduino-1.8.5/hardware/esp8266com/esp8266/tools/python3/python3" "/root/Arduino-1.8.5/hardware/esp8266com/esp8266/tools/makecorever.py" --build_path "/tmp/arduino_build_553907" --platform_path "/root/Arduino-1.8.5/hardware/esp8266com/esp8266" --version "unix-2.7.0-dev"
fork/exec /root/Arduino-1.8.5/hardware/esp8266com/esp8266/tools/python3/python3: no such file or directory
Error compiling for board Adafruit Feather HUZZAH ESP8266.
When running on Linux, the ESP8266 core for Arduino expects Python 3 to be installed at /usr/bin/python3. /root/Arduino-1.8.5/hardware/esp8266com/esp8266/tools/python3/python3 is just a symlink to that location. So this error means /usr/bin/python3 doesn't exist. If you have Python 3 installed elsewhere, you can update the symlink accordingly.
thank you pert, I think that I have the python 3 issue worked out, at least I get a different error now.
And it says this. A bit weird.
As an aside, I noticed that when I was doing the copying of Arduino-1.8.5, the folder tools did not get copied, so I copied it after the fact. Mentioning that in case it has any impact.
fork/exec /root/Arduino-1.8.5/hardware/esp8266com/esp8266/tools/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++: exec format error
Error compiling for board Adafruit Feather HUZZAH ESP8266.
Thank you Pert, i will try that as soon as i get home.
An additional problem that i have is that the window that pops up for the preferences is so long that the ok button is not visible.
So, i use a text editor to make changes to preferences.txt. Do you see any problems with that ?
No problems. Just make sure to close all Arduino IDE windows before you edit preferences.txt. The Arduino IDE saves its settings to preferences.txt when you exit, so if you edit preferences.txt while the IDE is open, your edit would be reverted when you exited the IDE. Also, the IDE only reads preferences.txt on startup so you need to restart the IDE anyway for your edits to preferences.txt take effect.
Well, nuts !!
I knew that this was going to be too easy.
I got to the board manager and when I tried to install esp8266 I got this error.
mklitlefs is not available for your operating system
I am running a version of puppy linux which I think is based upon ubunbtu.
I tried installing it using these alternate instructions but I still dont see the board as available.
These instructions made a bunch of directories in esp8266
cd hardware
mkdir esp8266com
cd esp8266com
git clone https://github.com/esp8266/Arduino.git esp8266
cd esp8266
git submodule update --init
I am going to look around and see if I can find mklittlefs somewhere
I am 32 bit.
I ran it in the esp8266 folder, where the files tools, cores, boards, etc. are.
My structure looks like this which I think is part of the problem
~/.arduino/packages/arduino/hardware/esp8266com/esp8266/....a lot of files and directories
tools
cores
boards.txt<------contains the feather huzzah that I need.
When I followed the instructions, it created another folder esp8266 below what is above ~/.arduino/packages/arduino/hardware/esp8266com/esp8266/esp8266/...a lot of files.
That didnt look correct so I moved the files to the esp8266 folder one above it.
You know, I only have the 1 sketch and this laptop will be dedicated to running it so I could remove everything relating to Arduino and start over if that might be easier.
OK, that's the problem. It's not about the specific Linux disto you're using. There are various host categories that hardware package authors can provide tool dependencies for:
Windows
macOS
Linux 64 bit
Linux 32 bit
Linux ARM 64 bit
Linux ARM 32 bit
for some reason, the ESP8266 boards package authors didn't provide a version of the mklittlefs tool for Linux 32 bit, thus the error when you tried the installation via Boards Manager.
hextejas:
My structure looks like this which I think is part of the problem
~/.arduino/packages/arduino/hardware/esp8266com/esp8266/....a lot of files and directories
tools
cores
boards.txt<------contains the feather huzzah that I need.
When I followed the instructions, it created another folder esp8266 below what is above ~/.arduino/packages/arduino/hardware/esp8266com/esp8266/esp8266/...a lot of files.
This is the reason the boards didn't show up after you did the git installation. The git installation instructions are designed for installing to the sketchbook folder. The hardware package folder structure would need to be different to install to ~/.arduino/packages, so those instructions won't work for installing to that location. Just run the instructions in your sketchbook folder and it should work fine.
hextejas:
You know, I only have the 1 sketch and this laptop will be dedicated to running it so I could remove everything relating to Arduino and start over if that might be easier.
I would recommend you delete the folders that were created when you tried the git installation under ~/.arduino/packages. It's possible that could cause problems later.
pert:
Just run the instructions in your sketchbook folder and it should work fine.
I would recommend you delete the folders that were created when you tried the git installation under ~/.arduino/packages. It's possible that could cause problems later.
Let me make sure that I have this correct, the installation of the /packages/etc/etc/etc
is to be done in my sketches folder ?
I guess that I can try it and see how it works out.
hextejas:
Let me make sure that I have this correct, the installation of the /packages/etc/etc/etc
is to be done in my sketches folder ?
The "Using git version" installation instructions for ESP8266 boards must be run in the sketchbook folder. You can't run them in the ~/.arduino because that won't work.
Please follow these instructions exactly:
Open preferences.txt
Note the folder specified in the definition of the sketchbook.path preference. This is your sketchbook folder
Close preferences.txt
Open a terminal window in the sketchbook folder.
Run the following commands:
mkdir hardware
cd hardware
mkdir esp8266com
cd esp8266com
git clone https://github.com/esp8266/Arduino.git esp8266
cd esp8266
git submodule update --init
cd esp8266/tools
python3 get.py
Restart the Arduino IDE if it's running.
You should now see the ESP8266 boards listed under the Tools > Board menu.
I get to the python3 command and it says command not found.
That is odd as I recall you and I installing it a few days ago, when you talked me into creating the link.
I am going to look around and see what I can see.
Well, I think we got it pert. I was able to compile and upload it successfully. It was a combination of upgrading to 1.8.12, getting python 3 adjusted and getting the library and sketchbook in the proper places.
Now comes the testing part.
I'm glad to hear it! Normally this is a much easier process because Boards Manager does the whole installation automatically. You just got unlucky that you are using 32 bit Linux and the ESP8266 developers didn't provide the tool for that host. I'm actually not sure what that mklittlefs tool is even used for.