Success - finally

With this patch [1] I was able to install https://github.com/tpaviot/oce/archive/OCE-0.12.tar.gz. I've also seen that later versions this issue was fixed (they build without problems).

smesh, geom, pythonocc compiled, and with some little hackery (TKOpenGL) due to nixos
being different I can run both qt_demo.py and wx_demo.py :)

Thanks so much for giving the hint about which versions to use.

I'll contribute a build recipe for nixos linux soon (after tidying up).

[1]

diff --git a/inc/OpenGl_glext.h b/inc/OpenGl_glext.h
index d1fb445..56258b7 100644
--- a/inc/OpenGl_glext.h
+++ b/inc/OpenGl_glext.h
@@ -5563,7 +5563,7 @@ typedef void (APIENTRY *GLDEBUGPROCAMD)(GLuint id,GLenum category,GLenum severit
 typedef GLintptr GLvdpauSurfaceNV;
 #endif

-#ifndef GL_VERSION_1_2
+// #ifndef GL_VERSION_1_2
 #define GL_VERSION_1_2 1
 #ifdef GL_GLEXT_PROTOTYPES
GLAPI void APIENTRY glBlendColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha); @@ -5579,7 +5579,7 @@ typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSPROC) (GLenum mode, GLuint start, typedef void (APIENTRYP PFNGLTEXIMAGE3DPROC) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels); typedef void (APIENTRYP PFNGLTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels); typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
-#endif
+// #endif

 #ifndef GL_VERSION_1_2_DEPRECATED
 #define GL_VERSION_1_2_DEPRECATED 1


_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org
https://mail.gna.org/listinfo/pythonocc-users

Reply via email to