Skip to content

Any demo to use SDL3 on qt for android? #15238

@Mangomm

Description

@Mangomm

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.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions