2022-08-15 07:21 PM
Hi there,
I am just starting touchGFX. I created a project in following steps:
Then I got the compilation error in "../TouchGFX/target/generated/TouchGFXConfiguration.cpp:35:8: error: 'LCD1bpp' does not name a type
35 | static LCD1bpp display;".
seems some header file is not included... so the class definition is not included... but I understand from the doc, all these generated files are not supposed to be modified... So I am asking for help: anything I did wrong here?
Thanks and Best Regards
****
Solved! Go to Solution.
2022-08-16 12:57 AM
Are you also correctly calling this header file ?
In the include part of TouchGFXConfiguration.cpp there should be this :
" #include <platform/driver/lcd/LCD1bpp.hpp> "
/Yoann
2022-08-16 12:46 AM
Hello @DHan.2 ,
Did you try to add LCD1bpp.hpp file reference in your project ?
This file is located at Middlewares>ST>touchgfx>framework>include>platform>driver>lcd.
In STM32CubeIDE, open your project properties and go to the "Path and Symbols" tab.
Then, click the add button and browse to the folder I mentioned above.
Please let me know if that solved your problem or not.
/Yoann
2022-08-16 12:52 AM
Thanks. Yoann.
I add the include path as you mentioned above... still same error.
2022-08-16 12:57 AM
Are you also correctly calling this header file ?
In the include part of TouchGFXConfiguration.cpp there should be this :
" #include <platform/driver/lcd/LCD1bpp.hpp> "
/Yoann
2022-08-16 01:11 AM
Thanks. Yoann.... After adding this include... compilation works now...
issue solved.
Best Regards