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

libsdl2 build failed #202

Closed
zhongfly opened this issue May 1, 2022 · 2 comments
Closed

libsdl2 build failed #202

zhongfly opened this issue May 1, 2022 · 2 comments

Comments

@zhongfly
Copy link
Contributor

zhongfly commented May 1, 2022

libsdl2 build fails on fresh build , see https://github.com/zhongfly/mpv-winbuild-cmake/runs/6244820483?check_suite_focus=true#step:10:525

libsdl2-build-err.log

/__w/mpv-winbuild-cmake/mpv-winbuild-cmake/build64/packages/libsdl2-prefix/src/libsdl2/src/joystick/windows/SDL_windows_gaming_input.c: In function 'WGI_JoystickOpen':
/__w/mpv-winbuild-cmake/mpv-winbuild-cmake/build64/packages/libsdl2-prefix/src/libsdl2/src/joystick/windows/SDL_windows_gaming_input.c:641:13: error: unknown type name '__FIReference_1_int'; did you mean '__FIReference_1_INT32'?
  641 |             __FIReference_1_int *full_capacityP, *curr_capacityP;
      |             ^~~~~~~~~~~~~~~~~~~
      |             __FIReference_1_INT32
In file included from /__w/mpv-winbuild-cmake/mpv-winbuild-cmake/build64/install/x86_64-w64-mingw32/include/windows.gaming.input.h:622,
                 from /__w/mpv-winbuild-cmake/mpv-winbuild-cmake/build64/packages/libsdl2-prefix/src/libsdl2/src/joystick/windows/SDL_windows_gaming_input.c:33:
/__w/mpv-winbuild-cmake/mpv-winbuild-cmake/build64/packages/libsdl2-prefix/src/libsdl2/src/joystick/windows/SDL_windows_gaming_input.c:643:114: warning: passing argument 2 of 'report->lpVtbl->get_FullChargeCapacityInMilliwattHours' from incompatible pointer type [-Wincompatible-pointer-types]
  643 |             hr = __x_ABI_CWindows_CDevices_CPower_CIBatteryReport_get_FullChargeCapacityInMilliwattHours(report, &full_capacityP);
      |                                                                                                                  ^~~~~~~~~~~~~~~
      |                                                                                                                  |
      |                                                                                                                  int **
/__w/mpv-winbuild-cmake/mpv-winbuild-cmake/build64/packages/libsdl2-prefix/src/libsdl2/src/joystick/windows/SDL_windows_gaming_input.c:643:114: note: expected '__FIReference_1_INT32 **' but argument is of type 'int **'
/__w/mpv-winbuild-cmake/mpv-winbuild-cmake/build64/packages/libsdl2-prefix/src/libsdl2/src/joystick/windows/SDL_windows_gaming_input.c:645:17: warning: implicit declaration of function '__FIReference_1_int_get_Value' [-Wimplicit-function-declaration]
  645 |                 __FIReference_1_int_get_Value(full_capacityP, &full_capacity);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/__w/mpv-winbuild-cmake/mpv-winbuild-cmake/build64/packages/libsdl2-prefix/src/libsdl2/src/joystick/windows/SDL_windows_gaming_input.c:646:17: warning: implicit declaration of function '__FIReference_1_int_Release' [-Wimplicit-function-declaration]
  646 |                 __FIReference_1_int_Release(full_capacityP);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /__w/mpv-winbuild-cmake/mpv-winbuild-cmake/build64/install/x86_64-w64-mingw32/include/windows.gaming.input.h:622,
                 from /__w/mpv-winbuild-cmake/mpv-winbuild-cmake/build64/packages/libsdl2-prefix/src/libsdl2/src/joystick/windows/SDL_windows_gaming_input.c:33:
/__w/mpv-winbuild-cmake/mpv-winbuild-cmake/build64/packages/libsdl2-prefix/src/libsdl2/src/joystick/windows/SDL_windows_gaming_input.c:649:113: warning: passing argument 2 of 'report->lpVtbl->get_RemainingCapacityInMilliwattHours' from incompatible pointer type [-Wincompatible-pointer-types]
  649 |             hr = __x_ABI_CWindows_CDevices_CPower_CIBatteryReport_get_RemainingCapacityInMilliwattHours(report, &curr_capacityP);
      |                                                                                                                 ^~~~~~~~~~~~~~~
      |                                                                                                                 |
      |                                                                                                                 int **
/__w/mpv-winbuild-cmake/mpv-winbuild-cmake/build64/packages/libsdl2-prefix/src/libsdl2/src/joystick/windows/SDL_windows_gaming_input.c:649:113: note: expected '__FIReference_1_INT32 **' but argument is of type 'int **'
make: *** [Makefile:726: build/SDL_windows_gaming_input.lo] Error 1
make: *** Waiting for unfinished jobs....
@zhongfly zhongfly changed the title Update libsdl2 to 2.0.22 libsdl2 build failed May 1, 2022
@zhongfly
Copy link
Contributor Author

zhongfly commented May 2, 2022

libsdl-org/SDL#5589
May need to wait for libsdl2 to fix this, or add a patch to fix it

@zhongfly
Copy link
Contributor Author

mingw64 build has been fixed in the latest commit( libsdl-org/SDL@d2c4d74 ), libsdl2-0001-mingw-header.patch will no longer be needed

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

No branches or pull requests

1 participant