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

fail build with mpv from git (0.34.0-519-g42cfed002f) error: too many initializers for 'mpv_opengl_init_params' #3

Open
sl1pkn07 opened this issue Nov 5, 2022 · 3 comments

Comments

@sl1pkn07
Copy link

sl1pkn07 commented Nov 5, 2022

Hi

g++ -c -pipe -march=native -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -std=gnu++11 -flto -fno-fat-lto-objects -Wall -Wextra -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I/usr/include/openhmd -I/usr/include/qt -I/usr/include/qt/QtWidgets -I/usr/include/qt/QtGui -I/usr/include/qt/QtCore -I. -I/usr/lib/qt/mkspecs/linux-g++ -o moc_widget.o moc_widget.cpp
widget.cpp: In function 'void s_messageCallback(GLenum, GLenum, GLuint, GLenum, GLsizei, const GLchar*, const void*)':
widget.cpp:171:42: warning: unused parameter 'source' [-Wunused-parameter]
  171 | void GLAPIENTRY s_messageCallback(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar* message, const void* userParam)
      |                                   ~~~~~~~^~~~~~
widget.cpp:171:70: warning: unused parameter 'id' [-Wunused-parameter]
  171 | void GLAPIENTRY s_messageCallback(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar* message, const void* userParam)
      |                                                               ~~~~~~~^~
widget.cpp:171:99: warning: unused parameter 'length' [-Wunused-parameter]
  171 | void GLAPIENTRY s_messageCallback(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar* message, const void* userParam)
      |                                                                                           ~~~~~~~~^~~~~~
widget.cpp:171:142: warning: unused parameter 'userParam' [-Wunused-parameter]
  171 | void GLAPIENTRY s_messageCallback(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar* message, const void* userParam)
      |                                                                                                                                  ~~~~~~~~~~~~^~~~~~~~~
widget.cpp: In member function 'virtual void MpvWidget::initializeGL()':
widget.cpp:238:77: error: too many initializers for 'mpv_opengl_init_params'
  238 |     mpv_opengl_init_params gl_init_params{get_proc_address, nullptr, nullptr};
      |                                                                             ^
widget.cpp:191:17: warning: unused variable 'fragsource' [-Wunused-variable]
  191 |     const char *fragsource =
      |                 ^~~~~~~~~~
widget.cpp: In member function 'void MpvWidget::renderEye(int, const QMatrix4x4&, QMatrix4x4)':
widget.cpp:434:76: warning: unused parameter 'projectionl' [-Wunused-parameter]
  434 | void MpvWidget::renderEye(int eye, const QMatrix4x4 &modelview, QMatrix4x4 projectionl)
      |                                                                 ~~~~~~~~~~~^~~~~~~~~~~
widget.cpp: At global scope:
widget.cpp:83:14: warning: 'void* get_proc_address(void*, const char*)' defined but not used [-Wunused-function]
   83 | static void *get_proc_address(void *ctx, const char *name) {
      |              ^~~~~~~~~~~~~~~~
make: *** [Makefile:1241: widget.o] Error 1

greetings

@sl1pkn07 sl1pkn07 changed the title fail build with mpv from git (0.34.0-519-g42cfed002f) fail build with mpv from git (0.34.0-519-g42cfed002f) error: too many initializers for 'mpv_opengl_init_params' Nov 5, 2022
@JohnCiubuc
Copy link

Remove one of the nullptrs or use my fork of the project. Compiles fine now but not sure if that went fubar with the projection on the HMD though

@dreirund
Copy link

dreirund commented Feb 9, 2024

Same here.

@dreirund
Copy link

dreirund commented Jul 8, 2024

*ping*

A fix is given, @sandsmark.

Regards and thanks for the software!

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

3 participants