cancel
Showing results for 
Search instead for 
Did you mean: 

Link error when build TouchGFX generated project

ANauz.1
Senior II

Hello,

I'm trying to generate with STM32CubeIDE a project generated with TouchGFXDesigner and I encounter a Link Error

  • "missing--end-group; added as last command line option
  • cannot find -l-lW,--end-group

To generate, I do the following:

  • New project in TouchGFX Designer
    • Application template STM32f769I evaluation Kit
    • UI Template "Text Example"
  • I click Generate Code
  • Opening .ioc file with CubeMX, generating code
  • Build project with STM32CubeIDE

My environment is the following:

  • TouchGFXDesigner 4.16.1
  • STM32CubeMX 6.2.1
    • F7 Package firmware 1.16.0
    • Also try after migrating to 1.16.1
  • STM32CubeIDE1.6.1

Any help would be welcome

Thank you

Antoine

13 REPLIES 13

After generating with CubeMX, there is a popup with "Open Folder", "Open Project" and "Close"

I selected "Open Project"

I do not know if it could change anything, but my TouchGFX Project directory is not in my CubeIDE Workspace directory!

The TouchGFX Project should not be in the CubeIDE workspace directory. If you look at the folder structure of a generated project based on an apoplication template for a ST kit you will see that TouchGFX and the STM32CubeIDE project have their own folders.

/Romain

Thanks for reporting this and investing, I have reported it to the team to have this fixed in the application template.

/Romain

So, as my TouchGFX Project is not in the IDE Workspace, this is not the origin of the error

I have a directory with the project generated by TouchGFX that I do not modify

I just try with another UI Template: Animated Image

After GFX Generation, MX Generation, GFX Generation, again the same error in the IDE.

But this time, there was only the right lib in the library option. I modified the name (so I get an error lib not found), and I put again the right name, and there was no more error.

It seems that there is something that make the linker try to link with 2 libs, one with no name, until the lib properties are reset

Antoine