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

Included copies of FaBo HTS221 and LowPower libraries break compiling of sketches that use the originals #3

Closed
avbentem opened this issue Feb 5, 2017 · 1 comment

Comments

@avbentem
Copy link

avbentem commented Feb 5, 2017

The Badgerboard core library includes a copy of https://github.com/FaBoPlatform/FaBoHumidity-HTS221-Library When compiling unrelated other sketches that rely on that library, in an Arduino IDE into which the Badgerboard library has been installed as well (but which do not use the Badgerboard library in the sketch), I get:

libraries/badgerboard/badger.cpp.o (symbol from plugin): In function `sodaq_wdt_enable(wdt_period)':
(.text+0x0): multiple definition of `faboHumidity'
sketch/humidity.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here
collect2: error: ld returned 1 exit status
Multiple libraries were found for "FaBoHumidity_HTS221.h"
Used: /Users/arjan/Arduino/libraries/badgerboard
Not used: /Users/arjan/Arduino/libraries/FaBo_208_Humidity_HTS221

Also, someone else commented on The Things Network that the same applied to https://github.com/rocketscream/Low-Power:

I got errors compiling older sketches after installing the badgerboard library because they included some kind of incompatible LowPower library. I had to remove the badgerboard/src/lowpower.h and badgerboard/src/lowpower.cpp file to get my old sketches to work again.

This makes me wonder if it might also apply to https://github.com/SodaqMoja/Sodaq_RN2483

Renaming the copies will probably solve the issue?

@avbentem avbentem changed the title Included copy of FaBo HTS221 library breaks compiling of sketches that use the original Included copies of FaBo HTS221 and LowPower libraries breaks compiling of sketches that use the originals Feb 5, 2017
@avbentem avbentem changed the title Included copies of FaBo HTS221 and LowPower libraries breaks compiling of sketches that use the originals Included copies of FaBo HTS221 and LowPower libraries break compiling of sketches that use the originals Feb 5, 2017
@KertIlm
Copy link
Collaborator

KertIlm commented Feb 8, 2017

Hi,

Changed the library names (added _mod) to fix this issue

@KertIlm KertIlm closed this as completed Oct 9, 2017
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

2 participants