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 w/ Arduino IDE v1.8.10 #7

Open
schneis opened this issue Dec 10, 2019 · 2 comments
Open

Compile fails w/ Arduino IDE v1.8.10 #7

schneis opened this issue Dec 10, 2019 · 2 comments

Comments

@schneis
Copy link

schneis commented Dec 10, 2019

I'm just getting started with this and am stumbling thru getting the Arduino environment setup.

I cloned this library and when trying to compile the example sketch, I get the following errors:

Arduino: 1.8.10 (Linux), Board: "Generic ESP8266 Module, 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), dtr (aka nodemcu), 26 MHz, 40MHz, DOUT (compatible), 1MB (FS:64KB OTA:~470KB), 2, nonos-sdk 2.2.1+100 (190703), v2 Lower Memory, Disabled, None, Only Sketch, 115200"

/home/schneis/arduino-1.8.10/libraries/espDMX/espDMX.cpp: In function 'dmx_t* dmx_init(int, int)':
/home/schneis/arduino-1.8.10/libraries/espDMX/espDMX.cpp:246:45: error: invalid conversion from 'void*' to 'fp_putc_t {aka void (*)(char)}' [-fpermissive]
 ets_install_putc1((void *) &uart_ignore_char);
                                             ^
In file included from /home/schneis/.arduino15/packages/esp8266/hardware/esp8266/2.6.2/cores/esp8266/pgmspace.h:11:0,
                 from /home/schneis/.arduino15/packages/esp8266/hardware/esp8266/2.6.2/cores/esp8266/Arduino.h:239,
                 from /home/schneis/arduino-1.8.10/libraries/espDMX/espDMX.cpp:21:
/home/schneis/.arduino15/packages/esp8266/hardware/esp8266/2.6.2/tools/sdk/include/ets_sys.h:219:6: error:   initializing argument 1 of 'void ets_install_putc1(fp_putc_t)' [-fpermissive]
 void ets_install_putc1(fp_putc_t routine);
      ^
Multiple libraries were found for "espDMX.h"
 Used: /home/schneis/arduino-1.8.10/libraries/espDMX
exit status 1
Error compiling for board Generic ESP8266 Module.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

The following patch seems to resolve the issue:

--- espDMX/espDMX.cpp.orig	2019-12-10 00:59:35.119923699 -0800
+++ espDMX/espDMX.cpp	2019-12-10 01:10:01.115088501 -0800
@@ -242,7 +242,7 @@
     }
 
     system_set_os_print(0);
-    ets_install_putc1((void *) &uart_ignore_char);
+    ets_install_putc1(&uart_ignore_char);
     
     // Initialize variables
     dmx->dmx_nr = dmx_nr;


@Adrimi
Copy link

Adrimi commented May 1, 2020

@schneis Thank you very much man, you should create PR for this solution :)

@mherweg
Copy link

mherweg commented Nov 28, 2020

@schneis Thank you very much !

netmindz pushed a commit to netmindz/espDMX that referenced this issue Sep 4, 2021
mtongnz added a commit that referenced this issue Sep 5, 2021
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

3 participants