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

Two compile errors V1.13.0 #975

Closed
AlbertWeterings opened this issue Jun 23, 2018 · 3 comments
Closed

Two compile errors V1.13.0 #975

AlbertWeterings opened this issue Jun 23, 2018 · 3 comments

Comments

@AlbertWeterings
Copy link
Contributor

AlbertWeterings commented Jun 23, 2018

I have two issues when compiling ESPURNA v1.13.0 for two types of hardware in the Arduino IDE. Anyone have an idea how to solve this?

When compiling for ITEAD_SONOFF_RFBRIDGE

web:24: error: #elif with no expression
 #elif ITEAD_SONOFF_RFBRIDGE
exit status 1

Wen compiling for GIZWITS_WITTY_CLOUD

sketch\espurna.ino.cpp.o: In function `_fromHSV(char const*)':
------\code\espurna/utils.ino:436: undefined reference to `fs_pow'
------\code\espurna/utils.ino:436: undefined reference to `fs_log'
sketch\espurna.ino.cpp.o: In function `_setRGBInputValue':
------\code\espurna/utils.ino:436: undefined reference to `fs_pow'
sketch\espurna.ino.cpp.o: In function `_fromKelvin(unsigned long)':
------\code\espurna/utils.ino:436: undefined reference to `fs_pow'
------\code\espurna/utils.ino:436: undefined reference to `fs_log'
------\code\espurna/utils.ino:436: undefined reference to `fs_log'
sketch\espurna.ino.cpp.o: In function `_shadow()':
------\code\espurna/utils.ino:436: undefined reference to `pwm_set_duty'
------\code\espurna/utils.ino:436: undefined reference to `pwm_start'
sketch\espurna.ino.cpp.o: In function `_lightProviderUpdate()':
------\code\espurna/utils.ino:436: undefined reference to `pwm_set_duty'
------\code\espurna/utils.ino:436: undefined reference to `pwm_start'
sketch\espurna.ino.cpp.o: In function `~function':
------\code\espurna/utils.ino:436: undefined reference to `pwm_init'
sketch\espurna.ino.cpp.o: In function `lightSetup()':
------\code\espurna/utils.ino:436: undefined reference to `pwm_init'
------\code\espurna/utils.ino:436: undefined reference to `pwm_start'
collect2.exe: error: ld returned 1 exit status
exit status 1
@xoseperez
Copy link
Owner

The first one should probably be:

#elif defined(ITEAD_SONOFF_RFBRIDGE)

The second one looks like it's not reading the fs_math.* files in the lib folder...

@xoseperez
Copy link
Owner

Problem is with the Arduino IDE not parsing correctly files outside the main folder... it's not the first time it happens to me, I just seem to forget about it, sorry. I have pushed changes to dev to fix it.

@AlbertWeterings
Copy link
Contributor Author

Compile problems with Arduino IDE solved now using DEV version

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

No branches or pull requests

2 participants