2022-07-24 10:49 AM
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?
2022-07-25 01:54 AM
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
2022-07-25 07:48 AM
2022-07-25 07:48 AM
replied via e-mail given the project size... Thanks.
2022-07-26 01:14 AM
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
2022-07-26 06:10 PM