[vtkusers] vtk build on Mac OSX -- more questions.
krs
krs at uncc.edu
Tue Jul 5 18:39:36 EDT 2005
On Jul 5, 2005, at 6:23 PM, Sean McBride wrote:
> On 2005-07-05 17:58, krs said:
>
>
>> Well, I went past this error (must use the CVS sources) and came up
>> against
>> the next one (as below):
>>
>
> Is that with the default CMakeCache.txt? Or did you tweak things?
> For
> me, the default builds.
Yes, it simply stops at the cmDynamicLoader.cxx compilation file..
>
>
>> I found a possible solution in the archives on modifying a
>> partiicular
>> file in the CMake distribution
>>
>
> I'm curious, which?
http://public.kitware.com/pipermail/vtkusers/2005-May/079721.html
>
But the same error results before CMake can be built.
=== krs
>
>> but I cant even compile CMake(using
>> 2.0.6
>> from source) on OSX
>> (errors are listed below, as well) -:( Not making much progress
>> on my
>> new Mac OS laptop!
>>
>> Any suggestions would be appreciated.
>>
>> == krs
>>
>>
>> Building object file cmDynamicLoader.o...
>> /Users/krs/src/cmake-2.0.6/Source/cmDynamicLoader.cxx: In static
>> member function
>> `static int cmDynamicLoader::CloseLibrary(void*)':
>> /Users/krs/src/cmake-2.0.6/Source/cmDynamicLoader.cxx:185: error:
>> invalid conver
>> sion from 'void*' to '__NSModule*'
>> /Users/krs/src/cmake-2.0.6/Source/cmDynamicLoader.cxx:185: error:
>> initializing
>> argument 1 of 'bool NSUnLinkModule(__NSModule*, uint32_t)'
>>
>
> I used the prebuilt cmake, but for fun I tried to build it. Same
> error. It looks like a genuine error to me. I suspect the cmake
> people
> are using some old os/compiler and don't realise the code is
> broken. Try
> changing it from:
>
> int cmDynamicLoader::CloseLibrary(cmLibHandle lib)
> {
> // we have to use lib because the macro may not...
> (void)lib;
>
> NSUnLinkModule(lib, FALSE);
>
> return 1;
> }
>
> to:
>
> int cmDynamicLoader::CloseLibrary(cmLibHandle lib)
> {
> NSUnLinkModule((NSModule)lib, NSUNLINKMODULE_OPTION_NONE);
>
> return 1;
> }
>
> NSUnLinkModule isn't a macro, so I dunno what that first comment is
> about!
>
> It then builds for me. I'll file a bug.
>
>
> --
> ____________________________________________________________
> Sean McBride, B. Eng sean at rogue-research.com
> Rogue Research www.rogue-research.com
> Mac Software Developer Montréal, Québec, Canada
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20050705/307a3881/attachment.htm>
More information about the vtkusers
mailing list