cancel
Showing results for 
Search instead for 
Did you mean: 

undefined reference to `touchgfx::VideoController::getInstance()' could anybody help on this?

jsalg.1
Associate III

"EVK043013B.elf" @"objects.list" -l:libtouchgfx-float-abi-hard.a -l:libtouchgfx.a -mcpu=cortex-m7 -T"C:\TouchGFXProjects\MyApplication_1\STM32CubeIDE\STM32F750N8HX_FLASH.ld" --specs=nosys.specs -Wl,-Map="EVK043013B.map" -Wl,--gc-sections -static -L../../Middlewares/ST/TouchGFX/touchgfx/lib/core/cortex_m7/gcc --specs=nano.specs -mfpu=fpv5-sp-d16 -mfloat-abi=hard -mthumb -Wl,--start-group -lc -lm -lstdc++ -lsupc++ -Wl,--end-group

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: ../../Middlewares/ST/TouchGFX/touchgfx/lib/core/cortex_m7/gcc\libtouchgfx-float-abi-hard.a(VideoWidget.o): in function `touchgfx::VideoWidget::~VideoWidget()':

(.text._ZN8touchgfx11VideoWidgetD2Ev+0x8): undefined reference to `touchgfx::VideoController::getInstance()'

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: ../../Middlewares/ST/TouchGFX/touchgfx/lib/core/cortex_m7/gcc\libtouchgfx-float-abi-hard.a(VideoWidget.o): in function `touchgfx::VideoWidget::handleTickEvent()':

(.text._ZN8touchgfx11VideoWidget15handleTickEventEv+0x4): undefined reference to `touchgfx::VideoController::getInstance()'

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: ../../Middlewares/ST/TouchGFX/touchgfx/lib/core/cortex_m7/gcc\libtouchgfx-float-abi-hard.a(VideoWidget.o): in function `touchgfx::VideoWidget::draw(touchgfx::Rect const&) const':

(.text._ZNK8touchgfx11VideoWidget4drawERKNS_4RectE+0x22): undefined reference to `touchgfx::VideoController::getInstance()'

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: ../../Middlewares/ST/TouchGFX/touchgfx/lib/core/cortex_m7/gcc\libtouchgfx-float-abi-hard.a(VideoWidget.o): in function `touchgfx::VideoWidget::VideoWidget()':

(.text._ZN8touchgfx11VideoWidgetC2Ev+0x3e): undefined reference to `touchgfx::VideoController::getInstance()'

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: ../../Middlewares/ST/TouchGFX/touchgfx/lib/core/cortex_m7/gcc\libtouchgfx-float-abi-hard.a(VideoWidget.o): in function `touchgfx::VideoWidget::play() const':

(.text._ZNK8touchgfx11VideoWidget4playEv+0x4): undefined reference to `touchgfx::VideoController::getInstance()'

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: ../../Middlewares/ST/TouchGFX/touchgfx/lib/core/cortex_m7/gcc\libtouchgfx-float-abi-hard.a(VideoWidget.o):(.text._ZNK8touchgfx11VideoWidget9setRepeatEb+0x6): more undefined references to `touchgfx::VideoController::getInstance()' follow

collect2.exe: error: ld returned 1 exit status

5 REPLIES 5
Yoann KLEIN
ST Employee

Hello @jsalg.1​ ,

Can you please provide more details ?

  • Which version of TouchGFX are you using ?
  • Did you try to delete you Middlewares/ST folder and regenerate code with TouchGFXDesigner ?

Thanks,

/Yoann

Yoann KLEIN
ST Software Developer | TouchGFX
jsalg.1
Associate III

Thanks for your response, Yoann,

I am using TouchGFX Designer 4. 20.0 version. I have created application to play video clip (.avi), First I created screen and added video widget on top of that screen and generated code from touchGFX, later I opened the generated code folder and launched the STMCubeIDE by clicking on .cproject and clicked on the build project option from STMCUbe IDE.

rBlr
Associate III

I have similar issue

Project works fine in TouchGFX simulator 4.23.1 (upgraded from 4.22), but failed with Build in STM32CubeIDE 1.14.1 (upgraded from 1.13)

 

C:/ST/STM32CubeIDE_1.13.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235/tools/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: C:\prj_mcu\746QSPI\Middlewares\ST\touchgfx\lib\core\cortex_m7\gcc\libtouchgfx-float-abi-hard.a(SVGImage.o): in function `touchgfx::SVGImage::draw(touchgfx::Rect const&) const':
(.text._ZNK8touchgfx8SVGImage4drawERKNS_4RectE+0x2a): undefined reference to `touchgfx::VectorRenderer::getInstance()'
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:120: 746_QSPI_.elf] Error 1
"make -j16 all" terminated with exit code 2. Build might be incomplete.

 

Any suggestions? Thank you

ChungEN
Associate II

I have same issue.

I am using touchgfx 4.18.1 & cubeide 1.8.0

ChungEN_0-1722935823811.png

could anybody help on this?

I sloved this problem after setting touchgfx/video decoding/hardware or software