Skip to main content
Roger.ch
Associate III
September 9, 2022
Solved

I have taken over a project from a colleague. When I run "Run Simulator" or "Run Target" I get the error message: ld.exe: cannot find -ltouchgfx What could be the reason for this error?

  • September 9, 2022
  • 6 replies
  • 1270 views

..

This topic has been closed for replies.
Best answer by Tesla DeLorean

libraries not visible to the project, check lib paths and where it is trying to fetch them from, and if they are there.

C​reate a new project, have that build successfully, and review how that's constructed.

6 replies

Yoann KLEIN
ST Employee
September 12, 2022

Hello @Roger.ch​ ,

Did you already try to uninstall and reinstall TouchGFX ?

Otherwise, please also follow the introduction guidelines. There is maybe something in the installation procedure which might help you solve your issue.

Thanks,

/Yoann

Yoann KLEINST Software Developer | TouchGFX
Roger.ch
Roger.chAuthor
Associate III
September 12, 2022

Hi Yoann. 

Thank you for your submission.

I have uninstalled versions 4.18 and 4.20 and reinstalled very strictly according to instructions.

Unfortunately without much success. 

Where should this "module" be installed and where are the entries so that the ID.exe can find them?

Greetings, Roger

Yoann KLEIN
ST Employee
September 12, 2022

Can you share your project here please ?

/Yoann

Yoann KLEINST Software Developer | TouchGFX
Javier1
Principal
September 12, 2022

good luck @Roger.ch​ , it looks like your colleage left some barbed wire behind for the next guy

hit me up in https://www.linkedin.com/in/javiermuñoz/
Tesla DeLorean
Tesla DeLoreanBest answer
Guru
September 12, 2022

libraries not visible to the project, check lib paths and where it is trying to fetch them from, and if they are there.

C​reate a new project, have that build successfully, and review how that's constructed.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Roger.ch
Roger.chAuthor
Associate III
September 12, 2022

Thank you very much for your comment. The project is now running.

Sometimes you can't see the forest for the trees.

When comparing a new project I noticed that the directory ".....\Project\Middlewares\ST\TouchGFX\touchgfx\lib\core\cortex_m7\gcc" was extremely empty.

I then simply copied the folder from a self-generated custom project. And what can I say, it works.

Many thanks to all involved.