cancel
Showing results for 
Search instead for 
Did you mean: 

How can I force TouchGFX Designer to generate texts?

Jon Enz
Associate III

After adding many text fields, resources, and typographies to a screen, I went to compile and was met with errors that generated base classes were using text IDs that did not exist. The text ID's had been added to the source files for the containers they were used in, but not to the header file or TEXTS enum.

In an attempt to "clean" the project I deleted the contents of the TouchGFX/generated folder. The designer regenerates source files, but generated/texts/include/texts is empty. I have tried to add/remove resources in the designer so it would detect changes in the spreadsheet without any luck. With an empty folder my compile errors are now:

../TouchGFX/target/generated/TouchGFXConfiguration.cpp:17:10: fatal error: texts/TypedTextDatabase.hpp: No such file or directory
 #include <texts/TypedTextDatabase.hpp>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

How can I force the designer to regenerate these files?

11 REPLIES 11

I fixed this issue by creating a new blank project in the most recent update and then using the edit->import option to import the GUI from the working project on the older version. A bit of a pain, but I can now generate texts again.

OMG! This is not an option for me.

I have a huge project with 2 processors working together in a complex system and I simply don't have the time to transfer all needed references from the existing project to a new one. And also the folder structure would have to be adapted... Then I rather go back to Version 4.24.1 and stay with it forever now. I need to have a reliable base.