[vtkusers] make fails with compilation error on Mac OS X

Mathieu Malaterre mathieu.malaterre at kitware.com
Sat Jan 10 17:53:21 EST 2004


Martin,

  You have threes options:
- you switch to VTK 4.4
- you switch to VTK CVS
- or you apply theses changes only:

http://vtk.org/cgi-bin/cvsweb.cgi/VTK/Rendering/vtkCarbonRenderWindowInteractor.cxx.diff?r1=1.6&r2=1.7



Their is currently no VTK 4.4 tarball, meanwhile you can go to:

http://www.vtk.org/cgi-bin/viewcvs.cgi/?cvsroot=VTK&only_with_tag=release-4-4
Scroll down the page and click 'Download tarball'

Sorry for the troubles,
Mathieu

> 
> From: Martin Dunschen <zabaione at uk2.net>
> Date: 2004/01/10 Sat PM 02:37:10 EST
> To: vtkusers at vtk.org
> Subject: [vtkusers] make fails with compilation error on Mac OS X
> 
> I try to install VTK from sources, following the instructions in VTK 
> User's Guide.
> The configuration using cmake worked successfully and evoking make 
> starts the compilation and build of a number of libraries until I hit 
> the following problem:
> 
> Building object file vtkCarbonRenderWindowInteractor.o...
> /Users/martin/Development/CHook 
> Folder/VTK.org/VTK/Rendering/vtkCarbonRenderWindowInteractor.cxx: In
>     function `OSStatus myWinEvtHndlr(OpaqueEventHandlerCallRef*,
>     OpaqueEventRef*, void*)':
> /Users/martin/Development/CHook 
> Folder/VTK.org/VTK/Rendering/vtkCarbonRenderWindowInteractor.cxx:188: 
> error: non-lvalue
>     in unary `&'
> /Users/martin/Development/CHook 
> Folder/VTK.org/VTK/Rendering/vtkCarbonRenderWindowInteractor.cxx:196: 
> error: non-lvalue
>     in unary `&'
> /Users/martin/Development/CHook 
> Folder/VTK.org/VTK/Rendering/vtkCarbonRenderWindowInteractor.cxx:204: 
> error: non-lvalue
>     in unary `&'
> make[3]: *** [vtkCarbonRenderWindowInteractor.o] Error 1
> make[2]: *** [default_target] Error 2
> make[1]: *** [default_target_Rendering] Error 2
> make: *** [default_target] Error 2
> 
> 
> I believe I use gcc v3.3, this is the ouptut of gcc -v:
> 
> Reading specs from /usr/libexec/gcc/darwin/ppc/3.3/specs
> Thread model: posix
> gcc version 3.3 20030304 (Apple Computer, Inc. build 1493)
> 
> 
> Do I have to edit the source code? Or is something wrong with my 
> configurations?
> I tried the latest stable version:
> -rw-r--r--   1 martin  staff   6150847 Dec 22 10:20 
> VTK-4.2-LatestRelease.tar.gz
>   as well as the latest version obtained using cvs. In both versions I 
> get the same failure.
> 
> Thanks for any help
> 
> Martin
> 
> _______________________________________________
> This is the private VTK discussion list. 
> Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
> 





More information about the vtkusers mailing list