cancel
Showing results for 
Search instead for 
Did you mean: 

TouchGFX project does not build after being moved to a new machine

CTapp.1
Senior

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?

1 ACCEPTED SOLUTION

Accepted Solutions

I've upgraded to the latest Designer and the project is now generating correctly.

 

View solution in original post

3 REPLIES 3
JohanAstrup
ST Employee

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

I've upgraded to the latest Designer and the project is now generating correctly.

 

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.

https://community.st.com/t5/stm32-mcus-touchgfx-and-gui/touchgfx-designer-option-to-auto-delete-touchgfx-folder-upon/m-p/724758#M39655

Kudo posts if you have the same problem and kudo replies if the solution works.
Click "Accept as Solution" if a reply solved your problem. If no solution was posted please answer with your own.