2024-11-07 02:14 AM
I've copied the folder containing a TouchGFX project for the STM32H7B3I-DK from one machine to another. However, I get the following error when I try to generate code on the new machine:
Generate Assets
make -f simulator/gcc/Makefile assets -j8
Reading ./application.config
Reading ./target.config
uninitialized constant Outputter::ApplicationFontProviderCpp
Did you mean? ApplicationFontProviderHpp
An error occurred during text conversion
Cleaning generated files from generated/texts and generated/fonts.
Does anyone have any idea what could be causing this? Is there some additional diagnostics stored somewhere that I can review?
Solved! Go to Solution.
2024-11-08 01:05 AM
I've upgraded to the latest Designer and the project is now generating correctly.
2024-11-07 10:59 PM
Hello,
TouchGFX projects can easily be shared as stand-alone, so you don't need any cached or diagnostic data. Personally, I usually remove the generated folders when distributing projects to keep the file size down. This implies:
Middlewares/ST
TouchGFX/build
TouchGFX/config
TouchGFX/generated
TouchGFX/simulator
However, this is not a requirement - just a tip. You could still try deleting them (mainly TouchGFX/generated) and regenerate code with TouchGFX to regenerate ApplicationFontProvider.
What path is the project located at on the new machine? Have you ensured there are no spaces in the path?
Best regards,
Johan
2024-11-08 01:05 AM
I've upgraded to the latest Designer and the project is now generating correctly.
2024-11-08 01:07 AM
I recommend putting the project in git and ignoring (excluding) all build artifacts (you can even exclude generated files, but I prefer to keep those so I don't need TouchGFX to build). If you then clone the project on a different computer it should work.