Again a thread on OSX.
--- I've started from the patches by Torsten Sadowski. I did, however, removed the COMP/XCOMP entry and manually applied it in OCC.XCOMP, since the automatic replacement seemed to change things it shouldn't have...
--- I've made a few additional corrections:
In ModelingAlgorithms.XCOMP, TKShHealing is required by TKOffset, but comes after it. This is also giving problems for the compilation of IGES in DataExchange.XCOMP. Changing the order solves it.
Additionally, I've corrected the <GL/gl.h> and <GL/glu.h> into <OpenGl/gl.h> and <OpenGl/glu.h> in src/OpenGL/OpenGL_polygon.c and src/OpenGL/OpenGL_polygonholes.c. This gave warnings but TKOpenGL did link.
--- I was then able to compile OpenCASCADE and generate the libraries. In order to run DRAWEXE, I had to go to X11, call "source env.ksh" to set up the environment variables (not inherited from regular OSX environment variables) and set the environment variable DISPLAY=":0.0".
This allows me to run DRAWEXE. I get the windows and the menu's seem to work.
Is it true that you must use tk/tcl from X11? Can you avoid X11 and use only Aqua?
And additionally, do you need to use the Qt/X11 library for the samples? Or would it work with the Qt/mac library? I'm currently using Qt4, but if you have any idea on how it works for Qt3, this could also be helpful.
unluckily you have to use X11. If you look into View.cxx from the Qt samples you will see: