[vtk-developers] 32bit IDs on 64 bit machine

Brad King brad.king at kitware.com
Wed Jul 23 09:21:59 EDT 2008


John Biddiscombe wrote:
> Brad King wrote:
> 
>> I don't know, but there have been a few dependency fixes since 2.4.8.
>> I'd rather not track down a bug we already fixed.  Please try it.
>>   
> 
> I built paraview using cmake 2.6 patch 0, first using 64 bit IDs, then I
> changed to 32bits anf built again. The same link errors appeared. Doing
> a make clean in VTK/GUISupport resolved it

Can you send me (off-list) a tarball of the entire VTK/GUISupport build
directory please?

Thanks,
-Brad


>> John Biddiscombe wrote:
>>   
>>> Problem went away when I did a make clean in VTK/GUISupport.
>>>
>>> Question is, why did
>>>
>>> make rebuild_cache
>>> make
>>> ERRORS
>>>
>>> touch VTK/vtkConfigure.h
>>> make
>>> ERRORS
>>>
>>> cd VTK/GUISupport
>>> make clean
>>> cd ../../
>>> make
>>>
>>> NO ERRORS
>>>
>>> Why did the touch and rebuild cache commmands not cause vtkGuiSupport to
>>> be rebuilt? what is wrong with cmake that the dependency on vtkConfigure
>>> is not triggering a rebuild?
>>>     
>>
>> What version of CMake?  What version of ParaView/VTK?
>>
>> -Brad
>>
>>   
>>>> When re-building paraview with VTK_USE_64BIT_IDS OFF on a 64 bit
>>>> machine, I get the following link errors
>>>>
>>>> Linking CXX executable ../../bin/paraview
>>>> /project/csvis/biddisco/build/pv-rigi/bin/libQVTK.so: undefined
>>>> reference to `vtkQtTableModelAdapter::PedigreeToId(long long) const'
>>>> /project/csvis/biddisco/build/pv-rigi/bin/libQVTK.so: undefined
>>>> reference to `vtkQtTreeModelAdapter::PedigreeToQModelIndex(long long)
>>>> const'
>>>> /project/csvis/biddisco/build/pv-rigi/bin/libQVTK.so: undefined
>>>> reference to `vtkQtTreeModelAdapter::PedigreeToId(long long) const'
>>>> /project/csvis/biddisco/build/pv-rigi/bin/libQVTK.so: undefined
>>>> reference to `vtkQtTreeModelAdapter::IdToPedigree(long long) const'
>>>> /project/csvis/biddisco/build/pv-rigi/bin/libQVTK.so: undefined
>>>> reference to `vtkQtTableModelAdapter::PedigreeToQModelIndex(long long)
>>>> const'
>>>> /project/csvis/biddisco/build/pv-rigi/bin/libQVTK.so: undefined
>>>> reference to `vtkQtTableModelAdapter::IdToPedigree(long long) const'
>>>> collect2: ld returned 1 exit status
>>>>
>>>> I will see if I can fix this, but if whoever maintains the classes
>>>> vtkQtTableModelAdapter/etc wants to chime in with the correct fix,
>>>> then please do.
>>>>
>>>> [pause]
>>>>
>>>> Looking at the code, I can see that vtkIdType is being set to int and
>>>> the vtkQtTree* classes use vtkIdType, so why long long is appearing, I
>>>> have no idea.
>>>>
>>>> JB
>>>>
>>>>       
>>>     
>>
>>   
> 
> 
> -- 
> John Biddiscombe,                            email:biddisco @ cscs.ch
> http://www.cscs.ch/about/BJohn.php
> CSCS, Swiss National Supercomputing Centre  | Tel:  +41 (91) 610.82.07
> Via Cantonale, 6928 Manno, Switzerland      | Fax:  +41 (91) 610.82.82
> 




More information about the vtk-developers mailing list