cancel
Showing results for 
Search instead for 
Did you mean: 

cubemx + touchgfx STM32f429i disco fatal error: SDL2/SDL_video.h: No such file or directory

Professional
Senior

Hello,

i tried to generate for STM32f429i disco a project with graphic = touchgfx.

1) i generate cubemx (for STM32f429i disco) project for SW4STM32 toolchain

2) i generate a simple touchgfx project for SW4STM32 toolchain

But compilation under eclipse gives the following errors :

HALSDL2.hpp:22:10: fatal error: SDL2/SDL_video.h: No such file or directory

HALSDL2.hpp:22:10: fatal error:SDL2/SDL_render.h: No such file or directory

main.cpp:30:10: fatal error: shellapi.h: No such file or directory

I can i solve these compilation errors ?

thanks

best regards

36 REPLIES 36
Mon2
Senior III

@Clark Sann​ , @FSTKMARO​ - just got the SW4STM32 compiler working to compile the TouchGFX generated GUI with the CubeMX integration. The GUI (without the touch panel support) took "only" 2 days of work but the touch panel sucked another day out of my life. I think Alexa heard and logged every curse word in this painful process. Wasted right now but will try my best to document the procedure for Monday (using STM32F429i-DISC1 target).

In hindsight, without touch panel GUI integration takes a few seconds to craft up but the touch panel is another story.

Bye for now.

interesting. your document is pretty straightforward to get the touch working. anyways, glad to hear. TGFX and ST have some work ahead of them to get this working fine. In the mean time, I am using STemWin while TGFX gets fixed. Thanks for the help on this.

It's too bad we are forced to use STemWin. I got it to work pretty easily but the GUIs look terrible....at least mine did. And I could never get the touch controller to work very well. One thing I liked about TouchGFX vs STemWin is how nice the GUIs looked and how responsive the touch controller was.

Before the latest CubeMX came out with TouchGFX integration (well sorta integrated), I labored for hundreds of hours to get TouchGFX working with SW4STM32. No joy. TouchGFX kept saying, "it's easy! Lots of done it, but we can't tell you how.". Right. I think now it should be apparent that it's not easy. If the combined forces of TouchGFX and ST , both working for several weeks have only gotten us to this stage, then it's not easy. Hopefully this will get straightened out in January and you can stop using STemWin.

@Mon2​ , Man I'm waiting with baited breathe to see how you managed to get the touch controller working with SW4STM32. I think it's infected by demons. Why it refuses to find the firmware files is beyond me. Anyway, I hope you get rested up and get time to share what you found.

I also hope you findings transfer over to my STM32F746G-DISCO board.

Hi Clark. See my post a few spaces above. @Mon2​ had provided a link to a document that was crafted to address this issue in IAR, it happens that the same methods apply to SW4STM32, the only difference is the location of the files. As to the IDE not finding the include files, in my case this was solved by installing the latest update to SW4STM32. Before I did that, I found no way to make the IDE see the files anywhere. Now, be advised, once you get the touch screen to work, if you modify the TouchGFX GUI using TouchGFX, the files you added and likely the statements that are needed to make the touchscreen work, will be deleted and you will have to re-do them. @Mon2​ provided the key to solve this and as such making this manageable for us that use the SystemWorkbench software. Good Luck. I am sure ST and TouchGFX will have this all fixed soon.

Mon2
Senior III

Hi @Clark Sann​. Have to do my role for a few hours of shopping with the Mrs. but hope to get back to this later today. In hindsight, as they say on G.I. Joe, knowing is half the battle. Embarrassed to say that the SW4STM32 learning curve was not so easy for us and THE root cause of this battle. Now, we can build from scratch with touch panel in less than 2 minutes using TouchGFX. More details to follow. If you are really stuck after the documentation review, we can work on a Teamviewer remote session. I am on the EST time zone. Bye for now.

PS: Agree that TouchGFX is VERY powerful and to be open, we had it operational quickly after installation without even reading the limited documentation. Do not believe we were so luck with STEMWin or others. This combo will be great for the development community. Also, somewhere at work, have the STM32F746-DISCO kit but could not locate it yesterday. Will give that a quick review, time permitting. The procedure for use of that kit with IAR is documented on the Draupner main website.

Hi @FSTKMARO​ Yes, I have the latest update but it still doesn't work. No matter where I place the BSP files, and how I configure the include path, SW4STM32 refuses to see the BSP files.

I was hopeful that the latest version of SW4STM32 would fix the problem since that version was specifically to add support for the STM32F7 r 1.14.0 package. However, no joy was found after I installed the update.

I'm fearful there is a difference between the 32F7 package and the 32F4 package all you guys are using. Or perhaps I am repeatedly doing something wrong. I am certainly not very experienced with Eclipse.

@Mon2​ ,

Thanks for you offer to help and your assistance so far! Have a good time shopping and it's good you have your priorities straight! =)

I am CST. But I hope I don't have to bother you with screen sharing.

Mon2
Senior III

Hello @Clark Sann​ and all, please see here:

https://community.st.com/s/question/0D50X0000A7Y1xxSQC/stm32f429idisc1-tutorials-with-iar-and-sw4stm32-compilers-with-touchgfx-stm32cubemx

Welcome your feedback and hope this helps.

Going to grab a Netflix and will check back later, in case this tutorial goes South :)

Good luck!!

Thank you Clark. I know the pain. I was also attracted to TGFX due to the graphics. I did learn to use STemWin and just created a skeleton of the GUI and replaced the images with my own. It is a breeze to go through the backend coding with stem win. I do still look forward to using TGFX in the near future. Everything that I have seen about it is great. Good luck and we will still wait :)