Skip to main content
mSH.1
Associate III
July 20, 2022
Solved

An error occurs about the screen deleted from TouchGFX.

  • July 20, 2022
  • 2 replies
  • 1129 views

hello

An error occurs about the screen deleted from TouchGFX.

I deleted a specific screen from TouchGFX and re-generated the code.

Also, CubeIDE also deleted the Cpp file corresponding to a specific sceen.

Then it builds normally.

However, the problem is that whenever Code Generation is performed in TouhGFX, the cpps deleted in CubeIDE are recreated and an error occurs.

Description	Resource	Path	Location	Type
fatal error: gui_generated/scrautoremain_i4_screen/ScrAutoReMain_i4ViewBase.hpp: No such file or directory	STM32H735G-DK		line 4	C/C++ Problem
make: *** [Application/User/gui/subdir.mk:243: Application/User/gui/ScrAutoReMain_i4Presenter.o] Error 1	STM32H735G-DK		 	C/C++ Problem
make: *** [Application/User/gui/subdir.mk:245: Application/User/gui/ScrAutoReMain_i4View.o] Error 1	STM32H735G-DK		 	C/C++ Problem

Every time TouchGFX does code generation, CubeIDE is in the process of building while deleting the CPP files corresponding to the previously deleted screens one by one.

I want to know the solution.

thank​

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

hello,

I found the cause.

If there is a user-added code, it occurs as above, and the user-added code must be deleted in advance.

2 replies

Yoann KLEIN
ST Employee
July 21, 2022

Hello @mSH.1​ ,

I don't understand why you are deleting manually the cpp files corresponding to the screens in CubeIDE.

If you wanna get rid of a screen, just simply delete it in TouchGFXDesigner, and then press "Refresh" on the project in STM32CubeIDE, and try to rebuild it.

The screen files and references should be deleted then.

/Yoann

Yoann KLEINST Software Developer | TouchGFX
mSH.1
mSH.1AuthorBest answer
Associate III
July 31, 2022

hello,

I found the cause.

If there is a user-added code, it occurs as above, and the user-added code must be deleted in advance.