Thread: [wxVTK] still problems on MAC
Brought to you by:
malat
|
From: genesy g. <ge...@gm...> - 2008-10-21 16:14:59
|
I tried the latest version (the Rez attempt) you committed but nothing is changed. When I launch the wxSample application I see a grey window and nothing else. Any Idea ? :-) p.s. there is a typo in the CMakeList file: the lines referring to SRCS_VTKNotebook have been stripped. G. |
|
From: Mathieu M. <mat...@gm...> - 2008-10-21 16:18:12
|
On Tue, Oct 21, 2008 at 6:14 PM, genesy genesy <ge...@gm...> wrote: > I tried the latest version (the Rez attempt) you committed but nothing > is changed. > When I launch the wxSample application I see a grey window and nothing else. > Any Idea ? :-) ok do that for me: $ make clean $ make wxVTKSample VERBOSE=1 >& matt.log and send me the matt.log file. > p.s. there is a typo in the CMakeList file: the lines referring to > SRCS_VTKNotebook have been stripped. Hu ? Where did you see that ? http://wxvtk.cvs.sf.net/viewvc/wxvtk/wxVTK/CMakeLists.txt?r1=1.33&r2=1.34 The line are still there, simply not compiled since it require a more recent VTK version ... -- Mathieu |
|
From: Mathieu M. <mat...@gm...> - 2008-10-21 22:06:22
|
On Tue, Oct 21, 2008 at 6:50 PM, genesy genesy <ge...@gm...> wrote: > 2008/10/21 Mathieu Malaterre <mat...@gm...>: >> On Tue, Oct 21, 2008 at 6:14 PM, genesy genesy <ge...@gm...> wrote: >>> I tried the latest version (the Rez attempt) you committed but nothing >>> is changed. >>> When I launch the wxSample application I see a grey window and nothing else. >>> Any Idea ? :-) >> >> >> ok do that for me: >> >> $ make clean >> $ make wxVTKSample VERBOSE=1 >& matt.log >> > > done ok looks fine. And when you execute: $ /Users/xael/wxVTK_latest/wxVTK/build/bin/wxSample do you see any error message ? It starts ok, but interaction (mouse/keyboard are not working: try 'w') >> and send me the matt.log file. >> >>> p.s. there is a typo in the CMakeList file: the lines referring to >>> SRCS_VTKNotebook have been stripped. >> >> Hu ? Where did you see that ? >> >> http://wxvtk.cvs.sf.net/viewvc/wxvtk/wxVTK/CMakeLists.txt?r1=1.33&r2=1.34 >> >> The line are still there, simply not compiled since it require a more >> recent VTK version ... >> > > you' right but > this is the error I still get from cmake: > ******************** > CMake Error at CMakeLists.txt:141 (ADD_EXECUTABLE): > add_executable called with incorrect number of arguments, no sources > provided > ******************** Sorry about that... $ cvs ci -m"COMP: fix comp thanks to genesy genesy for report" CMakeLists.txt ~/Projects/wxVTK Checking in CMakeLists.txt; /cvsroot/wxvtk/wxVTK/CMakeLists.txt,v <-- CMakeLists.txt new revision: 1.36; previous revision: 1.35 done Mailing wxv...@li...... Generating notification message... Generating notification message... done. Thanks -- Mathieu |
|
From: genesy g. <ge...@gm...> - 2008-10-22 08:05:34
|
Hi ... > > ok looks fine. And when you execute: > > $ /Users/xael/wxVTK_latest/wxVTK/build/bin/wxSample > /Users/xael/wxVTK_latest/wxVTK/build/bin/wxSample is an empty file. I ran the executable in the boundle /Users/xael/wxVTK_latest/wxVTK/build/bin/wxSample.app/Contents/MacOS/wxSample. When I move the mouse holding the mouse button + CTRL I get this error : ERROR: In /Users/xael/VTK/Rendering/vtkInteractorStyleJoystickCamera.cxx, line 315 vtkInteractorStyleJoystickCamera (0x2435ac0): Bad zoom factor encountered Nothing happens with "w". bye MacOsX 10.4 G. |
|
From: Mathieu M. <mat...@gm...> - 2008-10-22 08:19:39
|
On Wed, Oct 22, 2008 at 10:05 AM, genesy genesy <ge...@gm...> wrote:
> Hi
>
> ...
>>
>> ok looks fine. And when you execute:
>>
>> $ /Users/xael/wxVTK_latest/wxVTK/build/bin/wxSample
>>
>
> /Users/xael/wxVTK_latest/wxVTK/build/bin/wxSample is an empty file.
> I ran the executable in the boundle
> /Users/xael/wxVTK_latest/wxVTK/build/bin/wxSample.app/Contents/MacOS/wxSample.
ok then. Please try:
$ /Developer/Tools/Rez Carbon.r -o
/Users/xael/wxVTK_latest/wxVTK/build/bin/wxSample.app/Contents/MacOS/wxSample
then rerun your app.
> When I move the mouse holding the mouse button + CTRL I get this error :
>
> ERROR: In /Users/xael/VTK/Rendering/vtkInteractorStyleJoystickCamera.cxx,
> line 315
> vtkInteractorStyleJoystickCamera (0x2435ac0): Bad zoom factor encountered
hum... so that means mouse interaction are working fine... since we
are in the VTK layer...
> Nothing happens with "w".
none of the usual interaction works either ? ('t','p','f' ...)
--
Mathieu
|
|
From: Mathieu M. <mat...@gm...> - 2008-10-22 08:32:21
|
On Wed, Oct 22, 2008 at 10:25 AM, genesy genesy <ge...@gm...> wrote:
>> ok then. Please try:
>>
>> $ /Developer/Tools/Rez Carbon.r -o
>> /Users/xael/wxVTK_latest/wxVTK/build/bin/wxSample.app/Contents/MacOS/wxSample
>>
>> then rerun your app.
>>
>
> I used the Rez command as you suggested and I ran the application.
>
> ..
>>
>> none of the usual interaction works either ? ('t','p','f' ...)
>>
>
> pressing 'p' I get :
>
> ERROR: In /Users/xael/VTK/Rendering/vtkPicker.cxx, line 170
> vtkCellPicker (0x2435270): Bad homogeneous coordinates
So it does confirm the interactions are working properly. At least it
is going from the system to wx to VTK. There is something else going
on. You need to debug the application (gdb) to understand why the
object is not moving. But you have *everything* to have it working
AFAIK.
2cts
--
Mathieu
|
|
From: Mathieu M. <mat...@gm...> - 2008-10-22 13:08:21
|
Hi, On Wed, Oct 22, 2008 at 10:52 AM, genesy genesy <ge...@gm...> wrote: >>> ERROR: In /Users/xael/VTK/Rendering/vtkPicker.cxx, line 170 >>> vtkCellPicker (0x2435270): Bad homogeneous coordinates >> >> So it does confirm the interactions are working properly. At least it >> is going from the system to wx to VTK. There is something else going >> on. You need to debug the application (gdb) to understand why the >> object is not moving. > > Maybe it's helpful: the object is not rendered at all . A grey window > is visualized. I understand that, but I am working only on linux. I have no way to reproduce your issue. This goes beyond my understanding. Since I believe the issue can be reproduce using straight Cocoa + VTK, I would suggest you try the regular VTK example, debug them until you get them working. I've CC the vtkusers lists, where there are a lot more people using mac (and hopefully understanding your issue.) Good luck; -- Mathieu |
|
From: Doug M. <mc...@ia...> - 2008-10-26 22:52:08
|
On Oct 22, 2008, at 8:08 AM, Mathieu Malaterre wrote: > Hi, > > On Wed, Oct 22, 2008 at 10:52 AM, genesy genesy <ge...@gm...> > wrote: >>>> ERROR: In /Users/xael/VTK/Rendering/vtkPicker.cxx, line 170 >>>> vtkCellPicker (0x2435270): Bad homogeneous coordinates >>> >>> So it does confirm the interactions are working properly. At least >>> it >>> is going from the system to wx to VTK. There is something else going >>> on. You need to debug the application (gdb) to understand why the >>> object is not moving. >> >> Maybe it's helpful: the object is not rendered at all . A grey window >> is visualized. > > > I understand that, but I am working only on linux. I have no way to > reproduce your issue. This goes beyond my understanding. Since I > believe the issue can be reproduce using straight Cocoa + VTK, I would > suggest you try the regular VTK example, debug them until you get them > working. > > I've CC the vtkusers lists, where there are a lot more people using > mac (and hopefully understanding your issue.) The only way I have been able to get wxVTK to work on Mac is with VTK compiled with Carbon support. This is required since wxWidgets does not have strong Cocoa support yet. I know it is in the works and available but is not as robust as their Carbon support. Doug |
|
From: Nigel N. <nn...@gm...> - 2008-10-27 06:26:02
|
On 10/27/08, Doug McCorkle <mc...@ia...> wrote: > The only way I have been able to get wxVTK to work on Mac is with VTK > compiled with Carbon support. This is required since wxWidgets does > not have strong Cocoa support yet. I know it is in the works and > available but is not as robust as their Carbon support. For those with an interest in Macs, there is helpful discussion here: http://wiki.wxwidgets.org/Development:_wxMac Sounds like the wx team are evolving wxOSX to accommodate full support for future Apple operating systems (i.e. by moving Cocoa code into wxOSX rather than extending wxMac). For current projects, as Doug suggests, just use the stable Carbon version. Nigel |