[vtkusers] vtk build for 10.3 and 10.4
Mike Jackson
imikejackson at gmail.com
Tue Feb 7 16:13:54 EST 2006
I have VTK 5.0 official release compiled and running under Cocoa/
10.4. I only use it through Xcode and have nothing to do with Tcl/tk
so I can't say anything there.
I _did_ compile with the tcl/tk, python and Java wrappings although I
did not actually test anything. I write C++/Objective-C++ code with
VTK and it all seems to work.
Mike.
On Feb 7, 2006, at 4:01 PM, Gavin W. Burris aka 86 wrote:
> Here's an update. Carbon works for me with tcl/tk Aqua on OS X
> 10.3. I
> had to install XDarwin and compile for X11, no carbon or cocoa, on
> OS X
> 10.4.
>
> Cheers.
>
> Gavin W. Burris aka 86 wrote:
>> VTK on OS X will not work for me. I tried building on 10.4 with
>> carbon
>> and then with cocoa, but nothing works. The VTK window will show up
>> maybe with graphics, maybe without. VTK Tcl/Tk examples will not
>> allow
>> you to select their windows into focus. VTK Python examples
>> refuse to
>> exit/close. The Tcl/Tk Aqua widget demo is working fine, so I'm
>> wondering what the problem is. Anyone have it working on 10.4
>> reliably?
>>
>> at a loss...
>>
>>
>> Gavin W. Burris aka 86 wrote:
>>
>>> I defined the following with ccmake:
>>> BUILD_SHARED_LIBS ON
>>> VTK_USE_CARBON ON
>>> VTK_USE_COCOA OFF
>>> VTK_WRAP_TCL ON
>>> VTK_WRAP_PYTHON ON
>>>
>>> I am using TclTkAquaBI 8.4.10 for Mac OS X 10.3 and later from:
>>> http://tcltkaqua.sourceforge.net/
>>>
>>> I added the following in ccmake to try and make the VTK build
>>> compatible
>>> with 10.3:
>>> CMAKE_CXX_FLAGS -DMAC_OS_X_VERSION_MAX_ALLOWED=1030
>>> CMAKE_C_FLAGS -DMAC_OS_X_VERSION_MAX_ALLOWED=1030
>>>
>>> and "export MACOSX_DEPLOYMENT_TARGET=10.3" before my make command.
>>>
>>> It has built fine, but just sits and spins on 10.4 when I run the
>>> Medical1.tcl example.
>>>
>>> I'm giving up on 10.3, and dropping the version defines. I will
>>> build
>>> for just 10.4 now, without the extra defines and environment
>>> variable.
>>> If you don't hear from me, it worked. ;) Thanks for your help.
>>>
>>>
>>> Cheers.
>>>
>>>
>>> Sean McBride wrote:
>>>
>>>
>>>> On 2006-01-24 16:17, Gavin W. Burris aka 86 said:
>>>>
>>>>
>>>>
>>>>
>>>>> My goal is to build VTK with Tcl wrappings that will run on
>>>>> 10.3.9 or
>>>>> better.
>>>>>
>>>>> I was able to build on Mac OS X 10.4.2 + Xcode 2.2 with the CVS
>>>>> version
>>>>> of VTK. I added "-DMAC_OS_X_VERSION_MIN_REQUIRED=1039" to
>>>>> CMAKE_CXX_FLAGS and CMAKE_C_FLAGS. This builds a version that
>>>>> will run
>>>>
>>>>
>>>> I don't believe that is a valid value for that define. See
>>>> AvailabilityMacros.h. You should use 1030. Although I don't
>>>> believe
>>>> that would cause your problem...
>>>>
>>>>
>>>>
>>>>
>>>>> fine on OS X 10.3.9, but not on 10.4.2. When running the
>>>>> Medical1.tcl
>>>>> example on 10.4.2, the Carbon window will appear, but just spin/
>>>>> wait
>>>>> with no graphics ever appearing.
>>>>>
>>>>> Do I have to also define "-DMAC_OS_X_VERSION_MAX_ALLOWED=????"?
>>>>> Shouldn't just setting the minimum version also support newer
>>>>> versions?
>>>>
>>>>
>>>> Actually it's kinda the other way around. The explanation is
>>>> rather
>>>> long winded... have your read the technote and header I
>>>> mentioned last
>>>> time? Basically, if you set MACOSX_DEPLOYMENT_TARGET then
>>>> MAC_OS_X_VERSION_MIN_REQUIRED is automatically set.
>>>> MAC_OS_X_VERSION_MAX_REQUIRED you should set yourself. It will
>>>> control
>>>> what is weak linked.
>>>>
>>>> Do you have the same version of tcl on both your 10.3 and 10.4
>>>> drives?
>>>> Does said tcl version support both versions of the OS?
>>>>
>>>
>>>
>>
>
> --
> Gavin W. Burris aka 86
> Senior Systems Programmer
> Penn State Visualization Group
> http://viz.aset.psu.edu/ga5in
> _______________________________________________
> 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
--------
Mike Jackson
imikejackson <at> gmail <dot> com
More information about the vtkusers
mailing list