[vtkusers] SimpleCocoaVTK problems
Mike Jackson
mike.jackson at imts.us
Thu Nov 30 16:32:22 EST 2006
Corrie,
Lets start over. What we need to do is match the compilers for both VTk and SimpleCocoa.
So..
Go into the directory where vtk was built. Blow everything away.
Go into the directory where SimpleCocoa was built. Blow it all away.
now from a terminal type:
sudo gcc_select 4.0 -force
This will make the system compiler be the latest 4.x from Apple.
Now Rebuild VTK
Now Rebuild Simplecocoa.
Then let's see what happens after that.
Mike Jackson
-----Original Message-----
From: vtkusers-bounces+mike.jackson=imts.us at vtk.org on behalf of Corrie
Sent: Thu 11/30/2006 3:48 PM
To: Sean McBride
Cc: vtkusers at vtk.org
Subject: Re: [vtkusers] SimpleCocoaVTK problems
Now I'm really confused. I've tried to edit the CMAKE_CXX_COMPILER
and CMAKE_C_COMPILER's in cmakecache.txt to g++-4.0 and gcc-4.0,
respectively. Then, after I save the file and cmake it a couple of
times, it (cmakecache.txt) has reverted to having 3.3's in those
fields. Any idea why CMake can't get this to change? I even tried
putting "powerpc-apple-darwin8-gcc-4.0.1" in there and it still
reverted back to gcc-3.3 in the cmakecache.txt file. All this
despite the fact when I ask gcc -v, I get "gcc version 4.0.1 (Apple
Computer, Inc. build 5367)" in response. How can I exorcise this
ghost in the machine?
Corrie
On Nov 30, 2006, at 11:14 AM, Sean McBride wrote:
> On 2006-11-30 12:45, Corrie Allen, Ph.D. said:
>
>> Oddly enough, the reason I am using GCC-3.3 is that when I try to
>> configure the VTK build with CCmake, it refuses to change from
>> using GCC
>> 3.3 to GCC 4.
>
> If you do 'sudo gcc_select 4.0' then gcc 4 will be your default
> compiler
> and CMake should use it. I do strongly recommend 4.0 over 3.3.
> For one
> thing, you can't build Universal Binaries (or any Intel code) with
> 3.3.
>
>> VTK was built as PPC. I tried both Debug and release
>> builds -> same problem.
>
> It occurs to me now that the Release config of SimpleCocoaVTK will not
> link if you did not build VTK as Universal. The debug config of
> SimpleCocoaVTK is not Universal so would be OK. But this isn't
> your problem.
>
>> VTK was rebuilt several times just as described
>> in the wiki except that I used Ccmake to edit cmakecache.txt
>> rather than
>> directly editing.
>
> I've just updated the wiki, you might want to take a look.
>
> Give it a try with gcc 4 again, I think it will work better that way.
>
> --
> ____________________________________________________________
> Sean McBride, B. Eng sean at rogue-research.com
> 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
More information about the vtkusers
mailing list