Skip to content

SDL Unable to call Window.GetView #1962

@TheVave

Description

@TheVave

Summary

I have been trying to use SDL to create a window (or in this case IView) in Android, but it is giving me the following error:
Silk.NET.SDL.SdlException: 'Application didn't initialize properly, did you include SDL_main.h in the file containing your main() function?'
This looks like an error from SDL, so I'm not sure what the cause would be.
Here's my code (that probably has something wrong):
var options = ViewOptions.Default; options.API = new GraphicsAPI(ContextAPI.OpenGLES, ContextProfile.Core, ContextFlags.Default, new APIVersion(3, 2)); vw = Window.GetView(options); vw.Run();
vw is an IView object.

Steps to reproduce (With code)

  • Platform: Android Mobile Emulator Pixel 5
  • Framework Version: .NET 8 & MAUI
  • API: OpenGLES 3.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions