Created
March 26, 2019 15:08
-
-
Save neonb88/3c21e7086ecfee180a589c2c5de16004 to your computer and use it in GitHub Desktop.
stacktrace: `#include <OpenGL/OpenGL.h>` and `#include <OpenGL/CGLTypes.h>`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
make all | |
python3.6 setup.py build_ext --inplace | |
entering mesa_ext | |
running build_ext | |
building 'opendr.contexts.ctx_mesa' extension | |
gcc -pthread -B /home/n/anaconda3/envs/cat11/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -D__OSMESA__=1 -Iopendr/contexts -I. -I/home/n/anaconda3/envs/cat11/lib/python3.6/site-packages/numpy/core/include -Iopendr/contexts/OSMesa/include -I/home/n/anaconda3/envs/cat11/include/python3.6m -c opendr/contexts/ctx_mesa.c -o build/temp.linux-x86_64-3.6/opendr/contexts/ctx_mesa.o -lstdc++ | |
opendr/contexts/ctx_mesa.c: In function ‘release_context’: | |
opendr/contexts/ctx_mesa.c:36:5: warning: implicit declaration of function ‘CGLDestroyContext’ [-Wimplicit-function-declaration] | |
CGLDestroyContext((CGLContextObj)ctx); | |
^ | |
opendr/contexts/ctx_mesa.c:36:24: error: ‘CGLContextObj’ undeclared (first use in this function) | |
CGLDestroyContext((CGLContextObj)ctx); | |
^ | |
opendr/contexts/ctx_mesa.c:36:24: note: each undeclared identifier is reported only once for each function it appears in | |
opendr/contexts/ctx_mesa.c:36:38: error: expected ‘)’ before ‘ctx’ | |
CGLDestroyContext((CGLContextObj)ctx); | |
^ | |
opendr/contexts/ctx_mesa.c: In function ‘set_current’: | |
opendr/contexts/ctx_mesa.c:41:5: warning: implicit declaration of function ‘CGLSetCurrentContext’ [-Wimplicit-function-declaration] | |
CGLSetCurrentContext((CGLContextObj)ctx); | |
^ | |
opendr/contexts/ctx_mesa.c:41:27: error: ‘CGLContextObj’ undeclared (first use in this function) | |
CGLSetCurrentContext((CGLContextObj)ctx); | |
^ | |
opendr/contexts/ctx_mesa.c:41:41: error: expected ‘)’ before ‘ctx’ | |
CGLSetCurrentContext((CGLContextObj)ctx); | |
^ | |
opendr/contexts/ctx_mesa.c: In function ‘create_context’: | |
opendr/contexts/ctx_mesa.c:51:5: error: unknown type name ‘CGLPixelFormatAttribute’ | |
CGLPixelFormatAttribute float_attribs[] = | |
^ | |
opendr/contexts/ctx_mesa.c:53:9: error: ‘kCGLPFAAccelerated’ undeclared (first use in this function) | |
kCGLPFAAccelerated, | |
^ | |
opendr/contexts/ctx_mesa.c:54:9: error: ‘kCGLPFAColorSize’ undeclared (first use in this function) | |
kCGLPFAColorSize, (CGLPixelFormatAttribute)(32*4), // 24, | |
^ | |
opendr/contexts/ctx_mesa.c:54:28: error: ‘CGLPixelFormatAttribute’ undeclared (first use in this function) | |
kCGLPFAColorSize, (CGLPixelFormatAttribute)(32*4), // 24, | |
^ | |
opendr/contexts/ctx_mesa.c:55:9: error: ‘kCGLPFADepthSize’ undeclared (first use in this function) | |
kCGLPFADepthSize, (CGLPixelFormatAttribute)16, | |
^ | |
opendr/contexts/ctx_mesa.c:55:52: error: expected ‘}’ before numeric constant | |
kCGLPFADepthSize, (CGLPixelFormatAttribute)16, | |
^ | |
opendr/contexts/ctx_mesa.c:61:5: warning: statement with no effect [-Wunused-value] | |
CGLPixelFormatAttribute ubyte_attribs[] = | |
^ | |
opendr/contexts/ctx_mesa.c:61:29: error: expected ‘;’ before ‘ubyte_attribs’ | |
CGLPixelFormatAttribute ubyte_attribs[] = | |
^ | |
opendr/contexts/ctx_mesa.c:70:30: error: ‘attribs’ undeclared (first use in this function) | |
CGLPixelFormatAttribute *attribs; | |
^ | |
opendr/contexts/ctx_mesa.c:70:29: error: invalid operands to binary * (have ‘int *’ and ‘int *’) | |
CGLPixelFormatAttribute *attribs; | |
^ | |
opendr/contexts/ctx_mesa.c:70:5: warning: statement with no effect [-Wunused-value] | |
CGLPixelFormatAttribute *attribs; | |
^ | |
opendr/contexts/ctx_mesa.c:72:19: error: ‘ubyte_attribs’ undeclared (first use in this function) | |
attribs = ubyte_attribs; | |
^ | |
opendr/contexts/ctx_mesa.c:72:9: warning: statement with no effect [-Wunused-value] | |
attribs = ubyte_attribs; | |
^ | |
opendr/contexts/ctx_mesa.c:74:9: warning: statement with no effect [-Wunused-value] | |
attribs = float_attribs; | |
^ | |
opendr/contexts/ctx_mesa.c:82:5: error: unknown type name ‘CGLPixelFormatObj’ | |
CGLPixelFormatObj pixelFormatObj; | |
^ | |
opendr/contexts/ctx_mesa.c:85:5: warning: implicit declaration of function ‘CGLChoosePixelFormat’ [-Wimplicit-function-declaration] | |
CGLChoosePixelFormat (attribs, &pixelFormatObj, &numPixelFormats); | |
^ | |
opendr/contexts/ctx_mesa.c:87:24: warning: comparison between pointer and integer | |
if( pixelFormatObj == NULL ) { | |
^ | |
opendr/contexts/ctx_mesa.c:94:5: error: unknown type name ‘CGLContextObj’ | |
CGLContextObj cglContext1 = NULL; | |
^ | |
opendr/contexts/ctx_mesa.c:94:33: warning: initialization makes integer from pointer without a cast [-Wint-conversion] | |
CGLContextObj cglContext1 = NULL; | |
^ | |
opendr/contexts/ctx_mesa.c:95:5: warning: implicit declaration of function ‘CGLCreateContext’ [-Wimplicit-function-declaration] | |
CGLCreateContext(pixelFormatObj, NULL, &cglContext1); | |
^ | |
opendr/contexts/ctx_mesa.c:100:5: warning: implicit declaration of function ‘glGenFramebuffersEXT’ [-Wimplicit-function-declaration] | |
glGenFramebuffersEXT(1, &framebuffer); | |
^ | |
opendr/contexts/ctx_mesa.c:101:5: warning: implicit declaration of function ‘glBindFramebufferEXT’ [-Wimplicit-function-declaration] | |
glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, framebuffer); | |
^ | |
opendr/contexts/ctx_mesa.c:102:5: warning: implicit declaration of function ‘glGenRenderbuffersEXT’ [-Wimplicit-function-declaration] | |
glGenRenderbuffersEXT(1, &renderbuffer); | |
^ | |
opendr/contexts/ctx_mesa.c:103:5: warning: implicit declaration of function ‘glBindRenderbufferEXT’ [-Wimplicit-function-declaration] | |
glBindRenderbufferEXT(GL_RENDERBUFFER_EXT, renderbuffer); | |
^ | |
opendr/contexts/ctx_mesa.c:107:5: warning: implicit declaration of function ‘glRenderbufferStorageEXT’ [-Wimplicit-function-declaration] | |
glRenderbufferStorageEXT(GL_RENDERBUFFER_EXT, GL_RGBA8, imageWidth, imageHeight); | |
^ | |
opendr/contexts/ctx_mesa.c:108:5: warning: implicit declaration of function ‘glFramebufferRenderbufferEXT’ [-Wimplicit-function-declaration] | |
glFramebufferRenderbufferEXT(GL_FRAMEBUFFER_EXT, GL_COLOR_ATTACHMENT0_EXT, | |
^ | |
opendr/contexts/ctx_mesa.c:110:21: warning: implicit declaration of function ‘glCheckFramebufferStatusEXT’ [-Wimplicit-function-declaration] | |
GLenum status = glCheckFramebufferStatusEXT(GL_FRAMEBUFFER_EXT); | |
^ | |
opendr/contexts/ctx_mesa.c:116:5: warning: implicit declaration of function ‘glBindRenderbuffer’ [-Wimplicit-function-declaration] | |
glBindRenderbuffer(GL_RENDERBUFFER, depthRenderbuffer); | |
^ | |
opendr/contexts/ctx_mesa.c:117:5: warning: implicit declaration of function ‘glRenderbufferStorage’ [-Wimplicit-function-declaration] | |
glRenderbufferStorage(GL_RENDERBUFFER, GL_DEPTH_COMPONENT16, imageWidth, imageHeight); | |
^ | |
opendr/contexts/ctx_mesa.c:118:5: warning: implicit declaration of function ‘glFramebufferRenderbuffer’ [-Wimplicit-function-declaration] | |
glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT, GL_RENDERBUFFER, depthRenderbuffer); | |
^ | |
opendr/contexts/ctx_mesa.c:122:5: warning: implicit declaration of function ‘CGLReleasePixelFormat’ [-Wimplicit-function-declaration] | |
CGLReleasePixelFormat(pixelFormatObj); | |
^ | |
opendr/contexts/ctx_mesa.c:133:12: warning: return makes pointer from integer without a cast [-Wint-conversion] | |
return cglContext1; | |
^ | |
error: command 'gcc' failed with exit status 1 | |
Makefile:3: recipe for target 'all' failed | |
make: *** [all] Error 1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment