Closed lnetwalker closed 6 years ago
The problem is that ArduCAM.h specifies a marcro called swap() at line 108 and so does the SPIFFS filing system create a macro called swap(). The SPIFFS library is called up by the JPEGDecoder library and hence the conflict is shown.
So the incompatibility is actually between the ArduCAM library and the SPIFFS library.
I suggest you rename the swap macro in the ArduCAM library files (e.g in the .h and .cpp with a search and replace) or do not use SPIFFS.
I guess that's the problem, now everything compiles fine and I can test tomorrow on the hardware.
Thanks for your fast help and the great effort regarding JPEGDecoder! Nice work !!
Great, hope your project runs smoothly now.
Some libraries also create macros for min() and max() so that can cause problems too and is something to look out for.
Hi all,
esp core version 2.4.1 arduino ide 1.8.6 JPEGDecoder 1.7.8 ( and clone of todays master branch )
in my project I have an arducam and a display connected. what i want to do is read the jpeg image from arducam, convert it and display the image. My missing part is the conversion from jpeg to the display format. i included the jpeg library ( nothing else ,i called nothing in the lib ) and get the following error messages when compiling. could anybody give me a hint what went wrong ?
Line 11 in my code is the include of the jpeg library snip