Skip to main content
Associate II
August 2, 2023
Solved

STM32 VS Code Extenstion with TouchGFX

  • August 2, 2023
  • 1 reply
  • 1724 views

Hi,
I'm having an issue building TouchGFX project in new VSCode extenstion. When building cmake is throwing an error:

cannot find -ltouchgfx-float-abi-hard: No such file or directory.
Project is builiding and compiling in STM32CubeIDE just fine.
This topic has been closed for replies.
Best answer by j.langeveld

Somewhere in your CMakeList you need to link that library.
We currently use:

target_link_libraries(Remote PRIVATE "${TGFX_ROOT}/touchgfx/lib/core/cortex_m4f/gcc/libtouchgfx-float-abi-hard.a")

Be sure to set TGFX_ROOT to the installation folder first.

1 reply

j.langeveldBest answer
Visitor II
August 2, 2023

Somewhere in your CMakeList you need to link that library.
We currently use:

target_link_libraries(Remote PRIVATE "${TGFX_ROOT}/touchgfx/lib/core/cortex_m4f/gcc/libtouchgfx-float-abi-hard.a")

Be sure to set TGFX_ROOT to the installation folder first.