To me the Youtube video you are referring to is a strange way to get the code up and running with CubeIDE.
Please follow these steps:
Open Designer and select the AT v3.0.0 STM32F746G-DISCO
Generate code from Designer
Copy the Gauge.cpp and .hpp files respectively in TouchGFX\gui\src\common and TouchGFX\gui\include\gui\common
Modify your Screen1View.cpp and .hpp accordingly
You should have a folder called STM32CubeIDE/, enter this folder.
Double-click on the .project, it will open the project in CubeIDE
Include Gauge.cpp in your project by clicking and dragging the file from your Windows explorer to the folder architecture on the left (now CubeIDE knows that this file needs to be compiled)
Build project
If any errors, please post it here to see what's the problem
It looks like you can build the project correctly but you cannot download the binary file and debug (correct me if I'm wrong). It seems to me that it's a problem related to your ST-Link or your launch configuration.
Can you check your launch configuration (right-click on project > Properties > Run/Debug settings > Edit) ?
I think I have figured out the solution for above mentioned problem.
Added startup_stm32f746nghx.s file from gcc folder to Application/User folder in the STM32CubeIDE.
But now we are again at the initial stage. Screen on which Gauge widget is added is not responding and the whole application freezes after loading this screen.
You will find syscalls.c and sysmem.c in the attached archive.
After putting the files in the correct location, try running your application again.
I don't have the board with me so I cannot debug on my side. Please if it crashes or freezes, try to debug (with breakpoints if necessary) and see where is it failing so that I can try to find the reason.
You can find the implementation of the gauge in the TouchGFX Demo 1 in TouchGFX Designer. This will probably help you with the implementation.
Can you try running the TouchGFX Demo 1 on your board ? If it works, this indicates that your gauge implementation is wrong. Otherwise, if it also freezes, it means that the AT is wrong.
Can you also check if you have the following USE_BPP=24 in your project ? If not please add it
First, the assets of the gauge were not the right size. You have a screen 480*272 and you want to fit a picture 359*359. Not possible.
Second, the AT is 24bpp but the painter used for the gauge was a Painter565 which makes the application crashed. Did you try to run the simulator ? Because it was explicitly mentioned. Therefore I changed the painter to Painter888 (look at the variables in Gauge.hpp).
I also made a few changes to your Screen1View files because you were asking the needle to turn every 16 ms by 10 which would have a really strange behavior.
You will find enclosed the corrected project working (tested with gcc and CubeIDE).
Hope this will help you move forward in your project.