ESP32Encoder icon indicating copy to clipboard operation
ESP32Encoder copied to clipboard

Compile fails with soc.h not found

Open nicechocolate opened this issue 2 years ago • 6 comments

Sorry to interrupt you, but I had this when trying to update an old project (yes, it does have a coding bug that I didn't find two years ago...)

I updated ESP32Encoder to the latest version 0.10.1 and I get "soc.h not found" when trying to compile with Arduino IDE 2.1.0). I have downgraded to version 0.6.0 and it compiles fine.

I shouldn't need to recompile this project again and anyway, I don't mind changing back when I need to, having made a note in my program's comments, but I didn't see anything like this mentioned in any other issues or your read.me, (though it could well be there, my concentration span is not what it was before I had Covid.)

nicechocolate avatar May 22 '23 12:05 nicechocolate

I'm having the same problem. soc.h not found.

MartinNohr avatar Oct 06 '23 23:10 MartinNohr

what chip are you compiling for?

I am working now to update my libraries to support the new toolchains and finding a lot of differences in what the toolchain provides.

madhephaestus avatar Oct 11 '23 12:10 madhephaestus

Kevin, thank you for replying.

I'm using ESP32 DOIT Devkit 1 which has a WROOM-32. I was using the latest (at the time) version of the Arduino IDE, though it has updated since I got the error message.

I haven't tried any other processors, and anything could have changed since I posted the query, because I have had no need to compile that project again. I occasionally use ESP8266 D1 Mini, but now I expect to use the smaller ESP32-S3 for those smaller projects.

Just in case nobody else says it, THANK YOU. I really appreciate the efforts of anyone who, as you have, makes their libraries public. I have all on just remembering how to program, now I'm a bit older and 40 years of computer games has turned my brain to jelly. Covid didn't do anything for my concentration, either.

Neil PS Other libraries, in case that's useful: #include <SPI.h> #include <TFT_eSPI.h> #include <WiFi.h> #include "TimeLib.h" #include <Preferences.h> #include <FastLED.h> #include <TM1637Display.h> #include <Button.h> // Button by Michael Adams. Best library I've found for this. #include "free_fonts.h" #include <ESP32Encoder.h>

I also replied to the email notification of this comment, goodness knows where that went!

nicechocolate avatar Oct 12 '23 14:10 nicechocolate

Hi, Thanks for this lib.

But I do have the same issue "soc.h" I am compiling for a Wemos lolin32 lite board with Arduino 1.8.19

Thanks for your help JP

f2knpw avatar Nov 07 '23 15:11 f2knpw

Same problem. Anyone figure a workaround? Anyone know of an Encoder library compatible with ESP32 which Just Works(tm)?

codefaux avatar Mar 22 '24 00:03 codefaux

Had the same issue. After reading #85 was able to fix this compile error by explicitly building against Expressif 32 v4 or higher.

If you're using PlatformIO, update the platform in platform.ini: platform = [email protected]

HTH!

remcoder avatar Aug 24 '24 18:08 remcoder