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

Issues while building ICP_App #2

Open
supritimulay opened this issue Nov 2, 2017 · 6 comments
Open

Issues while building ICP_App #2

supritimulay opened this issue Nov 2, 2017 · 6 comments

Comments

@supritimulay
Copy link

Hi,

While Building the ICP_App in VS2015 I am getting linker error cisstICP.lib(utilities.obj) : error LNK2019: unresolved external symbol "public: __cdecl Wm5::NoniterativeEigen3x3::NoniterativeEigen3x3(class Wm5::Matrix3 const &)" (??0?$NoniterativeEigen3x3@N@Wm5@@qeaa@AEBV?$Matrix3@N@1@@z) referenced in function "void __cdecl ComputeCovEigenDecomposition_NonIter(class vctFixedSizeMatrix<double,3,3,1> const &,class vctFixedSizeVector<double,3> &,class vctFixedSizeMatrix<double,3,3,1> &)" (?ComputeCovEigenDecomposition_NonIter@@YAXAEBV?$vctFixedSizeMatrix@N$02$02$00@@aeav?$vctFixedSizeVector@N$02@@AEAV1@@z).

In additional dependencies, I have added all the WildMagic libraries but still getting a linker error for ICP_App. Please advice.

Thanks

@sbillin
Copy link
Owner

sbillin commented Dec 28, 2020

Hi, sorry I've been off the grid on this for a while. In case others are encountering this problem, my guess is that your CMake configuration does not have the path set to find the WildMagic libraries.

After configuring CMake, check the CMake configuration values to verify that WM5_BASE_DIR and WM5_LIB_PATH are set to the proper directory. The CMakeLists.txt file provides hints for where to look but doesn't really know where to find the correct path and has to be set manually. These paths should be set to the directories that contain "wm5path.txt" and "Wm5Core.lib" files, respectively, as indicated by the "NAMES" property in CMakeLists.txt.

If you don't want to manually set these paths every time you reconfigure CMake, you can change your CMakeLists.txt to set the proper paths for your system using the "PATHS" property associated with each value. Hope that helps.

@sbillin
Copy link
Owner

sbillin commented Dec 28, 2020 via email

@ZYJiang97
Copy link

Yeah. I set WM5_BASE_DIR and WM5_LIB_PATH correctly. I can build cisstICP without any error. This error came from the building of ICP_App. Is this the problem of cisst library?
err

@sbillin
Copy link
Owner

sbillin commented Dec 28, 2020 via email

@sbillin
Copy link
Owner

sbillin commented Dec 28, 2020

Oh sorry, I was responding via email earlier and didn't see the screenshot that was included. So yes these errors do look like a cisst library issue, and appears to be the same errors mentioned in the README that I had encountered when compiling with Visual Stuido 14 2015 Win64. When I was developing this, I had to compile using the earlier version of Visual Studio 12 2013 Win64 in order to get it to work correctly.

If you want to try to track down the solution, you may get some help by posting an issue to the cisst library Github repo. I don't know enough about the cisst library myself to be of much help there. If I had time to work on this code base again, I think I would do a port to Eigen for the matrix computations to make the code a bit easier to setup and compile.

@ZYJiang97
Copy link

Thanks a lot.

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

3 participants