read this great post by @nordseele! I succesfully got a display up and running with the C sdk - but for me I'm reallllly trying to get the C++ version of u8g2 working, and I've been running into some issues, hoping maybe someone here can help
Right now I'm trying to solve a basic issue that while I can include header files from the library, the classes within the library aren't recognized (just trying to get declaring the display type object working, then will worry about everythign else). additionally, when I build, the C++ source can't find the C source library files (C++ lib is dependant on C lib), even though I include them in CmakeLists as 2 seperate libraries and include the C one first (doing include directory, file glob, and link libraries for each)- as a stopgap I've just manually copy and pasted the C cource files into the C++ source folder, but I realize this too could cause issues (but it's the only thing that's let me get past fatal errors from within the library headers)
might be a mish mash of issues glueing u8g2 and also just my shoddy cmakelists work, but would be awesome to get this working and have documented support for the friendlier c++ lib
here's my code (pared down to show my issue, not worried about getting stuff to actually work quite yet, just trying to get the library recognized)
read this great post by @nordseele! I succesfully got a display up and running with the C sdk - but for me I'm reallllly trying to get the C++ version of u8g2 working, and I've been running into some issues, hoping maybe someone here can help
Right now I'm trying to solve a basic issue that while I can include header files from the library, the classes within the library aren't recognized (just trying to get declaring the display type object working, then will worry about everythign else). additionally, when I build, the C++ source can't find the C source library files (C++ lib is dependant on C lib), even though I include them in CmakeLists as 2 seperate libraries and include the C one first (doing include directory, file glob, and link libraries for each)- as a stopgap I've just manually copy and pasted the C cource files into the C++ source folder, but I realize this too could cause issues (but it's the only thing that's let me get past fatal errors from within the library headers)
might be a mish mash of issues glueing u8g2 and also just my shoddy cmakelists work, but would be awesome to get this working and have documented support for the friendlier c++ lib
here's my code (pared down to show my issue, not worried about getting stuff to actually work quite yet, just trying to get the library recognized)