[vtkusers] vtkPowerCrustSurfaceReconstruction unresolved external symbol

Bayliss, Chris (Chicago) cbayliss at gnresound.com
Thu Apr 5 14:56:35 EDT 2012


Do I add that line to the cmakelists file in the hybrid directory?  I apologize for any silly questions I may ask, I am very new to cmake, vtk, C++, and writing software in general.

Thanks,

Chris



-----Original Message-----
From: Bill Lorensen [mailto:bill.lorensen at gmail.com] 
Sent: Thursday, April 05, 2012 1:41 PM
To: Bayliss, Chris (Chicago)
Cc: vtkusers at vtk.org
Subject: Re: [vtkusers] vtkPowerCrustSurfaceReconstruction unresolved external symbol

First try this:
class VTK_HYBRID_EXPORT vtkPowerCrustSurfaceReconstruction

On Thu, Apr 5, 2012 at 2:29 PM, Bayliss, Chris (Chicago)
<cbayliss at gnresound.com> wrote:
> Bill,
>
> I have added the vtkpowercrustsurfacereconstruction.cxx line to the cmakelists file.  I should mention I have also moved the Powercrust header and .cxx files to the Hybrid directory, following a post from Tim Hutton suggesting this would work.
>
> I have re-run cmake and built vtk with these modifications with no errors, however, my project which uses the PowerCrust algorithm still produces the following link error.
>
> Error   1       error LNK2019: unresolved external symbol "public: static class vtkPowerCrustSurfaceReconstruction * __cdecl vtkPowerCrustSurfaceReconstruction::New(void)" (?New at vtkPowerCrustSurfaceReconstruction@@SAPAV1 at XZ) referenced in function _main   C:\Program Files\VTK\TPS\TPS.obj
>
> Do I need to modify the cmakelists file in my project directory somehow?  The hybrid directory has already been included in that file, I would think that should be sufficient.  I am not sure what else to try.
>
> Your help is much appreciated.
>
> Chris
>
> -----Original Message-----
> From: Bill Lorensen [mailto:bill.lorensen at gmail.com]
> Sent: Friday, March 09, 2012 5:43 PM
> To: Bayliss, Chris (Chicago)
> Cc: vtkusers at vtk.org
> Subject: Re: [vtkusers] vtkPowerCrustSurfaceReconstruction unresolved external symbol
>
> You will need to modify the CMakeLists.txt file to include the filter.
> Normally, you would do this in your own directory and not Common.
>
> On Fri, Mar 9, 2012 at 3:00 PM, Bayliss, Chris (Chicago)
> <cbayliss at gnresound.com> wrote:
>> Hi,
>>
>>
>>
>> I am trying to use the vtkPowerCrustSurfaceReconstruction filter, but I am
>> getting the following error:
>>
>>
>>
>> error LNK2019: unresolved external symbol "public: static class
>> vtkPowerCrustSurfaceReconstruction * __cdecl
>> vtkPowerCrustSurfaceReconstruction::New(void)"
>> (?New at vtkPowerCrustSurfaceReconstruction@@SAPAV1 at XZ) referenced in function
>> _main    C:\Program Files\VTK\TPS\TPS.obj
>>
>>
>>
>> I have added vtkPowerCrustSurfaceReconstruction.h and
>> vtkPowerCrustSurfaceReconstruction.cxx to the following directories and
>> re-built VTK, but no luck.
>>
>>
>>
>> C:\Program Files\VTK\vtk-5.8.0\Common
>>
>> C:\Program Files\VTK\VTK_bin\Common
>>
>>
>>
>> I have also modified the header file as suggested by Tim Hutton.
>>
>> class /*VTK_GRAPHICS_EXPORT*/ vtkPowerCrustSurfaceReconstruction : public
>> vtkDataSetToPolyDataFilter
>>
>>
>>
>>
>>
>> There are some older posts relating to this issue, but I could not find any
>> solutions posted.  Any help would be much appreciated.
>>
>>
>>
>> Thanks,
>>
>>
>>
>> Chris
>>
>>
>>
>>
>> _______________________________________________
>> 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
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>
>
>
> --
> Unpaid intern in BillsBasement at noware dot com
>
> **** GN GROUP NOTICE - AUTOMATICALLY INSERTED ****
> The information in this e-mail (including attachments, if any) is considered confidential and is intended only for the recipient(s) listed above. Any review, use, disclosure, distribution or copying of this e-mail is prohibited except by or on behalf of the intended recipient. If you have received this email in error, please notify me immediately by reply e-mail, delete this e-mail, and do not disclose its contents to anyone. Any opinions expressed in this e-mail are those of the individual and not necessarily the GN group. Thank you.
> ******************** DISCLAIMER END ************************
>



-- 
Unpaid intern in BillsBasement at noware dot com

**** GN GROUP NOTICE - AUTOMATICALLY INSERTED **** 
The information in this e-mail (including attachments, if any) is considered confidential and is intended only for the recipient(s) listed above. Any review, use, disclosure, distribution or copying of this e-mail is prohibited except by or on behalf of the intended recipient. If you have received this email in error, please notify me immediately by reply e-mail, delete this e-mail, and do not disclose its contents to anyone. Any opinions expressed in this e-mail are those of the individual and not necessarily the GN group. Thank you. 
******************** DISCLAIMER END ************************


**** GN GROUP NOTICE - AUTOMATICALLY INSERTED **** 
The information in this e-mail (including attachments, if any) is considered confidential and is intended only for the recipient(s) listed above. Any review, use, disclosure, distribution or copying of this e-mail is prohibited except by or on behalf of the intended recipient. If you have received this email in error, please notify me immediately by reply e-mail, delete this e-mail, and do not disclose its contents to anyone. Any opinions expressed in this e-mail are those of the individual and not necessarily the GN group. Thank you. 
******************** DISCLAIMER END ************************




More information about the vtkusers mailing list