I am trying to integrate uGFX to PlatformIO as well, but I spent looots of time going nowhere
I tried to write my own library.json, I tried yours, but nothing worked.
I am working on STM32 F7 discovery board [env:disco_f746ng] and using stm32cube framework, without RTOS or anything.
How did you make it work? I added uGFX library to the
gfxconf.h in the (PIO project) include folder, copied gfx_mk.c to the
src/ folder. And I have
"#include<gfx.h>" in my
I also tried various LDF_modes (currently left LDF_mode at “deep+”) -> still doesn’t compile.
It throws bunch of compilation errors - first one being, that it doesn’t find “gfx.c”.
I then tried to add “+” to the srcFilter @ library.json -> still the same.
I tried to add the folder to the include path
build_flags = -I/home/--pathToLib--/uGFX_library/src/ and it found gfx.c, but the rest of the errors didn’t go away.
Now it doesn’t find
gdisp_lld_config.h (which is inside uGFX_root/drivers/gdisp/STM32LTDC/).
I add also that folder to include path @ build flags -> still doesnt’ work.
Now it doesn’t find the
gfxconf.h which is in my pio project’s include folder all the time! I noticed the warning in the LDF documentation - but changing the LDF mode to deep doesn’t help.
Basically as I understand, uGFX is made in such a way that you control what gets included/compiled by changing options in
gfxconf.h. Since PIO doesn’t use conventional CPPP but has it’s own dependency finder - you would have to include/exclude files manually, which is a great headace from my experience.
What is the right way forward? I really don’t want to hack around library and include every file by hand using build_flags - there must be a nicer way…right?