[vtkusers] [Re] vtk 4.2 (carbon) on MacOS X Tiger doesn't work

Charlie Thornton thornton at thunderheadeng.com
Fri Jun 24 09:46:13 EDT 2005


I was able to eventually get a 4.2 derivative of VTK+Java+Tiger almost
working (there is evidently a video card bug I'm still fighting).  I fixed
some trivial compiler errors and did the following:

- use the 3.3 compiler: c++-3.3
- use Cocoa not carbon (though I didn't fully explore carbon)
- when the build breaks on NSObject.h add the CXXFLAG -ObjC++ (not before)
- in vtkJavaAwt.h:
	Change "JAWT_MacDrawingSurfaceInfo" -->
"JAWTMacOSXDrawingSurfaceInfo"
	Change "fQDWindow" --> "cocoaViewRef"
- Apply Eugene Kim's fixes for Java Wrapping on OSX (to get things to show
up)
- in the SetWindowId(void*) function of vtkCocoaRenderWindow, only set the
WindowId if the ContextId is NULL, otherwise just add the current WindowId
(a vtkCocoaWindow) as a subview of the one that got passed in (a
NSViewAWT?).

Good luck!  If you do get it working, I'd like to hear your story.

- Charlie Thornton
thornton at thunderheadeng.com

-----Original Message-----
From: vtkusers-bounces+thornton=thunderheadeng.com at vtk.org
[mailto:vtkusers-bounces+thornton=thunderheadeng.com at vtk.org] On Behalf Of
Nono BEZMan
Sent: Thursday, June 23, 2005 5:54 PM
To: vtkusers at vtk.org
Subject: [vtkusers] [Re] vtk 4.2 (carbon) on MacOS X Tiger doesn't work

Sean,

It indeed looks like I might need luck, and a lot ;-(

I have tried to compile cvs VTK with Tiger (and Java
wrapping) for months now to no avail.

Your comments brought hope, but unfortunately I am
stuck again with one of the old bugs coming from using
gcc 4.0 (your message suggested that it should have
compiled fine with gcc 4.0, so I remove the hack from
CMakeDefaultMakeRuleVariables.cmake):

/usr/lib/gcc/powerpc-apple-darwin8/4.0.0/libgcc.a(_divdi3.o)
private external definition of ___divdi3 in section
(__TEXT,__text)
/usr/lib/gcc/powerpc-apple-darwin8/4.0.0/libgcc_s.dylib(_divdi3.o)
definition of ___divdi3


I will try to change the
CMakeDefaultMakeRuleVariables.cmake again (and add the

AND NOT APPLE hack) to where I go, but I do think I
will be stuck with a bunch of compile error again.

Sean, if you happen to have some libs for Mac (of the
cvs version), using Carbon (and hopefully Java), I'll
take them as I am quite desperate to see anything work
on Mac any day soon.

Otherwise, how do you precisely go about compiling it
under Tiger: do you midify the vtkJavaAwt.h, the
CMakeDefaultMakeRuleVariables.cmake, etc..???? 

Thanks very much for your contribution.


> > From: P Bai <apbai at yahoo.com>
> To: vtkusers at vtk.org
> Date: Wed, 22 Jun 2005 10:46:26 -0700 (PDT)
> Subject: [vtkusers] vtk 4.2 (carbon) on MacOS X
> Tiger doesn't work
> 
> Hi!
> 
> I was trying vtk 4.2 Carbon on MacOs X Tiger. I have
> to use Carbon because the gui tool I'm using need
> Carbon. Here's what I got - 
> 
> -No problem compiling and running the sample code
> with
> vtk 4.2 Cocoa (but that's not what I want!)
> -With gcc 4.0, the Carbon source code doesn't
> compile.
> 
> -With gcc 3.3, the Carbon source compiled fine. But
> when I run the Rendering Cxx sample, it doesn't
> work.
> The window showed up but with nothing in it. And I
> was
> unable to even move the window.
> -Tried 4.4 source code, same problem.
> 
> So I wonder if anyone had any luck getting it work?
> If
> so, can you tell me what you did?
> 
> Thanks and have a good day!
> 
> PB
> 
> 
> 
> 		
> ____________________________________________________
> 
> Yahoo! Sports 
> Rekindle the Rivalries. Sign up for Fantasy Football
> 
> http://football.fantasysports.yahoo.com
> 
> > From: "Sean McBride" <sean at rogue-research.com>
> CC: 
> To: "P Bai" <apbai at yahoo.com>, <vtkusers at vtk.org>
> Date: Wed, 22 Jun 2005 14:07:57 -0400
> Subject: Re: [vtkusers] vtk 4.2 (carbon) on MacOS X
> Tiger doesn't work
> 
> On 2005-06-22 10:46, P Bai said:
> 
> >-Tried 4.4 source code, same problem.
> >
> >So I wonder if anyone had any luck getting it work?
> If
> >so, can you tell me what you did?
> 
> I had the same problems when I started with vtk the
> other week.  I
> submitted some fixes (that were accepted).  If you
> get the current code
> from CVS, vtk builds with both gcc 3.3 and 4.0 for
> both carbon and
> cocoa, with no warnings or errors.
> 
> good luck!
> 
> --
>
____________________________________________________________
> Sean McBride, B. Eng                
> sean at rogue-research.com
> Rogue Research                       
> www.rogue-research.com
> Mac Software Developer              Montréal,
> Québec, Canada
> 


		
____________________________________________________ 
Yahoo! Sports 
Rekindle the Rivalries. Sign up for Fantasy Football 
http://football.fantasysports.yahoo.com
_______________________________________________
This is the private VTK discussion list. 
Please keep messages on-topic. Check the FAQ at:
http://www.vtk.org/Wiki/VTK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers




More information about the vtkusers mailing list