cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 VS Code Extenstion with TouchGFX

xmisgu
Associate

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.
1 ACCEPTED SOLUTION

Accepted Solutions
j.langeveld
Associate

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.

View solution in original post

1 REPLY 1
j.langeveld
Associate

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.