|
Hi all,
I am currently building pcl from trunk in visual studio 2010 with the aim to getting kinfu working with my ASUS Xtion Pro Live camera. I have successfully built all the dependancies of pcl. I'm building the projects that kinfu seems to depend on and I come across and error when building pcl_visualization. c:\pcl-trunk\build\bin\pcl_visualization_debug.dll :L fatal error LNK1120: 16 unresolved externals. What are these unresolved externals? I have a feeling this might be something to do with VTK? Does anyone have any suggestions on how to fix this? Thanks, -Toby |
|
Apologies for repeat posting.
-----Original Message----- From: [hidden email] [mailto:[hidden email]] On Behalf Of BrowCam Sent: Wednesday, July 11, 2012 11:15 AM To: [hidden email] Subject: [PCL-users] KinFu: pcl build error. Hi all, I am currently building pcl from trunk in visual studio 2010 with the aim to getting kinfu working with my ASUS Xtion Pro Live camera. I have successfully built all the dependancies of pcl. I'm building the projects that kinfu seems to depend on and I come across and error when building pcl_visualization. c:\pcl-trunk\build\bin\pcl_visualization_debug.dll :L fatal error LNK1120: 16 unresolved externals. What are these unresolved externals? I have a feeling this might be something to do with VTK? Does anyone have any suggestions on how to fix this? Thanks, -Toby -- View this message in context: http://www.pcl-users.org/KinFu-pcl-build-error-tp4020151.html Sent from the Point Cloud Library (PCL) Users mailing list archive at Nabble.com. _______________________________________________ [hidden email] / http://pointclouds.org http://pointclouds.org/mailman/listinfo/pcl-users This email (including any attachments) may contain confidential and/or privileged information or information otherwise protected from disclosure. If you are not the intended recipient, please notify the sender immediately, do not copy this message or any attachments and do not use it for any purpose or disclose its content to any person, but delete this message and any attachments from your system. Astrium disclaims any and all liability if this email transmission was virus corrupted, altered or falsified. -o- Astrium Limited, Registered in England and Wales No. 2449259 Registered Office: Gunnels Wood Road, Stevenage, Hertfordshire, SG1 2AS, England _______________________________________________ [hidden email] / http://pointclouds.org http://pointclouds.org/mailman/listinfo/pcl-users |
|
In reply to this post by BrowCam
CONTENTS DELETED
The author has deleted this message.
|
|
Thanks for the reply, I have added all include and libs in CMake, also I think I have added all the correct system paths but I could be wrong on this.
This is the entire output from VC2010: any ideas? Cheers Toby 1>------ Build started: Project: pcl_visualization, Configuration: Debug Win32 ------ 1>Build started 13/07/2012 10:49:04. 1>InitializeBuildStatus: 1> Touching "pcl_visualization.dir\Debug\pcl_visualization.unsuccessfulbuild". 1>CustomBuild: 1> All outputs are up-to-date. 1>ClCompile: 1> All outputs are up-to-date. 1>ManifestResourceCompile: 1> All outputs are up-to-date. 1>Link: 1> Creating library C:/pcl-trunk/build/lib/pcl_visualization_debug.lib and object C:/pcl-trunk/build/lib/pcl_visualization_debug.exp 1>interactor_style.obj : warning LNK4217: locally defined symbol ?SetInput@vtkVertexBufferObjectMapper@@QAEXPAVvtkPolyData@@@Z (public: void __thiscall vtkVertexBufferObjectMapper::SetInput(class vtkPolyData *)) imported in function "protected: virtual void __thiscall pcl::visualization::PCLVisualizerInteractorStyle::OnKeyDown(void)" (?OnKeyDown@PCLVisualizerInteractorStyle@visualization@pcl@@MAEXXZ) 1>pcl_visualizer.obj : warning LNK4049: locally defined symbol ?SetInput@vtkVertexBufferObjectMapper@@QAEXPAVvtkPolyData@@@Z (public: void __thiscall vtkVertexBufferObjectMapper::SetInput(class vtkPolyData *)) imported 1>pcl_visualizer.obj : warning LNK4217: locally defined symbol ?SetInput@vtkVertexBufferObjectMapper@@QAEXPAVvtkDataSet@@@Z (public: void __thiscall vtkVertexBufferObjectMapper::SetInput(class vtkDataSet *)) imported in function "private: void __thiscall pcl::visualization::PCLVisualizer::createActorFromVTKDataSet(class vtkSmartPointer<class vtkDataSet> const &,class vtkSmartPointer<class vtkLODActor> &,bool)" (?createActorFromVTKDataSet@PCLVisualizer@visualization@pcl@@AAEXABV?$vtkSmartPointer@VvtkDataSet@@@@AAV?$vtkSmartPointer@VvtkLODActor@@@@_N@Z) 1>pcl_visualizer.obj : warning LNK4217: locally defined symbol ?New@vtkVertexBufferObjectMapper@@SAPAV1@XZ (public: static class vtkVertexBufferObjectMapper * __cdecl vtkVertexBufferObjectMapper::New(void)) imported in function "public: static class vtkSmartPointer<class vtkVertexBufferObjectMapper> __cdecl vtkSmartPointer<class vtkVertexBufferObjectMapper>::New(void)" (?New@?$vtkSmartPointer@VvtkVertexBufferObjectMapper@@@@SA?AV1@XZ) 1>vtkVertexBufferObjectMapper.obj : warning LNK4217: locally defined symbol ?New@vtkVertexBufferObject@@SAPAV1@XZ (public: static class vtkVertexBufferObject * __cdecl vtkVertexBufferObject::New(void)) imported in function "protected: __thiscall vtkVertexBufferObjectMapper::vtkVertexBufferObjectMapper(void)" (??0vtkVertexBufferObjectMapper@@IAE@XZ) 1>vtkVertexBufferObjectMapper.obj : warning LNK4217: locally defined symbol ?UnBind@vtkVertexBufferObject@@QAEXXZ (public: void __thiscall vtkVertexBufferObject::UnBind(void)) imported in function "public: virtual void __thiscall vtkVertexBufferObjectMapper::Render(class vtkRenderer *,class vtkActor *)" (?Render@vtkVertexBufferObjectMapper@@UAEXPAVvtkRenderer@@PAVvtkActor@@@Z) 1>vtkVertexBufferObjectMapper.obj : warning LNK4217: locally defined symbol ?Bind@vtkVertexBufferObject@@QAEXXZ (public: void __thiscall vtkVertexBufferObject::Bind(void)) imported in function "public: virtual void __thiscall vtkVertexBufferObjectMapper::Render(class vtkRenderer *,class vtkActor *)" (?Render@vtkVertexBufferObjectMapper@@UAEXPAVvtkRenderer@@PAVvtkActor@@@Z) 1>vtkVertexBufferObjectMapper.obj : warning LNK4217: locally defined symbol ?SetData@vtkVertexBufferObject@@QAE_NPAVvtkUnsignedCharArray@@@Z (public: bool __thiscall vtkVertexBufferObject::SetData(class vtkUnsignedCharArray *)) imported in function "protected: void __thiscall vtkVertexBufferObjectMapper::createVBOs(class vtkRenderWindow *)" (?createVBOs@vtkVertexBufferObjectMapper@@IAEXPAVvtkRenderWindow@@@Z) 1>vtkVertexBufferObjectMapper.obj : warning LNK4217: locally defined symbol ?SetData@vtkVertexBufferObject@@QAE_NPAV?$vector@IV?$allocator@I@std@@@std@@@Z (public: bool __thiscall vtkVertexBufferObject::SetData(class std::vector<unsigned int,class std::allocator<unsigned int> > *)) imported in function "protected: void __thiscall vtkVertexBufferObjectMapper::createVBOs(class vtkRenderWindow *)" (?createVBOs@vtkVertexBufferObjectMapper@@IAEXPAVvtkRenderWindow@@@Z) 1>vtkVertexBufferObjectMapper.obj : warning LNK4217: locally defined symbol ?SetData@vtkVertexBufferObject@@QAE_NPAVvtkPoints@@@Z (public: bool __thiscall vtkVertexBufferObject::SetData(class vtkPoints *)) imported in function "protected: void __thiscall vtkVertexBufferObjectMapper::createVBOs(class vtkRenderWindow *)" (?createVBOs@vtkVertexBufferObjectMapper@@IAEXPAVvtkRenderWindow@@@Z) 1>vtkVertexBufferObjectMapper.obj : warning LNK4217: locally defined symbol ?SetContext@vtkVertexBufferObject@@QAEXPAVvtkRenderWindow@@@Z (public: void __thiscall vtkVertexBufferObject::SetContext(class vtkRenderWindow *)) imported in function "protected: void __thiscall vtkVertexBufferObjectMapper::createVBOs(class vtkRenderWindow *)" (?createVBOs@vtkVertexBufferObjectMapper@@IAEXPAVvtkRenderWindow@@@Z) 1>LINK : warning LNK4199: /DELAYLOAD:VCOMP100D.dll ignored; no imports found from VCOMP100D.dll 1>vtkVertexBufferObject.obj : error LNK2001: unresolved external symbol "private: virtual char const * __thiscall vtkVertexBufferObject::GetClassNameInternal(void)const " (?GetClassNameInternal@vtkVertexBufferObject@@EBEPBDXZ) 1>vtkVertexBufferObject.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall vtkVertexBufferObject::IsA(char const *)" (?IsA@vtkVertexBufferObject@@UAEHPBD@Z) 1>vtkVertexBufferObject.obj : error LNK2001: unresolved external symbol "protected: virtual class vtkObjectBase * __thiscall vtkVertexBufferObject::NewInstanceInternal(void)const " (?NewInstanceInternal@vtkVertexBufferObject@@MBEPAVvtkObjectBase@@XZ) 1>vtkVertexBufferObject.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall vtkVertexBufferObject::GetUsage(void)" (?GetUsage@vtkVertexBufferObject@@UAEHXZ) 1>vtkVertexBufferObject.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall vtkVertexBufferObject::SetUsage(int)" (?SetUsage@vtkVertexBufferObject@@UAEXH@Z) 1>vtkVertexBufferObject.obj : error LNK2001: unresolved external symbol "public: virtual unsigned int __thiscall vtkVertexBufferObject::GetSize(void)" (?GetSize@vtkVertexBufferObject@@UAEIXZ) 1>vtkVertexBufferObject.obj : error LNK2001: unresolved external symbol "public: virtual unsigned int __thiscall vtkVertexBufferObject::GetCount(void)" (?GetCount@vtkVertexBufferObject@@UAEIXZ) 1>vtkVertexBufferObject.obj : error LNK2001: unresolved external symbol "public: virtual unsigned int __thiscall vtkVertexBufferObject::GetHandle(void)" (?GetHandle@vtkVertexBufferObject@@UAEIXZ) 1>vtkVertexBufferObject.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) const vtkVertexBufferObject::`vftable'" (__imp_??_7vtkVertexBufferObject@@6B@) referenced in function "protected: __thiscall vtkVertexBufferObject::vtkVertexBufferObject(void)" (??0vtkVertexBufferObject@@IAE@XZ) 1>vtkVertexBufferObjectMapper.obj : error LNK2001: unresolved external symbol "private: virtual char const * __thiscall vtkVertexBufferObjectMapper::GetClassNameInternal(void)const " (?GetClassNameInternal@vtkVertexBufferObjectMapper@@EBEPBDXZ) 1>vtkVertexBufferObjectMapper.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall vtkVertexBufferObjectMapper::IsA(char const *)" (?IsA@vtkVertexBufferObjectMapper@@UAEHPBD@Z) 1>vtkVertexBufferObjectMapper.obj : error LNK2001: unresolved external symbol "protected: virtual class vtkObjectBase * __thiscall vtkVertexBufferObjectMapper::NewInstanceInternal(void)const " (?NewInstanceInternal@vtkVertexBufferObjectMapper@@MBEPAVvtkObjectBase@@XZ) 1>vtkVertexBufferObjectMapper.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall vtkVertexBufferObjectMapper::GetBounds(double * const)" (?GetBounds@vtkVertexBufferObjectMapper@@UAEXQAN@Z) 1>vtkVertexBufferObjectMapper.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) protected: virtual __thiscall vtkVertexBufferObjectMapper::~vtkVertexBufferObjectMapper(void)" (__imp_??1vtkVertexBufferObjectMapper@@MAE@XZ) referenced in function "protected: virtual void * __thiscall vtkVertexBufferObjectMapper::`scalar deleting destructor'(unsigned int)" (??_GvtkVertexBufferObjectMapper@@MAEPAXI@Z) 1>vtkVertexBufferObjectMapper.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) const vtkVertexBufferObjectMapper::`vftable'" (__imp_??_7vtkVertexBufferObjectMapper@@6B@) referenced in function "protected: __thiscall vtkVertexBufferObjectMapper::vtkVertexBufferObjectMapper(void)" (??0vtkVertexBufferObjectMapper@@IAE@XZ) 1>vtkVertexBufferObjectMapper.obj : error LNK2019: unresolved external symbol __imp__glDrawElements@16 referenced in function "public: virtual void __thiscall vtkVertexBufferObjectMapper::Render(class vtkRenderer *,class vtkActor *)" (?Render@vtkVertexBufferObjectMapper@@UAEXPAVvtkRenderer@@PAVvtkActor@@@Z) 1>C:\pcl-trunk\build\bin\pcl_visualization_debug.dll : fatal error LNK1120: 16 unresolved externals 1> 1>Build FAILED. 1> 1>Time Elapsed 00:00:23.97 ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== |
|
CONTENTS DELETED
The author has deleted this message.
|
|
This post was updated on .
Cheers, I have been using the environment variables system paths.
I'm not sure what you mean by the vtk-about.lib files. I have no .lib files but I do have .obj files. However all the object files I have that relate to vtk are in the pc-trunk directory and so must have been built by pcl. There are none in my c:\VTK folders at all. Could this be the problem. If it is I don't understand how this is the case as I compiled and built VTK perfectly with all dependencies and no failed builds. Any suggestions? Thanks for helping Toby From: ceburakyildirim [via Point Cloud Library (PCL) Users] [mailto:ml-node+s967500n4020224h77@n3.nabble.com] Sent: Friday, July 13, 2012 12:42 PM To: BROWN, Toby Subject: Re: KinFu: pcl build error. By system paths i mean environment variables from the advanced system settings. your compiler seems cannot find these vtk-about .lib files in the directory you have shown in the vs2010 ________________________________ If you reply to this email, your message will be added to the discussion below: http://www.pcl-users.org/KinFu-pcl-build-error-tp4020151p4020224.html To unsubscribe from KinFu: pcl build error., click here <http://www.pcl-users.org/template/NamlServlet.jtp?macro=unsubscribe_by_ code&node=4020151&code=VG9ieS5CUk9XTkBhc3RyaXVtLmVhZHMubmV0fDQwMjAxNTF8M TI0MzU0MDc2Nw==> . NAML <http://www.pcl-users.org/template/NamlServlet.jtp?macro=macro_viewer&id =instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNam espace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template .NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-inst ant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.nam l> |
|
CONTENTS DELETED
The author has deleted this message.
|
|
Thank you very much for your help, the problem has been rectified.
Predictably I have run straight into another error: Cannot open include file 'vtkAppendPolyData.h': No such file or directory I have the vtk.h file that has #include <vtkAppendPolyData.h>however as the compiler says I cannot find the actual header file on my system. How may get this fixed? Toby |
|
You need to make sure that the include directory that your header file is located in is added as an additional include folder. Or add the path to the #include statement.
jmanring |
|
This post was updated on .
I am now getting the original error again (the one with the 16 unresolved externals).
If I install the prebuilt binaries for VTK surely cmake will not link them with the compiling of PCL as it requires a directory containing VTKConfig.cmake. The binaries do not have this. Also I do the pre-built binaries for PCL contain kinfu? I was hoping to modify the kinfu app to create a find mouse position function for my own app (for use as a 'go to' function), so I cannot use them anyway. -Toby |
| Powered by Nabble | Edit this page |
