cancel
Showing results for 
Search instead for 
Did you mean: 

TouchGFX application - missing library & header files

Ofer
Senior

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

9 REPLIES 9
ferro
Lead

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

 

 

 

 

 

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

 

Ofer_0-1770133957735.png

 

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).

 

dear ferro

i hope you meant the ld file so i uploaded it here

Plase find missing libs in your project tree

libnemagfx-float-abi-hard.a
libtouchgfxnema-float-abi-hard.a

 

and post location here.

ferro
Lead

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

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...

hi dear mm1

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

MM..1
Chief III

@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 ...