Been asking around and the 64bit issue looks like an issue with the versions of the libraries you wrote this for, cant find an aswer for the 32bit issue.
Here is the 32 bit issue.
make
g++ -fPIC -Wall -c pkg-config --cflags libvsxu
addon.cpp
In file included from addon.cpp:11:0:
/usr/include/vsx_gl_state.h:27:3: error: ‘GL_FRONT’ was not declared in this scope
GL_FRONT,
^
/usr/include/vsx_gl_state.h:28:3: error: ‘GL_BACK’ was not declared in this scope
GL_BACKmake
g++ -fPIC -Wall -c pkg-config --cflags libvsxu
addon.cpp
addon.cpp: In function ‘ADDON_STATUS ADDON_Create(void_, void_)’:
addon.cpp:51:12: error: ‘class vsx_manager_abs’ has no member named ‘set_gl_state’
manager->set_gl_state( &gl_state );
^
/usr/include/vsx_gl_state.h:46:3: error: ‘GL_NEVER’ was not declared in this scope
GL_NEVER,
^
/usr/include/vsx_gl_state.h:47:3: error: ‘GL_LESS’ was not declared in this scope
GL_LESS,
^
/usr/include/vsx_gl_state.h:48:3: error: ‘GL_EQUAL’ was not declared in this scope
GL_EQUAL,
^
/usr/include/vsx_gl_state.h:49:3: error: ‘GL_LEQUAL’ was not declared in this scope
GL_LEQUAL,
^
/usr/include/vsx_gl_state.h:50:3: error: ‘GL_GREATER’ was not declared in this scope
GL_GREATER,
^
/usr/include/vsx_gl_state.h:51:3: error: ‘GL_NOTEQUAL’ was not declared in this scope
GL_NOTEQUAL,
^
/usr/include/vsx_gl_state.h:52:3: error: ‘GL_GEQUAL’ was not declared in this scope
GL_GEQUAL,
^
/usr/include/vsx_gl_state.h:53:3: error: ‘GL_ALWAYS’ was not declared in this scope
GL_ALWAYS
^
/usr/include/vsx_gl_state.h:69:3: error: ‘GL_AMBIENT’ was not declared in this scope
GL_AMBIENT,
^
/usr/include/vsx_gl_state.h:70:3: error: ‘GL_DIFFUSE’ was not declared in this scope
GL_DIFFUSE,
^
/usr/include/vsx_gl_state.h:71:3: error: ‘GL_SPECULAR’ was not declared in this scope
GL_SPECULAR,
^
/usr/include/vsx_gl_state.h:72:3: error: ‘GL_EMISSION’ was not declared in this scope
GL_EMISSION,
^
/usr/include/vsx_gl_state.h:73:3: error: ‘GL_SHININESS’ was not declared in this scope
GL_SHININESS
^
/usr/include/vsx_gl_state.h:85:5: error: ‘GL_PROJECTION’ was not declared in this scope
GL_PROJECTION,
^
/usr/include/vsx_gl_state.h:86:5: error: ‘GL_MODELVIEW’ was not declared in this scope
GL_MODELVIEW,
^
/usr/include/vsx_gl_state.h:87:5: error: ‘GL_TEXTURE’ was not declared in this scope
GL_TEXTURE
^
/usr/include/vsx_gl_state.h:118:3: error: ‘GL_ZERO’ was not declared in this scope
GL_ZERO,
^
/usr/include/vsx_gl_state.h:119:3: error: ‘GL_ONE’ was not declared in this scope
GL_ONE,
^
/usr/include/vsx_gl_state.h:120:3: error: ‘GL_SRC_COLOR’ was not declared in this scope
GL_SRC_COLOR,
^
/usr/include/vsx_gl_state.h:121:3: error: ‘GL_ONE_MINUS_SRC_COLOR’ was not declared in this scope
GL_ONE_MINUS_SRC_COLOR,
^
/usr/include/vsx_gl_state.h:122:3: error: ‘GL_DST_COLOR’ was not declared in this scope
GL_DST_COLOR,
^
/usr/include/vsx_gl_state.h:123:3: error: ‘GL_ONE_MINUS_DST_COLOR’ was not declared in this scope
GL_ONE_MINUS_DST_COLOR,
^
/usr/include/vsx_gl_state.h:124:3: error: ‘GL_SRC_ALPHA’ was not declared in this scope
GL_SRC_ALPHA,
^
/usr/include/vsx_gl_state.h:125:3: error: ‘GL_ONE_MINUS_SRC_ALPHA’ was not declared in this scope
GL_ONE_MINUS_SRC_ALPHA,
^
/usr/include/vsx_gl_state.h:126:3: error: ‘GL_DST_ALPHA’ was not declared in this scope
GL_DST_ALPHA,
^
/usr/include/vsx_gl_state.h:127:3: error: ‘GL_ONE_MINUS_DST_ALPHA’ was not declared in this scope
GL_ONE_MINUS_DST_ALPHA,
^
/usr/include/vsx_gl_state.h:128:3: error: ‘GL_CONSTANT_COLOR’ was not declared in this scope
GL_CONSTANT_COLOR,
^
/usr/include/vsx_gl_state.h:129:3: error: ‘GL_ONE_MINUS_CONSTANT_COLOR’ was not declared in this scope
GL_ONE_MINUS_CONSTANT_COLOR,
^
/usr/include/vsx_gl_state.h:130:3: error: ‘GL_CONSTANT_ALPHA’ was not declared in this scope
GL_CONSTANT_ALPHA,
^
/usr/include/vsx_gl_state.h:131:3: error: ‘GL_ONE_MINUS_CONSTANT_ALPHA’ was not declared in this scope
GL_ONE_MINUS_CONSTANT_ALPHA,
^
/usr/include/vsx_gl_state.h:132:3: error: ‘GL_SRC_ALPHA_SATURATE’ was not declared in this scope
GL_SRC_ALPHA_SATURATE,
^
/usr/include/vsx_gl_state.h:133:3: error: ‘GL_SRC1_COLOR’ was not declared in this scope
GL_SRC1_COLOR,
^
/usr/include/vsx_gl_state.h:134:3: error: ‘GL_ONE_MINUS_SRC1_COLOR’ was not declared in this scope
GL_ONE_MINUS_SRC1_COLOR,
^
/usr/include/vsx_gl_state.h:135:3: error: ‘GL_SRC1_ALPHA’ was not declared in this scope
GL_SRC1_ALPHA,
^
/usr/include/vsx_gl_state.h:136:3: error: ‘GL_ONE_MINUS_SRC1_ALPHA’ was not declared in this scope
GL_ONE_MINUS_SRC1_ALPHA
^
/usr/include/vsx_gl_state.h:149:3: error: ‘GL_POINT’ was not declared in this scope
GL_POINT,
^
/usr/include/vsx_gl_state.h:150:3: error: ‘GL_LINE’ was not declared in this scope
GL_LINE,
^
/usr/include/vsx_gl_state.h:151:3: error: ‘GL_FILL’ was not declared in this scope
GL_FILL
^
/usr/include/vsx_gl_state.h: In member function ‘void vsx_gl_state::framebuffer_bind(unsigned int)’:
/usr/include/vsx_gl_state.h:180:26: error: ‘GL_FRAMEBUFFER_EXT’ was not declared in this scope
glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, id);
^
/usr/include/vsx_gl_state.h:180:48: error: ‘glBindFramebufferEXT’ was not declared in this scope
glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, id);
^
/usr/include/vsx_gl_state.h: In member function ‘void vsx_gl_state::point_size_set(float)’:
/usr/include/vsx_gl_state.h:208:30: error: ‘glPointSize’ was not declared in this scope
glPointSize( line_width );
^
/usr/include/vsx_gl_state.h: In member function ‘void vsx_gl_state::line_width_set(float)’:
/usr/include/vsx_gl_state.h:235:30: error: ‘glLineWidth’ was not declared in this scope
glLineWidth( line_width );
^
/usr/include/vsx_gl_state.h: In member function ‘void vsx_gl_state::depth_mask_set(int, bool)’:
/usr/include/vsx_gl_state.h:272:20: error: ‘GL_TRUE’ was not declared in this scope
glDepthMask( GL_TRUE );
^
/usr/include/vsx_gl_state.h:272:28: error: ‘glDepthMask’ was not declared in this scope
glDepthMask( GL_TRUE );
^
/usr/include/vsx_gl_state.h:275:20: error: ‘GL_FALSE’ was not declared in this scope
glDepthMask( GL_FALSE );
^
/usr/include/vsx_gl_state.h:275:29: error: ‘glDepthMask’ was not declared in this scope
glDepthMask( GL_FALSE );
^
/usr/include/vsx_gl_state.h: In member function ‘void vsx_gl_state::depth_test_set(int, bool)’:
/usr/include/vsx_gl_state.h:297:16: error: ‘GL_DEPTH_TEST’ was not declared in this scope
glEnable(GL_DEPTH_TEST);
^
/usr/include/vsx_gl_state.h:297:29: error: ‘glEnable’ was not declared in this scope
glEnable(GL_DEPTH_TEST);
^
/usr/include/vsx_gl_state.h:300:17: error: ‘GL_DEPTH_TEST’ was not declared in this scope
glDisable(GL_DEPTH_TEST);
^
/usr/include/vsx_gl_state.h:300:30: error: ‘glDisable’ was not declared in this scope
glDisable(GL_DEPTH_TEST);
^
/usr/include/vsx_gl_state.h: In member function ‘void vsx_gl_state::depth_function_set(int)’:
/usr/include/vsx_gl_state.h:322:54: error: ‘glDepthFunc’ was not declared in this scope
glDepthFunc( gl_depth_functions[depth_function] );
^
/usr/include/vsx_gl_state.h: In member function ‘void vsx_gl_state::polygon_mode_set(int, int)’:
/usr/include/vsx_gl_state.h:352:7: error: ‘glPolygonMode’ was not declared in this scope
);
^
/usr/include/vsx_gl_state.h: In member function ‘void vsx_gl_state::blend_set(int)’:
/usr/include/vsx_gl_state.h:387:16: error: ‘GL_BLEND’ was not declared in this scope
glEnable(GL_BLEND);
^
/usr/include/vsx_gl_state.h:387:24: error: ‘glEnable’ was not declared in this scope
glEnable(GL_BLEND);
^
/usr/include/vsx_gl_state.h:390:17: error: ‘GL_BLEND’ was not declared in this scope
glDisable(GL_BLEND);
^
/usr/include/vsx_gl_state.h:390:25: error: ‘glDisable’ was not declared in this scope
glDisable(GL_BLEND);
^
/usr/include/vsx_gl_state.h: In member function ‘void vsx_gl_state::blend_color_set(float, float, float, float)’:
/usr/include/vsx_gl_state.h:418:10: error: ‘GLEW_EXT_blend_color’ was not declared in this scope
if (!GLEW_EXT_blend_color) return;
^
/usr/include/vsx_gl_state.h:424:5: error: ‘glBlendColor’ was not declared in this scope
);
^
/usr/include/vsx_gl_state.h: In member function ‘void vsx_gl_state::blend_func(int, int)’:
/usr/include/vsx_gl_state.h:438:5: error: ‘glBlendFunc’ was not declared in this scope
);
^
/usr/include/vsx_gl_state.h: In member function ‘void vsx_gl_state::material_set_fv(int, int, float)’:
/usr/include/vsx_gl_state.h:498:5: error: ‘glMaterialfv’ was not declared in this scope
);
^
/usr/include/vsx_gl_state.h: In member function ‘void vsx_gl_state::material_set_default()’:
/usr/include/vsx_gl_state.h:534:9: error: ‘GL_FRONT’ was not declared in this scope
GL_FRONT,
^
/usr/include/vsx_gl_state.h:535:9: error: ‘GL_AMBIENT’ was not declared in this scope
GL_AMBIENT,
^
/usr/include/vsx_gl_state.h:537:7: error: ‘glMaterialfv’ was not declared in this scope
);
^
/usr/include/vsx_gl_state.h:539:9: error: ‘GL_BACK’ was not declared in this scope
GL_BACK,
^
/usr/include/vsx_gl_state.h:547:9: error: ‘GL_DIFFUSE’ was not declared in this scope
GL_DIFFUSE,
^
/usr/include/vsx_gl_state.h:559:9: error: ‘GL_SPECULAR’ was not declared in this scope
GL_SPECULAR,
^
/usr/include/vsx_gl_state.h:571:9: error: ‘GL_EMISSION’ was not declared in this scope
GL_EMISSION,
^
/usr/include/vsx_gl_state.h:583:9: error: ‘GL_SHININESS’ was not declared in this scope
GL_SHININESS,
^
/usr/include/vsx_gl_state.h: In member function ‘void vsx_gl_state::viewport_set(int, int, int, int)’:
/usr/include/vsx_gl_state.h:710:25: error: ‘glViewport’ was not declared in this scope
glViewport(x0,y0,w,h);
^
/usr/include/vsx_gl_state.h: In member function ‘void vsx_gl_state::viewport_set(int)’:
/usr/include/vsx_gl_state.h:727:55: error: ‘glViewport’ was not declared in this scope
glViewport(values[0],values[1],values[2],values[3]);
^
/usr/include/vsx_gl_state.h: In member function ‘void vsx_gl_state::matrix_load_identities()’:
/usr/include/vsx_gl_state.h:773:18: error: ‘GL_PROJECTION’ was not declared in this scope
glMatrixMode(GL_PROJECTION);
^
/usr/include/vsx_gl_state.h:773:31: error: ‘glMatrixMode’ was not declared in this scope
glMatrixMode(GL_PROJECTION);
^
/usr/include/vsx_gl_state.h:774:20: error: ‘glLoadIdentity’ was not declared in this scope
glLoadIdentity();
^
/usr/include/vsx_gl_state.h:776:18: error: ‘GL_MODELVIEW’ was not declared in this scope
glMatrixMode(GL_MODELVIEW);
^
/usr/include/vsx_gl_state.h:779:18: error: ‘GL_TEXTURE’ was not declared in this scope
glMatrixMode(GL_TEXTURE);
^
/usr/include/vsx_gl_state.h: In member function ‘void vsx_gl_state::matrix_mode(int)’:
/usr/include/vsx_gl_state.h:793:50: error: ‘glMatrixMode’ was not declared in this scope
glMatrixMode(gl_matrix_modes[i_matrix_mode]);
^
/usr/include/vsx_gl_state.h: In member function ‘void vsx_gl_state::matrix_load_identity()’:
/usr/include/vsx_gl_state.h:801:22: error: ‘glLoadIdentity’ was not declared in this scope
glLoadIdentity();
^
/usr/include/vsx_gl_state.h: In member function ‘void vsx_gl_state::matrix_push()’:
/usr/include/vsx_gl_state.h:811:20: error: ‘glPushMatrix’ was not declared in this scope
glPushMatrix();
^
/usr/include/vsx_gl_state.h: In member function ‘void vsx_gl_state::matrix_pop()’:
/usr/include/vsx_gl_state.h:822:19: error: ‘glPopMatrix’ was not declared in this scope
glPopMatrix();
^
/usr/include/vsx_gl_state.h: In member function ‘void vsx_gl_state::matrix_scale_f(float, float, float, bool)’:
/usr/include/vsx_gl_state.h:847:22: error: ‘glLoadIdentity’ was not declared in this scope
glLoadIdentity();
^
/usr/include/vsx_gl_state.h:848:49: error: ‘glMultMatrixf’ was not declared in this scope
glMultMatrixf(core_matrix[i_matrix_mode].m);
^
/usr/include/vsx_gl_state.h: In member function ‘void vsx_gl_state::matrix_translate_f(float, float, float, bool)’:
/usr/include/vsx_gl_state.h:874:22: error: ‘glLoadIdentity’ was not declared in this scope
glLoadIdentity();
^
/usr/include/vsx_gl_state.h:875:49: error: ‘glMultMatrixf’ was not declared in this scope
glMultMatrixf(core_matrix[i_matrix_mode].m);
^
/usr/include/vsx_gl_state.h: In member function ‘void vsx_gl_state::matrix_rotate_f(float, float, float, float)’:
/usr/include/vsx_gl_state.h:930:22: error: ‘glLoadIdentity’ was not declared in this scope
glLoadIdentity();
^
/usr/include/vsx_gl_state.h:931:49: error: ‘glMultMatrixf’ was not declared in this scope
glMultMatrixf(core_matrix[i_matrix_mode].m);
^
/usr/include/vsx_gl_state.h: In member function ‘void vsx_gl_state::matrix_mult_f(float)’:
/usr/include/vsx_gl_state.h:941:22: error: ‘glLoadIdentity’ was not declared in this scope
glLoadIdentity();
^
/usr/include/vsx_gl_state.h:942:51: error: ‘glMultMatrixf’ was not declared in this scope
glMultMatrixf( core_matrix[i_matrix_mode].m );
^
/usr/include/vsx_gl_state.h: In member function ‘void vsx_gl_state::matrix_ortho(double, double, double, double, double, double)’:
/usr/include/vsx_gl_state.h:982:29: error: ‘glMultMatrixf’ was not declared in this scope
glMultMatrixf(m_temp.m);
^
/usr/include/vsx_gl_state.h: In member function ‘void vsx_gl_state::matrix_frustum(double, double, double, double, double, double)’:
/usr/include/vsx_gl_state.h:1018:29: error: ‘glMultMatrixf’ was not declared in this scope
glMultMatrixf(m_temp.m);
^
/usr/include/vsx_gl_state.h: In member function ‘void vsx_gl_state::matrix_glu_perspective(double, double, double, double)’:
/usr/include/vsx_gl_state.h:1084:22: error: ‘glLoadIdentity’ was not declared in this scope
glLoadIdentity();
^
/usr/include/vsx_gl_state.h:1085:51: error: ‘glMultMatrixf’ was not declared in this scope
glMultMatrixf( core_matrix[i_matrix_mode].m );
^
/usr/include/vsx_gl_state.h: In member function ‘void vsx_gl_state::matrix_glu_lookat(float, float, float, float, float, float, float, float, float)’:
/usr/include/vsx_gl_state.h:1155:22: error: ‘glLoadIdentity’ was not declared in this scope
glLoadIdentity();
^
/usr/include/vsx_gl_state.h:1156:49: error: ‘glMultMatrixf’ was not declared in this scope
glMultMatrixf(core_matrix[i_matrix_mode].m);
^
addon.cpp: In function ‘ADDON_STATUS ADDON_Create(void_, void_)’:
addon.cpp:51:12: error: ‘class vsx_manager_abs’ has no member named ‘set_gl_state’
manager->set_gl_state( &gl_state );
^
make: *_* [addon.o] Error 1
Here is the 64bit issue.
make
g++ -fPIC -Wall -c pkg-config --cflags libvsxu
addon.cpp
addon.cpp: In function ‘ADDON_STATUS ADDON_Create(void_, void_)’:
addon.cpp:51:12: error: ‘class vsx_manager_abs’ has no member named ‘set_gl_state’
manager->set_gl_state( &gl_state );