CLionArduinoPlugin icon indicating copy to clipboard operation
CLionArduinoPlugin copied to clipboard

U8g2 library

Open gronat opened this issue 8 years ago • 0 comments

I have arduino libraries in ~/Arduino/libraries/ where U8g2 lives. How to properly add the ~/Arduino/libraries/ in the CMakeList? I am having troubles during linking:

CMakeFiles/altimeter.dir/altimeter_altimeter.ino.cpp.obj: In function `_GLOBAL__sub_I_u8g2':
/home/foo/Arduino/libraries/U8g2/src/U8g2lib.h:407: undefined reference to `u8g2_DrawGlyph'
/home/foo/Arduino/libraries/U8g2/src/U8g2lib.h:408: undefined reference to `u8x8_InitDisplay'
/home/foo/Arduino/libraries/U8g2/src/U8g2lib.h:408: undefined reference to `u8g2_ClearDisplay'
CMakeFiles/altimeter.dir/altimeter_altimeter.ino.cpp.obj: In function `_GLOBAL__sub_I_u8g2':
... etc

The directory structure of the U8g2 library is quite complex. What should be the proper CMakeList in this case?

gronat avatar Dec 03 '16 20:12 gronat