Open sl1pkn07 opened 1 year ago
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
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
Same here.
*ping*
A fix is given, @sandsmark.
Regards and thanks for the software!
Hi
greetings