[vtkusers] Link or crash using VTK 7.1 32 bits on Win7 64 bits machine

Cory Quammen cory.quammen at kitware.com
Fri Mar 3 16:56:01 EST 2017


I would guess not all your libraries are built for 32 bit. Ensure that
they are (even Qt) and you should resolve the linker issues.

HTH,
Cory

On Fri, Mar 3, 2017 at 4:52 PM, Mwoua <david.levy at leddartech.com> wrote:
> Hello,
>
> I've made an application that works fine using qt 5.7 and vtk 7.1 in windows
> 7 64 bits. (I built the VTK library with qt support).
>
> Now I'm trying to build everything in 32 bits, but first I have link issue.
> If I remove the problematic functions, I can get the soft to build, but it
> crash with a read access violation in vtkbuffer.
>
> Is there a way to test if I built the library correctly?
>
> My linker issues are related to __int64, is it normal in 32bits?
>
> Thanks,
> David
>
> Bonus information :
> this example works with my 32bits setup
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Qt/RenderWindowNoUiFile
>
> my call stack when my simplified soft crash :
> 1   vtkBuffer<float>::GetBuffer
> vtkBuffer.h                    48   0xfaee29a
> 2   vtkAOSDataArrayTemplate<float>::SetValue
> vtkAOSDataArrayTemplate.h      72   0xfaee806
> 3   vtkGenericDataArray<vtkAOSDataArrayTemplate<float>,float>::SetValue
> vtkGenericDataArray.h          116  0xfaee862
> 4
> vtkGenericDataArray<vtkAOSDataArrayTemplate<float>,float>::InsertNextValue
> vtkGenericDataArray.txx        800  0xfaee42f
> 5 Myfunction
>
>
>
> My linker issues :
> VTKViewer.obj:-1: error: LNK2019: unresolved external symbol "public:
> __int64 * __thiscall
> vtkAOSDataArrayTemplate<__int64>::WritePointer(__int64,__int64)"
> (?WritePointer@?$vtkAOSDataArrayTemplate at _J@@QAEPA_J_J0 at Z) referenced in
> function "public: __int64 __thiscall
> vtkCellArray::InsertNextCell(__int64,__int64 const *)"
> (?InsertNextCell at vtkCellArray@@QAE_J_JPB_J at Z)
>
> VTKViewer.obj:-1: error: LNK2019: unresolved external symbol "public: void
> __thiscall vtkLookupTable::SetNumberOfTableValues(__int64)"
> (?SetNumberOfTableValues at vtkLookupTable@@QAEX_J at Z) referenced in function
> "private: void __thiscall LdPCLViewer::DrawNewData(void)"
> (?DrawNewData at LdPCLViewer@@AAEXXZ)
>
>
>
>
> --
> View this message in context: http://vtk.1045678.n5.nabble.com/Link-or-crash-using-VTK-7-1-32-bits-on-Win7-64-bits-machine-tp5742353.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers



-- 
Cory Quammen
Staff R&D Engineer
Kitware, Inc.


More information about the vtkusers mailing list