Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sdl package video options seem to not have any impact #1440

Closed
positivcheg94 opened this issue Jan 3, 2022 · 2 comments
Closed

sdl package video options seem to not have any impact #1440

positivcheg94 opened this issue Jan 3, 2022 · 2 comments
Labels

Comments

@positivcheg94
Copy link

So from my observation, it does look like options provided by the sdl conan package and OpenGL, OpenGLES, DirectX, Vulkan seem to not have any impact on library build.

Why is it though?
To prove my point.

  1. I found it strange that when I load my app in visual studio it loads DLLs on startup such as
'ApplicationExample.exe' (Win32): Loaded 'C:\Windows\System32\opengl32.dll'. 
'ApplicationExample.exe' (Win32): Loaded 'C:\Windows\System32\glu32.dll'.
  1. in .conan\data\sdl\2.0.18__\build\164640aad040835ac89882393a96d89200694f04\build_subfolder if I check CMakeCache.txt it shows cached variables for graphics backends
//Include OpenGL support
SDL_OPENGL:BOOL=ON
//Include OpenGL ES support
SDL_OPENGLES:BOOL=ON
  1. Also from the build log of conan install I see
    -- SDL_OPENGL (Wanted: ON): ON
    -- SDL_OPENGLES (Wanted: ON): ON

So all of that makes me assume that either package is not picking correctly the options or am I doing something wrong?
In that conan package build folder .conan\data\sdl\2.0.18__\build\164640aad040835ac89882393a96d89200694f04 conaninfo.txt seem to pick correctly options that I've provided in my project's conanfile.py though default_options - "sdl:opengl":False

[settings]
    arch=x86_64
    build_type=Debug
    compiler=Visual Studio
    compiler.runtime=MDd
    compiler.version=17
    os=Windows

[requires]


[options]
    directx=False
    opengl=False
    opengles=False
    shared=False
    vulkan=False

[full_settings]
    arch=x86_64
    build_type=Debug
    compiler=Visual Studio
    compiler.runtime=MDd
    compiler.version=17
    os=Windows

[full_requires]


[full_options]
    directx=False
    opengl=False
    opengles=False
    sdl2main=False
    shared=False
    vulkan=False

[recipe_hash]
    5d99981c667b8a9f3939c3cdc8f7e4a3

[env]

Any feedback on this?

@ericLemanissier
Copy link
Contributor

issues on sdl/* should be reported on https://github.com/conan-io/conan-center-index/
The recipe maintained on bincrafters repository is sdl2/*@bincrafters/stable

@ericLemanissier
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants