Closed lujaindong closed 3 years ago
Hi I solved this error by copy the .lib file into the build tests directory. And now it works. But I think there must be method that we can do something with the configuration, right?
I'm sorry, I missed this ticket yesterday. Did you run the INSTALL
target for fgt, then point the cpd CMake configuration to that installed location?
yes of course I did. I built fgt sucessfully and set the fgt_DIR in the Cmake configuration. Actually the lib that built is named fgt not fgt-lib-C++. It is a little strange. But now it work fine.
CMake is (sometimes) case-sensitive, so make sure you are importing and using fgt like this:
find_package(Fgt REQUIRED)
target_link_libraries(my-great-target PUBLIC Fgt::Library-C++)
You are correct that the fgt library is named fgt
, but the CMake imported target is called Fgt::Library-C++
.
Closed by #148.
I have met these errors when i tried to build the CPD with fgt:
error LNK1181 can't open input file“fgt-lib-C++.lib” normalization-test F:\CPD_Registration\cpd-build\tests\LINK 1
error LNK1181 can't open input file“fgt-lib-C++.lib” version-test F:\CPD_Registration\cpd-build\tests\LINK 1
error LNK1181 can't open input file“fgt-lib-C++.lib” gauss_transform-test F:\CPD_Registration\cpd-build\tests\LINK 1
error LNK1181 can't open input file“fgt-lib-C++.lib” utils-test F:\CPD_Registration\cpd-build\tests\LINK 1
error LNK1181 can't open input file“fgt-lib-C++.lib” nonrigid-test F:\CPD_Registration\cpd-build\tests\LINK 1
error LNK1181 can't open input file“fgt-lib-C++.lib” rigid-test F:\CPD_Registration\cpd-build\tests\LINK 1
error LNK1181 can't open input file“fgt-lib-C++.lib” gauss_transform_fgt-test F:\CPD_Registration\cpd-build\tests\LINK 1
error LNK1181 can't open input file“fgt-lib-C++.lib” affine-test F:\CPD_Registration\cpd-build\tests\LINK 1
I didn't find the fgt-lib-C++.lib in the building directory of fgt. Any idea? Thanks.