Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error: Undefined symbol for itk::Index<2u>::Dimension #3

Open
fohara opened this issue Nov 5, 2017 · 0 comments
Open

Compile error: Undefined symbol for itk::Index<2u>::Dimension #3

fohara opened this issue Nov 5, 2017 · 0 comments

Comments

@fohara
Copy link

fohara commented Nov 5, 2017

Really interesting paper and project! I'm running into a compile issue though. I installed the dependencies listed on the readme, and also applied the recommended CMake configs. I built ITK from scratch at this revision: InsightSoftwareConsortium/ITK@6087ef1 .

After running cmake and make for this project, I eventually hit the following error:

[ 58%] Linking CXX executable sc_feat
Undefined symbols for architecture x86_64:
  "itk::Index<2u>::Dimension", referenced from:
      void glia::hmt::RegionFeatsWithLocation::generate<glia::TRegion<unsigned int, glia::Point<2ul> >, itk::SmartPointer<itk::Image<float, 2u> >, itk::SmartPointer<itk::Image<float, 2u> > >(glia::TRegion<unsigned int, glia::Point<2ul> > const&, double, double, itk::SmartPointer<itk::Image<float, 2u> > const&, std::__1::vector<double, std::__1::allocator<double> > const&, std::__1::vector<glia::hmt::ImageHistPair<itk::SmartPointer<itk::Image<float, 2u> > >, std::__1::allocator<glia::hmt::ImageHistPair<itk::SmartPointer<itk::Image<float, 2u> > > > > const&, std::__1::vector<glia::hmt::ImageHistPair<itk::SmartPointer<itk::Image<float, 2u> > >, std::__1::allocator<glia::hmt::ImageHistPair<itk::SmartPointer<itk::Image<float, 2u> > > > > const&, std::__1::vector<glia::hmt::ImageHistPair<itk::SmartPointer<itk::Image<float, 2u> > >, std::__1::allocator<glia::hmt::ImageHistPair<itk::SmartPointer<itk::Image<float, 2u> > > > > const&, double const*) in main_sc_feat.cxx.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [sc_feat] Error 1
make[1]: *** [CMakeFiles/sc_feat.dir/all] Error 2
make: *** [all] Error 2

Any insight around this error? Maybe a specific version of ITK is required?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant