error: 'blendL8CLUT' was not declared in this scope
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-06-12 5:05 AM
I have upgraded Touchgfx designer to latest version 4.21.4 .
I created a new project and in the screen added a new line progress bar.
I encountered linker errors
c:\st\stm32cubeide_1.10.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.0.202111181127\tools\arm-none-eabi\bin\ld.exe: (.text._ZNK8touchgfx19PainterRGB888Bitmap5paintEPhssssh+0xfa): undefined reference to `touchgfx::paint::rgb888::lineFromARGB8888(unsigned char*, unsigned long const*, unsigned int, unsigned char)'
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:100: EVK043013B.elf] Error 1
and hence as per the FAQ suggestion included
#include <touchgfx/hal/PaintRGB888Impl.hpp>
in the view.cpp file.
Which in turn leads me to this error:
/../Middlewares/ST/TouchGFX/touchgfx/framework/include/touchgfx/hal/PaintRGB888Impl.hpp:140:35: error: 'blendL8CLUT' was not declared in this scope.
Is this a known issue in the latest Touchgfx version?
How to resolve this issue with line progress bar widget?
Solved! Go to Solution.
- Labels:
-
TouchGFX
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-06-13 1:23 AM
Hello KNara.2,
The process to upgrade a project to a new version of TouchGFX needs to include code regeneration in STM32CubeMX. So if your project was created originally with TouchGFX 4.20 for example, and you upgrade it to 4.21, you have to regenerate code with STM32CubeMX as well :)
Hope it helps.
/Osman
ST Software Developer | TouchGFX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-06-13 12:28 AM
I got the solution.
So whenever someone uses the line progress widget....apart from including
#include <touchgfx/hal/PaintRGB565Impl.hpp> // 16bpp painting routines or
#include <touchgfx/hal/PaintRGB888Impl.hpp> // 24bpp painting routines
One needs to include
#include <touchgfx/hal/PaintImpl.hpp>
This resolved compiler errors.
So "Known Issues" for Touchgfx for 4.21.4 needs to be updated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-06-13 1:23 AM
Hello KNara.2,
The process to upgrade a project to a new version of TouchGFX needs to include code regeneration in STM32CubeMX. So if your project was created originally with TouchGFX 4.20 for example, and you upgrade it to 4.21, you have to regenerate code with STM32CubeMX as well :)
Hope it helps.
/Osman
ST Software Developer | TouchGFX
