Skip to main content
Ofer
Associate III
February 2, 2026
Question

TouchGFX application - missing library & header files

  • February 2, 2026
  • 4 replies
  • 475 views

I generated my project from the TouchGFX envinroment.

Itried to modify the cube file and i got the following issues

1. linking error   ld.exe: cannot find -l:libnemagfx-float-abi-hard.a: No such file or directory

2. linking error  ld.exe: cannot find -l:libtouchgfxnema-float-abi-hard.a: No such file or directory

3. many basic files are missing like main.h so i cant access any gpio by the name that was given to it in my user files

4 replies

ferro
Lead
February 3, 2026

Hi @Ofer 

Your linker lib search paths might be wrong. Try to tinker with following settings

ferro_0-1770076914107.png

ferro_1-1770076949963.png

 

"${workspace_loc:/${ProjName}/Middlewares/ST/touchgfx/lib/core/cortex_m33/gcc}"
"${workspace_loc:/${ProjName}/Middlewares/ST/touchgfx_components/gpu2d/NemaGFX/lib/core/cortex_m33/gcc}"
"${workspace_loc:/${ProjName}/Middlewares/ST/touchgfx_components/gpu2d/TouchGFXNema/lib/cortex_m33/gcc}"

 

ferro_0-1770077337696.png

 

 

 

 

 

Ofer
OferAuthor
Associate III
February 3, 2026

thank dear Ferro but it seems to me my settings are exactly like yours but i get those errors

 

Ofer_0-1770133957735.png

 

ferro
Lead
February 5, 2026

Hm, interesting. Could you post here

1. linker build output (it will show us all linker's lib search paths), and

2. relative paths of those missing libs within your project tree, to see whether they are where expected

 

I assume you checked the libs are actually in your project (somewere).

 

ferro
Lead
February 8, 2026

Try to copy folder

c:\TouchGFX\4.26.0\touchgfx_components

into your project folder

<your\project\path>\Middlewares\ST\

 

ferro_1-1770511989360.png

 

 

MM..1
Chief III
February 8, 2026

Long time issue. TouchGFX projects ≠ MXCube editable . Best way is create new project from MX and copy required part from bundled TGFX project and example ioc...

Ofer
OferAuthor
Associate III
February 8, 2026

hi dear mm1

i tried it this way but i got all this issues this way

MM..1
Chief III
February 9, 2026

@Ofer wrote:

I generated my project from the TouchGFX envinroment.

Itried to modify the cube file and i got the following issues

 


No you try other way ...