crankyoldgit / IRremoteESP8266

Infrared remote library for ESP8266/ESP32: send and receive infrared signals with multiple protocols. Based on: https://github.com/shirriff/Arduino-IRremote/
GNU Lesser General Public License v2.1
2.84k stars 810 forks source link

Compile Error in ESP32 IDF when including IRemoteESP8266 as a component #2055

Closed suffiyanshaikh closed 5 months ago

suffiyanshaikh commented 5 months ago

Library Version

version: 2.8.6

Issue

I have added IRemoteESP8266 library in ESP32 IDF as a component while building the code, i am getting compiling error in file IRrecv.cpp related to timer call's. Only that one file is causing error while building the code.

image

Steps to Reproduce

  1. clone the library from git into the component folder of ESP IDF
  2. Created CMakeLists.txt inside library folder and added all source files
  3. Compile the code

steps to used Arduino Library in ESP-IDF

Example code used

Just first trying to compile with including IR library

Cmake file for library CMakeLists.txt

NiKiZe commented 5 months ago

First few lines of the readme...

This library enables you to send and receive infra-red signals on an ESP8266 or an ESP32 using the Arduino framework

ESP-IDF is not supported, that said, feel free to open a PR with needed fixes and test cases using platformio.

EgHubs commented 1 month ago

It works for me with esp-idf v4.x.x and Arduino core v2.x.x. If you still want to use Arduino core v3.x.x which is made for esp-idf v5.x.x you should check this which will require you to do some changes in the library itself!