Hi Cody,
Thanks for your reply.
Is the application written using x11 or an x11 based toolkit like gtk?
Its a little more low level than that.
Here's what's going on:
printf("Display3d class initialization starting ...\n");
short hi = static_cast<short>(window_handle >> 16);
short lo = static_cast<short>(window_handle);
// Create Graphic Device and Window
#ifdef WNT
gd = new Graphic3d_WNTGraphicDevice();
printf("WNT Graphic device created.\n");
myWindow = new WNT_Window( gd
,static_cast<Standard_Integer>(hi),static_cast<Standard_Integer>(lo));
printf("WNT window created.\n");
#else
# This is the case, since we're on osx
# its returning a X11 rather than aqua handle.
# hence, I'm curious to know whether WX can deal with this handle.
gd = new Graphic3d_GraphicDevice(std::getenv("DISPLAY"));
printf("Graphic device created.\n");
myWindow =new
Xw_Window(gd,static_cast<Standard_Integer>(hi),static_cast<Standard_Integer>\
(lo),Xw_WQ_SAMEQUAL
ITY);
printf("Xw_Window created.\n");
#endif
// Create V3dViewer and V3d_View
Now, the following link made me think about the above:
http://qtocc.wiki.sourceforge.net/opencascade_osx
At the paragraph "Compiling Qt Tutorial sample application" it states:
`At the moment, it seems to be impossible to use OpenCASCADE
outside of the X11 system. This implies that to use Qt, you need to
use the Qt/X11 version instead of the Qt/mac version`
Therefore, I'm thinking I should do something similar
when developing the WX gui.
Are you porting the application to wx (re-writing the ui)? If so then
there is no need to tell it to use x11 as it can use a regular mac ui.
Well that's the thing; OCC cannot run outside of the X11 enviroment.
If not, and its not written with wx then I guess I am a little
confused by your question and how this relates to wx...
Well, from what I've understood, QT has a mac native version,
as well as a X11 version. How does this map to WX?
Is there a X11 version of WX too?
Sorry if my question wasnt well formulated; this is new territory for me...
If its a regular x11 app then you should be able to just run it if you
have the x11 window manager app installed. Just use the python
installed from fink or macports instead of the mac installed one.
I've lost you here.
I've installed the X11.app, but why would I need to change interpreters for?
(XQuartz)
Thanks,
-jelle