cancel
Showing results for 
Search instead for 
Did you mean: 

undefined reference to `touchgfx::VectorRenderer::getInstance()' after adding a SVG image?

vetalswiss
Associate

11:34:16 **** Incremental Build of configuration Debug for project TouchGFX4in ****

make -j4 all

arm-none-eabi-g++ -o "TouchGFX4in.elf" @"objects.list" -l:libtouchgfx-float-abi-hard.a -mcpu=cortex-m4 -T"C:\Users\Support-Z440\STM32CubeIDE\workspace_1.14.0\TouchGFX4in\STM32F446RETX_FLASH.ld" --specs=nosys.specs -Wl,-Map="TouchGFX4in.map" -Wl,--gc-sections -static -L"C:\Users\Support-Z440\STM32CubeIDE\workspace_1.14.0\TouchGFX4in\Middlewares\ST\touchgfx\lib\core\cortex_m4f\gcc" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -Wl,--start-group -lc -lm -lstdc++ -lsupc++ -Wl,--end-group

C:/ST/STM32CubeIDE_1.14.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\Support-Z440\STM32CubeIDE\workspace_1.14.0\TouchGFX4in\Middlewares\ST\touchgfx\lib\core\cortex_m4f\gcc\libtouchgfx-float-abi-hard.a(SVGImage.o): in function `touchgfx::SVGImage::draw(touchgfx::Rect const&) const':

(.text._ZNK8touchgfx8SVGImage4drawERKNS_4RectE+0x26): undefined reference to `touchgfx::VectorRenderer::getInstance()'

collect2.exe: error: ld returned 1 exit status

make: *** [makefile:100: TouchGFX4in.elf] Error 1

"make -j4 all" terminated with exit code 2. Build might be incomplete.

 

11:34:18 Build Failed. 2 errors, 0 warnings. (took 1s.587ms)

 

so I compile and run the code with no SVG images, and it works perfectly. I then add in a svg image using the touchGFX designer, using the svg image widget. the image im using is the stock touchgfx image, and when i try to compile, i get this error.

1 ACCEPTED SOLUTION

Accepted Solutions
ferro
Senior II

Hi,

Not sure if I remember I had the same error, isn't it related to enabling it in MX ?

ferro_0-1718785646362.png

View solution in original post

1 REPLY 1
ferro
Senior II

Hi,

Not sure if I remember I had the same error, isn't it related to enabling it in MX ?

ferro_0-1718785646362.png