I'm wondering if anyone may be able to help me with a compiling issue on Runar Tenfjor's gltools library?
i'm working on Ubuntu 12.04. I have Python 2.7.3, cython 0.7.13, and freeglut3 2.6.0-1 OpenGL headers installed. I've compiled and installed glfw 3.0 from the development branch on the Github site, compiled and installed geotools, and placed the geotools.pxd file in the gltools/gltools subdirectory. I then try to build gltools and get the following: _@_:/usr/src/gltools$ sudo python setup_build.py build running build running build_ext skipping 'gltools/gltools.cpp' Cython extension (up-to-date) building 'gltools' extension creating build creating build/temp.linux-x86_64-2.7 creating build/temp.linux-x86_64-2.7/gltools creating build/temp.linux-x86_64-2.7/gltools/@src creating build/temp.linux-x86_64-2.7/gltools/@contrib gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Igltools/@include -Igltools/@src -Igltools/@contrib -I/usr/include/python2.7 -c gltools/gltools.cpp -o build/temp.linux-x86_64-2.7/gltools/gltools.o -fpermissive cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default] gltools/gltools.cpp: In function ‘PyObject* newarrayobject(PyTypeObject*, Py_ssize_t, arraydescr*)’: gltools/gltools.cpp:1737:9: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] gltools/gltools.cpp: In function ‘int __pyx_pf_7gltools_6Window___init__(__pyx_obj_7gltools_Window*, int, int, PyObject*, int)’: gltools/gltools.cpp:5181:18: error: ‘GLFW_OPENGL_VERSION_MAJOR’ was not declared in this scope gltools/gltools.cpp:5190:18: error: ‘GLFW_OPENGL_VERSION_MINOR’ was not declared in this scope gltools/gltools.cpp: In function ‘PyObject* __pyx_f_7gltools_DrawElements(unsigned int, int, int, PyObject*, int)’: gltools/gltools.cpp:17030:74: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] gltools/@include/GLTools.h: At global scope: gltools/@include/GLTools.h:32:41: warning: ‘pglActiveTexture’ defined but not used [-Wunused-variable] gltools/@include/GLTools.h:33:41: warning: ‘pglGenBuffers’ defined but not used [-Wunused-variable] gltools/@include/GLTools.h:34:41: warning: ‘pglDeleteBuffers’ defined but not used [-Wunused-variable] gltools/@include/GLTools.h:35:41: warning: ‘pglCreateShader’ defined but not used [-Wunused-variable] gltools/@include/GLTools.h:36:41: warning: ‘pglShaderSource’ defined but not used [-Wunused-variable] gltools/@include/GLTools.h:37:41: warning: ‘pglCompileShader’ defined but not used [-Wunused-variable] gltools/@include/GLTools.h:38:41: warning: ‘pglGetShaderiv’ defined but not used [-Wunused-variable] gltools/@include/GLTools.h:39:41: warning: ‘pglGetShaderInfoLog’ defined but not used [-Wunused-variable] gltools/@include/GLTools.h:40:41: warning: ‘pglDeleteShader’ defined but not used [-Wunused-variable] gltools/@include/GLTools.h:41:41: warning: ‘pglCreateProgram’ defined but not used [-Wunused-variable] gltools/@include/GLTools.h:42:41: warning: ‘pglAttachShader’ defined but not used [-Wunused-variable] gltools/@include/GLTools.h:43:41: warning: ‘pglLinkProgram’ defined but not used [-Wunused-variable] gltools/@include/GLTools.h:44:41: warning: ‘pglUseProgram’ defined but not used [-Wunused-variable] gltools/@include/GLTools.h:45:41: warning: ‘pglGetProgramiv’ defined but not used [-Wunused-variable] gltools/@include/GLTools.h:46:41: warning: ‘pglGetProgramInfoLog’ defined but not used [-Wunused-variable] gltools/@include/GLTools.h:47:41: warning: ‘pglDeleteProgram’ defined but not used [-Wunused-variable] gltools/@include/GLTools.h:48:41: warning: ‘pglGetUniformLocation’ defined but not used [-Wunused-variable] gltools/@include/GLTools.h:49:41: warning: ‘pglUniform1i’ defined but not used [-Wunused-variable] gltools/@include/GLTools.h:50:41: warning: ‘pglUniform1f’ defined but not used [-Wunused-variable] gltools/@include/GLTools.h:51:41: warning: ‘pglUniform4f’ defined but not used [-Wunused-variable] gltools/@include/GLTools.h:52:41: warning: ‘pglUniformMatrix4fv’ defined but not used [-Wunused-variable] gltools/@include/GLTools.h:53:41: warning: ‘pglGetAttribLocation’ defined but not used [-Wunused-variable] gltools/@include/GLTools.h:54:41: warning: ‘pglBufferData’ defined but not used [-Wunused-variable] gltools/@include/GLTools.h:55:41: warning: ‘pglBindBuffer’ defined but not used [-Wunused-variable] gltools/@include/GLTools.h:56:41: warning: ‘pglBufferSubData’ defined but not used [-Wunused-variable] gltools/@include/GLTools.h:57:41: warning: ‘pglGetBufferParameteriv’ defined but not used [-Wunused-variable] gltools/@include/GLTools.h:58:41: warning: ‘pglEnableVertexAttribArray’ defined but not used [-Wunused-variable] gltools/@include/GLTools.h:59:41: warning: ‘pglVertexAttribPointer’ defined but not used [-Wunused-variable] Traceback :error: command 'gcc' failed with exit status 1 GLFW_OPENGL_VERSION_MAJOR and GLFW_OPENGL_VERSION_MINOR are defined as 2 and 1 respectively in GLFW.pxi. Unfortunately, I don't yet know enough about C++ and cython to remediate the missing declarations. -- Davis M. Marques t: 61 0418 450 194 e: dmarq....@gmail.com w: http://www.davismarques.com/
_______________________________________________ Pythonocc-users mailing list Pythonocc-users@gna.org https://mail.gna.org/listinfo/pythonocc-users