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

Issue including statismo on project. #285

Open
NahomKidane opened this issue Feb 22, 2024 · 2 comments
Open

Issue including statismo on project. #285

NahomKidane opened this issue Feb 22, 2024 · 2 comments

Comments

@NahomKidane
Copy link

I used external ITK, VTK & Eigen to build Statismo. Although I faced some problems while using external HDF5, I managed to build and run tests using ITK_HDF5 instead.

However, now I'm encountering an error while making a simple Statismo project using cmake. Could you please suggest a solution to resolve this issue?
LNK2019 error: unresolved external symbol "__declspec(dllimport) public: class H5::H5File & __cdecl H5::H5File.

buildshapemodel.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class H5::H5File & __cdecl H5::H5File::operator=(class H5::H5File const &)" (_imp??4H5File@H5@@QEAAAEAV01@AEBV01@@z) referenced in function "public: virtual void __cdecl statismo::DataManagerBase<class itk::Mesh<float,3,class itk::DefaultStaticMeshTraits<float,3,3,float,float,float> >,class statismo::BasicDataManager<class itk::Mesh<float,3,class itk::DefaultStaticMeshTraits<float,3,3,float,float,float> > > >::Save(class std::basic_string<char,struct std::char_traits,class std::allocator > const &)const " (?Save@?$DataManagerBase@V?$Mesh@M$02V?$DefaultStaticMeshTraits@M$02$02MMMhttps://github.com/itk@@@itk@@v?$BasicDataManager@V?$Mesh@M$02V?$DefaultStaticMeshTraits@M$02$02MMMhttps://github.com/itk@@@itk@@https://github.com/statismo@@https://github.com/statismo@@UEBAXAEBV?$basic_string@DU?$char_traits@D@std@@v?$allocator@D@2@@std@@@z)
2>C:\Projects\NahomProjects\Repositories\statismo-build-examples\ITK\build\Release\statismo-app.exe : fatal error LNK1120: 1 unresolved externals

@marcelluethi
Copy link
Member

Statismo is no longer actively maintained. I suspect that you will encounter all kinds of issues when trying to run it.
Have you checked out the forks (see also the README for a link to a more recent fork)?

@Andreas-Forster Are you aware of an actively maintained version of Statismo?

@NahomKidane
Copy link
Author

Hi @marcelluethi,
Thank you for getting back to me.

I am actually working with the fork from https://github.com/latimagine. However, I tried to follow the instructions as closely as possible, and the unit tests worked, but when I wanted to include it as a library, I kept having issues with HDF5.

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

2 participants