Skip to main content
Associate II
Aug 2, 2023 11:58 AM UTC
Solved

STM32 VS Code Extenstion with TouchGFX

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.
j.langeveldBest answer
Visitor II
Aug 2, 2023 2:23 PM UTC

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
Aug 2, 2023 2:23 PM UTC

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.