반응형
../../third_party/swiftshader/include/EGL/eglext.h:126:97: error: 'EGLAttrib' does not name a type
 typedef EGLint (EGLAPIENTRYP PFNEGLDEBUGMESSAGECONTROLKHRPROC) (EGLDEBUGPROCKHR callback, const EGLAttrib *attrib_list);
                                                                                                 ^
../../third_party/swiftshader/include/EGL/eglext.h:127:78: error: 'EGLAttrib' has not been declared
 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDEBUGKHRPROC) (EGLint attribute, EGLAttrib *value);
                                                                              ^
../../third_party/swiftshader/include/EGL/eglext.h:130:86: error: 'EGLAttrib' does not name a type
 EGLAPI EGLint EGLAPIENTRY eglDebugMessageControlKHR (EGLDEBUGPROCKHR callback, const EGLAttrib *attrib_list);
                                                                                      ^
../../third_party/swiftshader/include/EGL/eglext.h:131:67: error: 'EGLAttrib' has not been declared
 EGLAPI EGLBoolean EGLAPIENTRY eglQueryDebugKHR (EGLint attribute, EGLAttrib *value);
                                                                   ^
../../third_party/swiftshader/include/EGL/eglext.h:139:97: error: 'EGLAttrib' has not been declared
 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDISPLAYATTRIBKHRPROC) (EGLDisplay dpy, EGLint name, EGLAttrib *value);
                                                                                                 ^
../../third_party/swiftshader/include/EGL/eglext.h:141:86: error: 'EGLAttrib' has not been declared
 EGLAPI EGLBoolean EGLAPIENTRY eglQueryDisplayAttribKHR (EGLDisplay dpy, EGLint name, EGLAttrib *value);
                                                                                      ^
../../third_party/swiftshader/include/EGL/eglext.h:365:92: error: 'EGLAttrib' does not name a type
 typedef EGLStreamKHR (EGLAPIENTRYP PFNEGLCREATESTREAMATTRIBKHRPROC) (EGLDisplay dpy, const EGLAttrib *attrib_list);
                                                                                            ^
../../third_party/swiftshader/include/EGL/eglext.h:366:121: error: 'EGLAttrib' has not been declared
 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSETSTREAMATTRIBKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLAttrib value);


위와 같은 에러가 발생할 경우 아래와 같이 eglext.h 파일을 수정해준다.


#ifndef EGL_KHR_debug
#define EGL_KHR_debug 1
typedef void *EGLLabelKHR;
typedef void *EGLObjectKHR;
typedef void (EGLAPIENTRY  *EGLDEBUGPROCKHR)(EGLenum error,const char *command,EGLint messageType,EGLLabelKHR threadLabel,EGLLabelKHR objectLabel,const char* message);
typedef EGLAttribKHR EGLAttrib; // 이 라인을 추가한다.
반응형

prev article thumbnail image
이전 글 추천
[GIT] 추적하지 않는 파일 삭제
2018.02.24
복사했습니다!