| Summary: | Can't create OpenGL context 3.1 because of "undefined symbol: _udev_device_get_action" | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Vitaly Novichkov <admin> |
| Component: | video | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED INVALID | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | HG 2.1 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
|
Description
Vitaly Novichkov
2017-02-15 09:55:31 UTC
Full text of SDL_error: ========================================================================= Failed loading udev_device_get_action: /path/to/libSDL2-2.0.so: undefined symbol: _udev_device_get_action ========================================================================= Okay, I found why this happens: in real OpenGL context successfully initialized, but the failure is false because of SDL_GetError() was not empty before proceeding the context creation. The real failure source is SDL_Init() in the dynamic API function pointers filling. In my program, I doing the external check of SDL_GetError() for a possible error message which may be set even returned pointer is not null, which was being caught from a failure of another function and has been confused me. I think, the trouble of inability to find "_udev_device_get_action" will be another ticket if it was not created before my. |