Open WolfbertFX opened 2 weeks ago
Can you check a previous release? If this is specifically a windows SDL issue that's hard to fix.
Edit: Googling the error code and DirectInput errors are probably an SDL thing
in build 4.4.1 (Release) the joystick works correctly
You could try building with a different SDL version, like perhaps the one that 4.4.1 uses and see if that works Edit: check this out: https://discuss.px4.io/t/qgroundcontrol-radio-setup-issue-radiomaster-tx12-markii-cc2500-r81-v2-receiver/39511
1) I checked a similar example at the link above, but the Radio Master TX 12 joystick simply does not have the settings described there.
2) In the daily version of QGC, SDL version 2.30.2 is used. In version 4.4.1 of QGC, SDL version 2.0.20 is used. I tried to change the version in BuildSdl2.cmake, but the project did not compile. I haven’t found a way to fix it yet(
Build output:
SDL2d.lib (SDL_dynapi.c.obj) : error LNK2019: unresolved external symbol SDL_RegisterApp_REAL referenced in function initialize_jumptable.
SDL2d.lib (SDL_dynapi.c.obj) : error LNK2019: nresolved external symbol SDL_UnregisterApp_REAL referenced in function initialize_jumptable.
SDL2d.lib (SDL_dynapi.c.obj) : error LNK2019: error LNK2019: unresolved external symbol SDL_Direct3D9GetAdapterIndex_REAL referenced in function initialize_jumptable.
SDL2d.lib (SDL_dynapi.c.obj) : error LNK2019: error LNK2019: unresolved external symbol SDL_DXGIGetOutputInfo_REAL referenced in function initialize_jumptable.
SDL2d.lib (SDL_dynapi.c.obj) : error LNK2019: error LNK2019: unresolved external symbol SDL_SetWindowsMessageHook_REAL referenced in function initialize_jumptable.
SDL2d.lib (SDL_dinputjoystick.c.obj) : error LNK2001: unresolved external symbol SDL_HelperWindow
QGroundControl.exe : fatal error LNK1120
ninja: build stopped: subcommand failed.
The Radio Master TX 12 is not connected to the QgroundControl in the daily version. This problem is only on Windows, the build for macOS works correctly. In QT console it looks like this:
[E] at C:\Users\wolfbertfx\Desktop\qgroundcontrol\src\Joystick\JoystickSDL.cc:61 - " libsdl failed opening joystick Radiomaster TX12 Joystick error: IDirectInputDevice8::SetCooperativeLevel() DirectX error 0x80070006"
System Information