AlanWei,I recommend building ShapeWorksView2 instead of ShapeWorksView. You will need QT, but it is much easier to build than the original ShapeWorksView. The problem you are running into is related to the fltk version. I've found that sometimes I need two different versions of FLTK installed to build it.
On Fri, Jun 13, 2014 at 11:48 AM, Wei Liu <weiliu620@gmail.com> wrote:
Dear ShapeWorks users,I'm trying to build the source that I cloned from github. I'm under Opensuse 13.1 64 bit, with gcc 4.8.1. When I open the "ShapeWorksView" option, I got the following error:======================Linking CXX executable ShapeWorksViewCMakeFiles/ShapeWorksView.dir/ShapeWorksViewApp.cxx.o: In function `ShapeWorksViewApp::ShapeWorksViewApp(char const*)':ShapeWorksViewApp.cxx:(.text+0x8127): undefined reference to `AnalyzeCorrespondenceGUI::~AnalyzeCorrespondenceGUI()'CMakeFiles/ShapeWorksView.dir/ShapeWorksViewApp.cxx.o:(.rodata._ZTI17ShapeWorksViewApp[_ZTI17ShapeWorksViewApp]+0x10): undefined reference to `typeinfo for AnalyzeCorrespondenceGUI'CMakeFiles/ShapeWorksView.dir/ShapeWorksViewApp.cxx.o:(.rodata._ZTV17ShapeWorksViewApp[_ZTV17ShapeWorksViewApp]+0x30): undefined reference to `AnalyzeCorrespondenceGUI::Hide()'CMakeFiles/ShapeWorksView.dir/ShapeWorksView.cxx.o: In function `ShapeWorksViewApp::~ShapeWorksViewApp()':ShapeWorksView.cxx:(.text._ZN17ShapeWorksViewAppD2Ev[_ZN17ShapeWorksViewAppD5Ev]+0x285): undefined reference to `AnalyzeCorrespondenceGUI::~AnalyzeCorrespondenceGUI()'ShapeWorksView.cxx:(.text._ZN17ShapeWorksViewAppD2Ev[_ZN17ShapeWorksViewAppD5Ev]+0x428): undefined reference to `AnalyzeCorrespondenceGUI::~AnalyzeCorrespondenceGUI()'CMakeFiles/ShapeWorksView.dir/ShapeWorksView.cxx.o: In function `ShapeWorksViewApp::~ShapeWorksViewApp()':ShapeWorksView.cxx:(.text._ZN17ShapeWorksViewAppD0Ev[_ZN17ShapeWorksViewAppD0Ev]+0x285): undefined reference to `AnalyzeCorrespondenceGUI::~AnalyzeCorrespondenceGUI()'ShapeWorksView.cxx:(.text._ZN17ShapeWorksViewAppD0Ev[_ZN17ShapeWorksViewAppD0Ev]+0x430): undefined reference to `AnalyzeCorrespondenceGUI::~AnalyzeCorrespondenceGUI()'CMakeFiles/ShapeWorksView.dir/AnalyzeCorrespondenceGUI.cxx.o: In function `AnalyzeCorrespondenceGUI::AnalyzeCorrespondenceGUI()':AnalyzeCorrespondenceGUI.cxx:(.text+0x6bc): undefined reference to `vtable for AnalyzeCorrespondenceGUI'==============================My ITK and VTK path should be fine (no errors), and here is the snapshot of my ccmake:=======================Page 1 of 1BUILD_EXECS_AT_SAME_LEVEL OFFBUILD_ICPRigid3DRegistration OFFBUILD_MeshSupport OFFBUILD_OSX_APP OFFBUILD_PowerCrust OFFBUILD_ShapeWorksShop OFFBUILD_ShapeWorksView ONBUILD_ShapeWorksView2 OFFBUILD_Unsupported OFFCMAKE_BUILD_TYPE ReleaseCMAKE_INSTALL_PREFIX /usr/localFLTK_BASE_LIBRARY /usr/lib64/libfltk.soFLTK_CONFIG_SCRIPT /usr/bin/fltk-configFLTK_DIR FLTK_DIR-NOTFOUNDFLTK_FLUID_EXECUTABLE /usr/bin/fluidFLTK_FORMS_LIBRARY /usr/lib64/libfltk_forms.soFLTK_GL_LIBRARY /usr/lib64/libfltk_gl.soFLTK_IMAGES_LIBRARY /usr/lib64/libfltk_images.soFLTK_INCLUDE_DIR /usr/includeFLTK_MATH_LIBRARY /usr/lib64/libm.soITK_DIR /scratch/packages/InsightToolkit-3.20.1/buildVTK_DIR /scratch/packages/VTK5.10.1/buildDid I miss anything? I appreciate your help.Wei
Archive powered by MHonArc 2.6.18.