cancel
Showing results for 
Search instead for 
Did you mean: 

TouchGFX Designer 4.25.0 – extremely slow asset generation (make assets takes 5+ minutes)

JureL
Senior

Hi everyone,

I'm experiencing a very frustrating issue with TouchGFX Designer version 4.25.0.

Whenever I click "Generate Code", the process hangs for several minutes (up to 5 minutes) at the step:
make -f simulator/gcc/Makefile assets -j8.

This used to work quickly in the past with the same version on the same PC, but the issue suddenly started recently without any apparent changes.
I'm running Windows 11, and this problem affects all projects, even the official TouchGFX examples.

Here’s what I’ve tried so far (none of which helped):

  • Disabled antivirus and security software completely
  • Completly remove and reinstall TouchGFX Designer
  • Run the Make command manually from the TouchGFX environment terminal – the issue presist
  • Tested the same project on another (slower) PC – and it works fine there

I use TouchGFX on a daily basis, so this issue is really slowing down my workflow.

Has anyone else experienced this?
Any advice would be highly appreciated!

Best regards,
Jure

37 REPLIES 37
ferro
Lead

Does this happen in case when all assets are already generated ?

I tried asset generation in msvs and the generation is quick without any delays.

VERBOSE=1 did not output any aditional informations so instead I tried:

make -f simulator/gcc/Makefile assets -j8 --debug=b


Here is the log - It stops at line 35:

Generate Code
    Generate
        Wrote generated/gui_generated/include/gui_generated/common/FrontendApplicationBase.hpp
        Wrote generated/gui_generated/include/gui_generated/common/FrontendHeapBase.hpp
        Wrote generated/gui_generated/include/gui_generated/common/SimConstants.hpp
        Wrote generated/gui_generated/include/gui_generated/screen1_screen/Screen1ViewBase.hpp
        Wrote generated/gui_generated/src/common/FrontendApplicationBase.cpp
        Wrote generated/gui_generated/src/screen1_screen/Screen1ViewBase.cpp
        Wrote generated/simulator/gcc/Makefile
        Wrote generated/simulator/include/simulator/mainBase.hpp
        Wrote generated/simulator/include/simulator/video/DirectFrameBufferVideoController.hpp
        Wrote generated/simulator/include/simulator/video/MJPEGDecoder.hpp
        Wrote generated/simulator/include/simulator/video/SoftwareMJPEGDecoder.hpp
        Wrote generated/simulator/msvs/touchgfx_prebuild.targets
        Wrote generated/simulator/msvs/touchgfx_sdl2.props
        Wrote generated/simulator/msvs/touchgfx.props
        Wrote generated/simulator/src/mainBase.cpp
        Wrote generated/simulator/src/video/SoftwareMJPEGDecoder.cpp
        Wrote generated/simulator/touchgfx.ico
        Wrote generated/simulator/touchgfx.rc
        Wrote generated/simulator/touchgfx.res
        Wrote generated/user.config
        Done
    Generate Assets
        make -f simulator/gcc/Makefile assets -j8 --debug=b
        GNU Make 4.1
        Built for i686-pc-mingw32
        Copyright (C) 1988-2014 Free Software Foundation, Inc.
        License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
        This is free software: you are free to change and redistribute it.
        There is NO WARRANTY, to the extent permitted by law.
        Reading makefiles...
        Updating goal targets....
         File 'assets' does not exist.
        Must remake target 'assets'. <================== IT STOPS HERE FOR ~2MINUTES
        GNU Make 4.1
        Built for i686-pc-mingw32
        Copyright (C) 1988-2014 Free Software Foundation, Inc.
        License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
        This is free software: you are free to change and redistribute it.
        There is NO WARRANTY, to the extent permitted by law.
        Reading makefiles...
        Updating goal targets....
         File 'assets' does not exist. 
           File 'images' does not exist.
          Must remake target 'images'.
           File 'texts' does not exist.
          Must remake target 'texts'.
           File 'videos' does not exist.
          Must remake target 'videos'.
        Reading ./application.config
        Reading ./target.config
        Generating generated/images/include/BitmapDatabase.hpp
        Generating generated/images/include/images/BitmapDatabase.hpp
        Generating generated/images/src/BitmapDatabase.cpp
        Generating generated/images/include/images/SVGDatabase.hpp
        Generating generated/images/src/SVGDatabase.cpp
         File 'assets' does not exist.
        Generating generated/videos/include/videos/VideoDatabase.hpp
         File 'assets' does not exist.
        Cleaning generated files from generated/texts and generated/fonts.
        Generating generated/fonts/include/fonts/GeneratedFont.hpp
        Generating generated/fonts/src/GeneratedFont.cpp
        Generating generated/fonts/include/fonts/UnmappedDataFont.hpp
        Generating generated/fonts/src/UnmappedDataFont.cpp
        Generating generated/fonts/include/fonts/CachedFont.hpp
        Generating generated/fonts/src/CachedFont.cpp
        Generating generated/fonts/include/fonts/FontCache.hpp
        Generating generated/fonts/src/FontCache.cpp
        Generating generated/fonts/src/CompressedFontCache.cpp
        Generating generated/fonts/src/CompressedUnmappedFontCache.cpp
        Generating generated/fonts/include/fonts/CompressedFontCache.hpp
        Generating generated/fonts/include/fonts/CompressedUnmappedFontCache.hpp
        Generating generated/fonts/src/ApplicationFontProvider.cpp
        Generating generated/fonts/include/fonts/ApplicationFontProvider.hpp
        Generating generated/texts/include/texts/TextKeysAndLanguages.hpp
        Generating generated/texts/include/texts/TypedTextDatabase.hpp
        Generating generated/texts/src/TypedTextDatabase.cpp
        Generating generated/texts/src/Texts.cpp
        Generating generated/texts/src/LanguageGb.cpp
        Generating generated/fonts/src/Font_verdana_10_4bpp_0.cpp
        Generating generated/fonts/src/Table_verdana_10_4bpp.cpp
        Generating generated/fonts/src/Kerning_verdana_10_4bpp.cpp
        Generating generated/fonts/src/Font_verdana_20_4bpp_0.cpp
        Generating generated/fonts/src/Table_verdana_20_4bpp.cpp
        Generating generated/fonts/src/Kerning_verdana_20_4bpp.cpp
        Generating generated/fonts/src/Font_verdana_40_4bpp_0.cpp
        Generating generated/fonts/src/Table_verdana_40_4bpp.cpp
        Generating generated/fonts/src/Kerning_verdana_40_4bpp.cpp
        Generating generated/fonts/src/VectorFontRendererBuffers.cpp
         File 'assets' does not exist.
        Must remake target 'assets'.
        Successfully remade target file 'assets'.
        Done
    Post Generate
        touchgfx update_project --project-file=simulator/msvs/Application.vcxproj
        Done
    Done

 This issue happens in both cases even if the assets are already generated.

