cancel
Showing results for 
Search instead for 
Did you mean: 

"Run Simulator" error after deleting a screen

TechnicalPBG2025
Associate

Good morning,
I'm working on a graphics project on a 7 inch Riverdi display (RVT70HSSNWC00-B). I added a screen containing a video but I couldn't play it so I deleted the screen and ran the Run Simulator but it gives me this error:

=========================================================================================

Run Simulator
Generate
Done
Generate Assets
make -f simulator/gcc/Makefile assets -j8
Reading ./application.config
Reading ./target.config
Done
Post Generate
touchgfx update_project --project-file=simulator/msvs/Application.vcxproj
Done
Post Generate Target
touchgfx update_project
.cproject file: ../../STM32CubeIDE/CM7/.cproject
Writing STM32CubeIDE project file: ../../STM32CubeIDE/CM7/.project
Writing STM32CubeIDE project file: ../../STM32CubeIDE/CM7/.cproject
Done
Compile
make -f simulator/gcc/Makefile -j8
Reading ./application.config
Reading ./target.config
Compiling gui/src/home_screen/HOMEPresenter.cpp
Compiling gui/src/home_screen/HOMEView.cpp
Compiling gui/src/setup_screen/SETUPPresenter.cpp
Compiling gui/src/setup_screen/SETUPView.cpp
Compiling gui/src/dual_arthrosis_2_screen/DUAL_ARTHROSIS_2View.cpp
Compiling gui/src/dual_arthrosis_2_screen/DUAL_ARTHROSIS_2Presenter.cpp
Compiling gui/src/pathologies_screen/PATHOLOGIESView.cpp
Compiling gui/src/pathologies_screen/PATHOLOGIESPresenter.cpp
Compiling gui/src/dual_magnetic_field_screen/DUAL_MAGNETIC_FIELDView.cpp
Compiling gui/src/dual_magnetic_field_screen/DUAL_MAGNETIC_FIELDPresenter.cpp
Compiling gui/src/free_field_working_screen/FREE_FIELD_WORKINGPresenter.cpp
Compiling gui/src/free_field_working_screen/FREE_FIELD_WORKINGView.cpp
Compiling gui/src/therapies_working_screen/THERAPIES_WORKINGView.cpp
Compiling gui/src/therapies_working_screen/THERAPIES_WORKINGPresenter.cpp
Compiling gui/src/dual_arthrosis_1_screen/DUAL_ARTHROSIS_1Presenter.cpp
Compiling gui/src/dual_arthrosis_1_screen/DUAL_ARTHROSIS_1View.cpp
Compiling gui/src/quickstart_screen/QUICKSTARTView.cpp
Compiling gui/src/quickstart_screen/QUICKSTARTPresenter.cpp
Compiling gui/src/common/FrontendApplication.cpp
Compiling generated/gui_generated/src/home_screen/HOMEViewBase.cpp
Compiling generated/gui_generated/src/setup_screen/SETUPViewBase.cpp
Compiling generated/gui_generated/src/dual_arthrosis_2_screen/DUAL_ARTHROSIS_2ViewBase.cpp
Compiling generated/gui_generated/src/pathologies_screen/PATHOLOGIESViewBase.cpp
Compiling generated/gui_generated/src/dual_magnetic_field_screen/DUAL_MAGNETIC_FIELDViewBase.cpp
Compiling generated/gui_generated/src/free_field_working_screen/FREE_FIELD_WORKINGViewBase.cpp
Compiling generated/gui_generated/src/therapies_working_screen/THERAPIES_WORKINGViewBase.cpp
Compiling generated/gui_generated/src/dual_arthrosis_1_screen/DUAL_ARTHROSIS_1ViewBase.cpp
Compiling generated/gui_generated/src/quickstart_screen/QUICKSTARTViewBase.cpp
Compiling generated/gui_generated/src/common/FrontendApplicationBase.cpp
Compiling generated/simulator/src/mainBase.cpp
Compiling simulator/main.cpp
In file included from generated/simulator/src/mainBase.cpp:10:0:
generated/videos/include/videos/VideoDatabase.hpp:15:30: error: expected initializer before 'fps_bin_length'
const uint32_t video_Logo_25 fps_bin_length = 18985850;
^~~~~~~~~~~~~~
generated/videos/include/videos/VideoDatabase.hpp:17:37: error: expected initializer before 'fps_bin_start'
extern const uint8_t* video_Logo_25 fps_bin_start;
^~~~~~~~~~~~~
generated/simulator/src/mainBase.cpp: In function 'void setupVideoDecoder(touchgfx::HAL&)':
generated/simulator/src/mainBase.cpp:46:137: error: 'video_Logo_25_fps_bin_length' was not declared in this scope
setupVideo(static_cast<touchgfx::HALSDL2&>(hal).localFileName(videoFileName, 400, "Logo_25 fps.bin"), &video_Logo_25_fps_bin_start, video_Logo_25_fps_bin_length);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
generated/simulator/src/mainBase.cpp:46:137: note: suggested alternative: 'video_Logo_25_fps_bin_start'
setupVideo(static_cast<touchgfx::HALSDL2&>(hal).localFileName(videoFileName, 400, "Logo_25 fps.bin"), &video_Logo_25_fps_bin_start, video_Logo_25_fps_bin_length);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
video_Logo_25_fps_bin_start
make[2]: *** [build/MINGW32_NT-6.2/generated/simulator/src/mainBase.o] Error 1
generated/simulator/gcc/Makefile:196: recipe for target 'build/MINGW32_NT-6.2/generated/simulator/src/mainBase.o' failed
make[2]: *** Waiting for unfinished jobs....
generated/simulator/gcc/Makefile:155: recipe for target 'generate_assets' failed
make[1]: *** [generate_assets] Error 2
simulator/gcc/Makefile:32: recipe for target 'all' failed
make: *** [all] Error 2
Failed
Failed

=========================================================================================

I ask you kindly how can I solve the problem?

I also ask you what type of file and video size does the TouchGFX application manage?

Thanks

 

1 REPLY 1
ferro
Senior III

Hi @TechnicalPBG2025 

 

Aparat from deleting the screen within the GfxDesigner, delete screen folders from the project structure and 'generated' folder as well.

 

Delete these 3 folders

.\generated

.\gui\include\gui\<screen folder deleted in GfxDesigner>

.\gui\scr\<screen folder deleted in GfxDesigner>