Sonoff-Tasmota firmware - core_version.h not found

I'm trying to upload a new firmware for a Sonoff switch with Tasmoto's firmware.

I installed the ESP8266 under boards manager.
Copied the library files inside the Sonoff-Tasmota-6.4.1.zip file (under /lib) into my arduino library directory : C:\arduino-1.8.8\libraries

When I try to compile the Sonoff sketch, it gives me following error :

sonoff:29:143: error: core_version.h: No such file or directory

So I'm probably copied the library files in the wrong directory, right?

What am I doing wrong?

I'm following this tutorial :

Probably because your folder has the - caracter in its name. Change that in _ and it might work. Even easier is to have the arduino ide install them for you it will get rid of the wrong characters.

You can install the .zip file from within the arduino IDE

stevennoppe:
it gives me following error :

sonoff:29:143: error: core_version.h: No such file or directory

When you encounter an error, you'll see a button on the right side of the orange bar "Copy error messages" (or the icon that looks like two pieces of paper at the top right corner of the black console window in the Arduino Web Editor). Click that button. Paste the error in a message here USING CODE TAGS (</> button on the forum toolbar). If the text exceeds the forum's 9000 character limit, save it to a text file and post it as an attachment. If you click the "Reply" button here, you will see an "Attachments and other settings" link.

Bringamosa:
Probably because your folder has the - caracter in its name. Change that in _ and it might work. Even easier is to have the arduino ide install them for you it will get rid of the wrong characters.

  • has been allowed by the Arduino IDE in folder names for years now. If it didn't, it would be a disaster because GitHub appends -{branchname} to the folder name every time you download something from that website and GitHub is by far the most popular place to host Arduino projects.

Hmm, i have no folder under my libraries folder using the - character. Every - gets converted to _ by the arduino ide when installing from a .zip file.

That is on raspbian btw.

I just tested with Arduino IDE 1.8.8 on Raspbian and it left the - alone when installing via Sketch > Include Library > Add .ZIP Library....

Pert i just did the same and indeed, it leaves it as is. Not sure why this was imprinted in my brain :stuck_out_tongue:

The Arduino Library Manager names the library installation folder according to the name value in the library's library.properties file. Spaces are allowed in the library.properties name, but not in the folder name. Library Manager replaces spaces with underscores in the folder name.