Could not there be problem in your project path or name ? Too deep ?

@ferro 
project path is default example path: c:\TouchGFXProjects\MyApplication_1\.
Also the project is empty application:

JureL_0-1750679382630.png

 

Frustrating. Maybe try to install version 4.24.1 in parallel ? You said you tried other versions but not sure if multiple at the same time.


@JureL wrote:

@ferro 
project path is default example path: c:\TouchGFXProjects\MyApplication_1\.
Also the project is empty application:

 


Just tested it on my Windows 11 PC. Builds in seconds.

Have you checked your environment variables?

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.

Maybe something with hidden files in folders ?


@ferro wrote:

Frustrating. Maybe try to install version 4.24.1 in parallel ? You said you tried other versions but not sure if multiple at the same time.


I had 5 versions in parallel but none of them worked. The exact same delay happend in every version. To make sure I installed version 4.24.1 again and tried generating assets at the same time in 4.25.0 and 4.24.1 but still no change.


@ferro wrote:

Maybe something with hidden files in folders ?


I checked and none of the files or folders are hidden.


@unsigned_char_array wrote:

@JureL wrote:

@ferro 
project path is default example path: c:\TouchGFXProjects\MyApplication_1\.
Also the project is empty application:

 


Just tested it on my Windows 11 PC. Builds in seconds.

Have you checked your environment variables?


Yes, I verified the environment variables to ensure that TouchGFX is using the correct version of make from its own toolchain, not some other version that might be installed globally on the system (e.g. from MSYS2 or another toolchain). Everything appears correctly set up.

And did you try add project folder to this list ?

ferro_0-1750749531888.pngferro_1-1750749600005.png

 

And add your folder

ferro_2-1750749634381.png