cancel
Showing results for 
Search instead for 
Did you mean: 

Simulation on Windows 10 error: recipe for target 'generate_assets' failed

barms.1
Associate II

I have a fresh install of TouchGFX Designer (4.20.0) running on a Windows 10 computer. Although the code for "Animated Image Example" will generate, the simulation will not compile. I've used all the default settings with no modifications. I'm following this tutorial from TouchGFX.

When running the simulator the log shows:

Run Simulator
    Copy Framework
        Copying TouchGFX framework version 4.20.0 to C:\TouchGFXProjects\MyAnimatedImageExample\touchgfx
        Done
    Generate
        Wrote config/gcc/app.mk
        Wrote config/msvs/Application.props
        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/main_screen/MainViewBase.hpp
        Wrote generated/gui_generated/src/common/FrontendApplicationBase.cpp
        Wrote generated/gui_generated/src/main_screen/MainViewBase.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
        Wrote simulator/gcc/Makefile
        Wrote simulator/main.cpp
        Wrote simulator/msvs/Application.sln
        Wrote simulator/msvs/Application.vcxproj
        Wrote simulator/msvs/Application.vcxproj.filters
        Wrote target.config
        Done
    Generate Assets
        make -f simulator/gcc/Makefile assets -j8
        Reading ./application.config
        Generating generated/images/src/image_ani_01.cpp
        Generating generated/images/src/image_ani_02.cpp
        Generating generated/images/src/image_ani_03.cpp
        Generating generated/images/src/image_ani_04.cpp
        Generating generated/images/src/image_ani_05.cpp
        Generating generated/images/src/image_ani_06.cpp
        Generating generated/images/src/image_ani_07.cpp
        Generating generated/images/src/image_ani_08.cpp
        Generating generated/images/src/image_ani_09.cpp
        Generating generated/images/src/image_ani_10.cpp
        Generating generated/images/src/image_ani_11.cpp
        Generating generated/images/src/image_ani_12.cpp
        Generating generated/images/src/image_ani_13.cpp
        Generating generated/images/src/image_ani_14.cpp
        Generating generated/images/src/image_bg.cpp
        Generating generated/videos/include/videos/VideoDatabase.hpp
        Generating generated/images/src/image_btn.cpp
        Generating generated/images/src/image_btn_pressed.cpp
        Generating generated/images/include/BitmapDatabase.hpp
        Generating generated/images/src/BitmapDatabase.cpp
        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/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
        Done
    Post Generate
        touchgfx update_project --project-file=simulator/msvs/Application.vcxproj
        Done
    Compile
        make -f simulator/gcc/Makefile -j8
        Reading ./application.config
        /usr/bin/sh: -c: line 0: syntax error near unexpected token `('
        /usr/bin/sh: -c: line 0: `C:\Program Files (x86)\GnuWin32\bin\make.exe -f generated/simulator/gcc/Makefile -r -s -rs -j --jobserver-fds=gmake_semaphore_1076 build_executable'
        generated/simulator/gcc/Makefile:155: recipe for target 'generate_assets' failed
        make[1]: *** [generate_assets] Error 258
        simulator/gcc/Makefile:32: recipe for target 'all' failed
        make: *** [all] Error 2
        Failed
    Failed

There is no modification to the Makefile and the result is the same when executing using TouchGFX Environment (4.20.0).

Other similar questions deal with prior versions where the text files are in .xls vs .xml formatting. The only other place I found a reference was to address errors, but that is a different error format than what I've posted. Any thoughts on what is causing this error?

5 REPLIES 5
Yoann KLEIN
ST Employee

Hello @barms.1​ ,

Are you sure that you just followed this tutorial, without doing anything else ?

Because that's the first step of getting started with TouchGFX, and that shouldn't fail in any case.

If yes, can you please share your project, so we can debug it ?

Thanks,

/Yoann

Yoann KLEIN
ST Software Developer | TouchGFX
MyAnimatedImageExample.zip <> Yoann - Here is the project. And I agree, it does seem really odd and it must be something on my end as there is no other reference to anyone having an issue. The only think I could think of is that my gcc/make had some install issue, but from what I can tell TouchGFX runs it's own. Let me know what you think. Thanks, Bill
barms.1
Associate II

replied via e-mail given the project size... Thanks.

Yoann KLEIN
ST Employee

Hello,

I downloaded your project and ran it directly in the simulator, without any issue.

Could you please try to uninstall and reinstall TouchGFX on your computer, and then start a new project from scratch, like you did previously.

Thanks,

/Yoann

Yoann KLEIN
ST Software Developer | TouchGFX
After uninstalling and reinstalling I get the same compiler error on the demo. But, there are some cached files somewhere that I'd like to delete to make it truly a clean install. After doing the installation it has a pointer to the example project and even the dev board that I had used on the very first instance. I've done a little digging around all the obvious places but cannot find where the 'history' or other cache files are located.
So - still the same error - but not sure I truly got a clean install.