-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
PlatformIO errors: [.pio/build/esp32dev/src/fanPWM.cpp.o] Error 1 #29
Comments
For me it looks like something is broken with your PlatformIO installation. Is your PlatformIO installation special in any way? Did it work before? Are you able to compile a very basic example using the missing functions mentioned above, |
Hi. Maybe there is is some clue here: ledcAttach used to set up the LEDC pin (merged ledcSetup and ledcAttachPin functions). But I would not know how to fix this :-( ...any ideas? |
I applied a change to: fanPWM.cpp Now I only get this error: |
I did some searching and it looks like sh: 1: Syntax error: Unterminated quoted string I can not even find that file |
Seems you are using Arduino core 3.0 from Espressif, which is not supported by PlatformIO. PlatformIO only supports Arduino core 2.0. platformio/platform-espressif32#1225 How did you install everything? There are several tutorials out there. Did you follow one of these? And this ended up in having Arduino core 3.0? Did you manually install Arduino core 3.0? |
I had VS already installed. I now did a complete UNINSTALL of VS and deleted all files in I reinstalled and only added PlatformIO. There are now only the following extensions: unfortunately the problem is the same as before :-( |
After some digging I found this: |
Ok, just to be sure, I created a Linux VM, installed VS, the PlatformIO extension, cloned this repo and compiled. Works. On the first few lines of the compiler output, I see
This is exactly what I can see in the action. So both work. I can't see any error in this repo. Don't know what is going wrong. Which package is shown in your compiler output? |
Did you ever also install anything outside VS, e.g. PlatformIO via commandline? |
1st I uninstalled PlatformIO, This time I didn't need the: This is the compiler output:
Still getting this error: I had never before installed PlatformIO via command line. Sorry for all the trouble and thanks for your efforts |
Did you try to create a very basic new project? Just to see if that compiles? Maybe something is messed up with your paths. Try to use for this project a path as simple as possible, without any special characters, no spaces etc. Maybe you should try to get more familiar with PlatformIO first, try some simple examples and tutorials etc. Just to learn the basic concepts and to understand where the problems are coming from. |
I believe I found the culprit :-) Somehow the project folder name started with a "space" char. What I do not understand is, the miss-leading error message! Greetings and thanks for your efforts and help |
Hi.
I am getting the following errors when trying to build with PlatformIO:
Compiling .pio/build/esp32dev/lib560/Wire/Wire.cpp.o
src/fanPWM.cpp: In function 'void initPWMfan()':
src/fanPWM.cpp:17:3: error: 'ledcSetup' was not declared in this scope
17 | ledcSetup(PWMCHANNEL, PWMFREQ, PWMRESOLUTION);
| ^~~~~~~~~
src/fanPWM.cpp:19:3: error: 'ledcAttachPin' was not declared in this scope; did you mean 'ledcAttach'?
19 | ledcAttachPin(PWMPIN, PWMCHANNEL);
| ^~~~~~~~~~~~~
| ledcAttach
Compiling .pio/build/esp32dev/liba0c/SPI/SPI.cpp.o
*** [.pio/build/esp32dev/src/fanPWM.cpp.o] Error 1
Compiling .pio/build/esp32dev/lib055/Adafruit BusIO/Adafruit_BusIO_Register.cpp.o
src/mqtt.cpp: In function 'void callback(char*, byte*, unsigned int)':
src/mqtt.cpp:258:25: error: variable 'std::string strPayload' has initializer but incomplete type
258 | std::string strPayload(reinterpret_cast<const char *>(payload), length);
| ^
*** [.pio/build/esp32dev/src/mqtt.cpp.o] Error 1
Any idea what I have to do here??
Thanks for helping
The text was updated successfully, but these errors were encountered: