Currently, I am developing Android-based software using Qt. Since I used SDL for the Windows project before, I also wanted to use SDL for audio playback on Android. However, I found that by simply adding the header files and linking the libraries as usual, it was impossible to call SDL. For example, when I called SDL_Init(flags), it failed and printed an error message: "Application did not initialize properly. Did you include SDL_main.h in the file containing your main() function?" Could you please tell me how to call SDL in Qt Creator? This problem is really bothering me now, and I believe many people have the same issue! If you want my test project, I can send it to you.

Currently, I am developing Android-based software using Qt. Since I used SDL for the Windows project before, I also wanted to use SDL for audio playback on Android. However, I found that by simply adding the header files and linking the libraries as usual, it was impossible to call SDL. For example, when I called SDL_Init(flags), it failed and printed an error message: "Application did not initialize properly. Did you include SDL_main.h in the file containing your main() function?" Could you please tell me how to call SDL in Qt Creator? This problem is really bothering me now, and I believe many people have the same issue! If you want my test project, I can send it to you.