vtk build for 10.3 and 10.4

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

vtk build for 10.3 and 10.4

Gavin W. Burris aka 86
What is the proper way to build VTK on the latest Mac OS X with Xcode?
I want to build VTK and have it run on 10.3 and 10.4.

I found this reference on Apple's developer site:
http://developer.apple.com/documentation/DeveloperTools/Conceptual/cross_development/Using/chapter_3_section_2.html#//apple_ref/doc/uid/20002000-1114311-BABGCAAB

It specifies using the "-isysroot" and "-syslibroot" options in CFLAGS
and LDFLAGS to point to the SDK directory,
"/Developer/SDKs/MacOSX10.3.0.sdk".

and also to export the environment variable MACOSX_DEPLOYMENT_TARGET=10.3

How would you stick this into VTK's cmake setup properly?

Cheers,
--
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
Reply | Threaded
Open this post in threaded view
|

Re: vtk build for 10.3 and 10.4

Sean McBride
On 2006-01-20 17:41, Gavin W. Burris aka 86 said:

>What is the proper way to build VTK on the latest Mac OS X with Xcode?
>I want to build VTK and have it run on 10.3 and 10.4.
>
>I found this reference on Apple's developer site:
>http://developer.apple.com/documentation/DeveloperTools/Conceptual/
>cross_development/Using/chapter_3_section_2.html#//apple_ref/doc/uid/
>20002000-1114311-BABGCAAB
>
>It specifies using the "-isysroot" and "-syslibroot" options in CFLAGS
>and LDFLAGS to point to the SDK directory,
>"/Developer/SDKs/MacOSX10.3.0.sdk".
>
>and also to export the environment variable MACOSX_DEPLOYMENT_TARGET=10.3
>
>How would you stick this into VTK's cmake setup properly?

Well, there are several orthogonal things here:
1- the SDK you want to use
2- the minimum OS you want to support
3- the maximum OS you want to allow

You can use a newer SDK and still support older OSes.  So in your case,
you need to set MACOSX_DEPLOYMENT_TARGET to 10.3 and
MAC_OS_X_VERSION_MAX_ALLOWED to 10.3.  You can then either use the 10.3
or 10.4 SDK, either will work. (I recommend the 10.4 SDK).

See technote 2064:
<http://developer.apple.com/technotes/tn2002/tn2064.html>

and AvailabilityMacros.h

MAC_OS_X_VERSION_MAX_ALLOWED is a #define, so you put it in
CMAKE_CXX_FLAGS and CMAKE_C_FLAGS like so: -DMAC_OS_X_VERSION_MAX_ALLOWED=1030

MACOSX_DEPLOYMENT_TARGET is an environment variable, I'm not sure how to
set that with cmake.  Anyone?

Also, be sure to use vtk 5, not 4.x!

--
____________________________________________________________
Sean McBride, B. Eng                 [hidden email]
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________
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
Reply | Threaded
Open this post in threaded view
|

Re: vtk build for 10.3 and 10.4

Gavin W. Burris aka 86
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
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?

Cheers.

Sean McBride wrote:

> On 2006-01-20 17:41, Gavin W. Burris aka 86 said:
>
>
>>What is the proper way to build VTK on the latest Mac OS X with Xcode?
>>I want to build VTK and have it run on 10.3 and 10.4.
>>
>>I found this reference on Apple's developer site:
>>http://developer.apple.com/documentation/DeveloperTools/Conceptual/
>>cross_development/Using/chapter_3_section_2.html#//apple_ref/doc/uid/
>>20002000-1114311-BABGCAAB
>>
>>It specifies using the "-isysroot" and "-syslibroot" options in CFLAGS
>>and LDFLAGS to point to the SDK directory,
>>"/Developer/SDKs/MacOSX10.3.0.sdk".
>>
>>and also to export the environment variable MACOSX_DEPLOYMENT_TARGET=10.3
>>
>>How would you stick this into VTK's cmake setup properly?
>
>
> Well, there are several orthogonal things here:
> 1- the SDK you want to use
> 2- the minimum OS you want to support
> 3- the maximum OS you want to allow
>
> You can use a newer SDK and still support older OSes.  So in your case,
> you need to set MACOSX_DEPLOYMENT_TARGET to 10.3 and
> MAC_OS_X_VERSION_MAX_ALLOWED to 10.3.  You can then either use the 10.3
> or 10.4 SDK, either will work. (I recommend the 10.4 SDK).
>  
> See technote 2064:
> <http://developer.apple.com/technotes/tn2002/tn2064.html>
>
> and AvailabilityMacros.h
>
> MAC_OS_X_VERSION_MAX_ALLOWED is a #define, so you put it in
> CMAKE_CXX_FLAGS and CMAKE_C_FLAGS like so: -DMAC_OS_X_VERSION_MAX_ALLOWED=1030
>
> MACOSX_DEPLOYMENT_TARGET is an environment variable, I'm not sure how to
> set that with cmake.  Anyone?
>
> Also, be sure to use vtk 5, not 4.x!
>

--
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
Reply | Threaded
Open this post in threaded view
|

Re: vtk build for 10.3 and 10.4

Sean McBride
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?

--
____________________________________________________________
Sean McBride, B. Eng                 [hidden email]
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________
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
Reply | Threaded
Open this post in threaded view
|

Re: vtk build for 10.3 and 10.4

Gavin W. Burris aka 86
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
Reply | Threaded
Open this post in threaded view
|

Re: vtk build for 10.3 and 10.4

Gavin W. Burris aka 86
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
Reply | Threaded
Open this post in threaded view
|

Re: vtk build for 10.3 and 10.4

Gavin W. Burris aka 86
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
Reply | Threaded
Open this post in threaded view
|

Re: vtk build for 10.3 and 10.4

Mike Jackson-9
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



_______________________________________________
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
Reply | Threaded
Open this post in threaded view
|

Re: vtk build for 10.3 and 10.4

Michael Rice
In reply to this post by Gavin W. Burris aka 86
I have VTK 5 building on 10.4 with GCC 4. I configured it with Carbon  
and building static libs. I only do C++ development in Xcode, so I  
can't comment on the Tcl/Tk or Python. As for not being able to  
interact with the windows, I normally see that when starting an  
application without doing an 'open'. The app doesn't get any events;  
it has something to do with bypassing the dock or the "window  
manager" (sorry I don't know the correct OS X terms here).

Michael

On Feb 7, 2006, at 3: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
>

_______________________________________________
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