2024-08-30 07:23 AM - edited 2024-08-30 07:30 AM
I have a CubeIDE project for a H743IITx board and an LCD and I added Touchgfx. The Touchgfx 4.24 contains the typical demo that switches between two screens. It runs fine in the simulator. I refreshed the project and it added all the necessary folders/files. Touchgfx is installed on the PC and the package was added inside the CubeIDE manager.
As you can see in the screenshot, there are a lot of red underlined files when I attempt to build the project. There are about 240 errors.
Usually, when so much code is underlined, it's a matter of missing libraries due to some kind of incomplete setup. However, I don't know what is wrong. I followed the documentation setup as well as different videos on youtube and actually the initial setup is not that complex.
Any ideas what could be missing?
Solved! Go to Solution.
2024-09-03 07:13 PM - edited 2024-09-03 07:14 PM
I realize that the project I created in Touchgfx is a Simulator project for Windows. Maybe that's why all those errors in CubeIDE.
2024-08-30 11:01 AM
Hello @aro ,
Probably, the Include paths are not properly set up and you are missing the include files.
You have to review the defines and project's Include path.
You can also start your project from STM32CubeMX and follow this tutorial.
2024-08-30 01:29 PM
2024-09-02 04:27 AM
Hello @aro ,
To summarize :
Is it the first time you work with TouchGFX?
Can you share the errors? We can have a quick look through it to see if they say files are missing or something else.
Regards,
2024-09-02 01:28 PM
2024-09-03 01:14 AM
Hello @aro ,
The build log's error are of type "undefined reference to "touchgfx::Font::getMaxTextHeight(unsigned short const*, ...) const".
So you have a lot of undefined references to functions which indicates that you are missing some includes, some path or similar.
I will assume that something is not included.
To try to fix undefined functions you can try multiple things:
Furthermore, you can check where those functions are located with software able to do advanced searches (ex : Everything) and then double check that the file where it is defined/declared is available to your project.
Regards,
2024-09-03 07:13 PM - edited 2024-09-03 07:14 PM
I realize that the project I created in Touchgfx is a Simulator project for Windows. Maybe that's why all those errors in CubeIDE.
2024-09-04 03:35 AM
No problem @aro , it happens to the best of us! ;)
The best way to learn how to follow our documentation : board-introduction
Regards,