Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile fails with soc.h not found #89

Open
nicechocolate opened this issue May 22, 2023 · 6 comments
Open

Compile fails with soc.h not found #89

nicechocolate opened this issue May 22, 2023 · 6 comments

Comments

@nicechocolate
Copy link

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.)

@MartinNohr
Copy link

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

@madhephaestus
Copy link
Owner

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.

@nicechocolate
Copy link
Author

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!

@f2knpw
Copy link

f2knpw commented Nov 7, 2023

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

@codefaux
Copy link

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

@remcoder
Copy link

remcoder commented Aug 24, 2024

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants