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

Update CMakeLists.txt to include "Adafruit_GenericDevice.cpp" #140

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mak0t0san
Copy link

Missing source file "Adafruit_GenericDevice.cpp"

Thank you for creating a pull request to contribute to Adafruit's GitHub code!
Before you open the request please review the following guidelines and tips to
help it be more easily integrated:

Issue
When using Adafruit_BusIO as a component in an ESP32 project that uses CMake for the build, the compilation will fail with this error:

Adafruit_BusIO_Register.cpp:245:(.text._ZN23Adafruit_BusIO_Register4readEPhh+0xaa): undefined reference to `Adafruit_GenericDevice::readRegister(unsigned char*, unsigned char, unsigned char*, unsigned short)'

Resolution
Add the missing reference to the source file 'Adafruit_GenericDevice.cpp' to CMakesLists.txt

Testing
Tested on a Windows 11 PC with Espressif IDE (inside of Visual Studio Code). Ran idf.py build
Error prior to change, successful build after the change

Missing source file "Adafruit_GenericDevice.cpp"
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

Successfully merging this pull request may close these issues.

1 participant