Skip to main content
CTapp.1
Senior III
November 7, 2024
Solved

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

  • November 7, 2024
  • 3 replies
  • 1049 views

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?

    This topic has been closed for replies.
    Best answer by CTapp.1

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

     

    3 replies

    ST Technical Moderator
    November 8, 2024

    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

    CTapp.1
    CTapp.1AuthorBest answer
    Senior III
    November 8, 2024

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

     

    All posts are made in a personal capacity. MISRA C++ Chair, MISRA C WG Member, Director The MISRA Consortium Limited (TMCL)
    unsigned_char_array
    Lead III
    November 8, 2024

    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."