[MacPorts] #18886: vtk5, tcl, cocoa, and x11 troubles
#18886: vtk5, tcl, cocoa, and x11 troubles -------------------------------+-------------------------------------------- Reporter: jjstickel@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: tcl x11 | Port: vtk5 -------------------------------+-------------------------------------------- This is a bit convoluted, but please bear with me. First of all, vtk5+x11 (using macports x11 libs) produces a bus error for me on Tiger when I try to run any VTK program (c++ compiled or wrapped script). I think this is due to mixed use of macports x11 libraries with apple opengl. It works OK if I use apple X11, but I have not figured out how to force that using macports. Next I tried using cocoa rendering (-x11). However,, the tcl wrapping of vtk using cocoa does not support all features, most notably interaction. Please see: http://www.nabble.com/-Probably-repetitive--Tcl-VTK-under-OSX-10.5.4 -mouse-keyboard-events--td19269476.html The solution is to use x11 for both tcl/tk and vtk, but as noted above this fails on Tiger. Luckily, python and cocoa rendering seem to work fine together. Suggestions/requests: 1. I have provided a patch to the portfile that provides a tcl variant. Since tcl does not fully work without x11, I think this is useful. 2. Perhaps the x11 variant should be forced, or at least recommended, if the tcl variant is selected. 3. I would appreciate any help getting x11 rendering to work on Tiger. -- Ticket URL: <http://trac.macports.org/ticket/18886> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18886: vtk5, tcl, cocoa, and x11 troubles -------------------------------+-------------------------------------------- Reporter: jjstickel@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: tcl x11 | Port: vtk5 -------------------------------+-------------------------------------------- Comment(by jjstickel@…): OK, I was able to adjust the Portfile to use apple X11 (see attached 2nd attached portfile patch). Now +x11 works fine for me. However, there is something else strange that I encountered: I vtk fails to build with +x11 -tcl +python, with the error: {{{ [ 68%] Building CXX object Graphics/CMakeFiles/vtkGraphicsPythonD.dir/vtkMultiBlockMergeFilterPython.o ld: Undefined symbols: _Tk_PhotoSetSize_Panic /usr/libexec/gcc/i686-apple-darwin8/4.0.1/libtool: internal link edit command failed make[2]: *** [bin/libvtkRenderingPythonTkWidgets.5.2.1.dylib] Error 1 make[1]: *** [Rendering/CMakeFiles/vtkRenderingPythonTkWidgets.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [ 68%] Building CXX object Graphics/CMakeFiles/vtkGraphicsPythonD.dir/vtkMultiThresholdPython.o }}} However, +x11 +tcl +python works fine, as does -x11 -tcl +python. -- Ticket URL: <http://trac.macports.org/ticket/18886#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18886: vtk5, tcl, cocoa, and x11 troubles ------------------------------+--------------------------------------------- Reporter: jjstickel@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Component: ports Version: 1.7.0 | Keywords: tcl x11 Port: vtk5 | ------------------------------+--------------------------------------------- Comment(by jjstickel@…): A lot of this was resolved by ticket #19111. I am still having trouble with the x11 and opengl libraries (on Tiger), but I will report that separately. This ticket can be closed. -- Ticket URL: <http://trac.macports.org/ticket/18886#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18886: vtk5, tcl, cocoa, and x11 troubles --------------------------------+------------------------------------------- Reporter: jjstickel@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.7.0 Resolution: duplicate | Keywords: tcl x11 Port: vtk5 | --------------------------------+------------------------------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => duplicate Old description:
This is a bit convoluted, but please bear with me. First of all, vtk5+x11 (using macports x11 libs) produces a bus error for me on Tiger when I try to run any VTK program (c++ compiled or wrapped script). I think this is due to mixed use of macports x11 libraries with apple opengl. It works OK if I use apple X11, but I have not figured out how to force that using macports.
Next I tried using cocoa rendering (-x11). However,, the tcl wrapping of vtk using cocoa does not support all features, most notably interaction. Please see:
http://www.nabble.com/-Probably-repetitive--Tcl-VTK-under-OSX-10.5.4 -mouse-keyboard-events--td19269476.html
The solution is to use x11 for both tcl/tk and vtk, but as noted above this fails on Tiger.
Luckily, python and cocoa rendering seem to work fine together.
Suggestions/requests: 1. I have provided a patch to the portfile that provides a tcl variant. Since tcl does not fully work without x11, I think this is useful. 2. Perhaps the x11 variant should be forced, or at least recommended, if the tcl variant is selected. 3. I would appreciate any help getting x11 rendering to work on Tiger.
New description: This is a bit convoluted, but please bear with me. First of all, vtk5+x11 (using macports x11 libs) produces a bus error for me on Tiger when I try to run any VTK program (c++ compiled or wrapped script). I think this is due to mixed use of macports x11 libraries with apple opengl. It works OK if I use apple X11, but I have not figured out how to force that using macports. Next I tried using cocoa rendering (-x11). However,, the tcl wrapping of vtk using cocoa does not support all features, most notably interaction. Please see: http://www.nabble.com/-Probably-repetitive--Tcl-VTK-under-OSX-10.5.4 -mouse-keyboard-events--td19269476.html The solution is to use x11 for both tcl/tk and vtk, but as noted above this fails on Tiger. Luckily, python and cocoa rendering seem to work fine together. Suggestions/requests: 1. I have provided a patch to the portfile that provides a tcl variant. Since tcl does not fully work without x11, I think this is useful. 2. Perhaps the x11 variant should be forced, or at least recommended, if the tcl variant is selected. 3. I would appreciate any help getting x11 rendering to work on Tiger. -- Comment: Closing as requested. -- Ticket URL: <http://trac.macports.org/ticket/18886#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts