gadomski / cpd

C++ implementation of the Coherent Point Drift point set registration algorithm.
http://www.gadom.ski/cpd
GNU General Public License v2.0
385 stars 122 forks source link

build error C2220 on windows with VS2015 #140

Closed KimHyeonjunRay closed 5 years ago

KimHyeonjunRay commented 5 years ago

Hi. I've used cpd lib very well for a few months. Now i am trying to build cpd another computer, but It's failed. My development environment is

Window : Window 7 Ultimate K Service Pack 1 64bit CPU : Inter Core i5-4590 CPU @ 3.30GHzRAM : 8.00GB Graphic : NVIDIA GeForce GTX 650 CMake : version 3.11 Visual Studio : 2015

I correct EIGEN3_INCLUDE_DIR, and then configure & generate in CMake.(See below screen capture).

image image

and then I put Open Project and build.
there are some errors in gtest.

C2220 warning treated as error - no 'object' file generated LNK1181 '..\vendor\googletest-release-1.8.0\googletest\Release\gtest_main.lib' cannot open input file

image

Thanks.

gadomski commented 5 years ago

Sorry about the delay getting back to you on this one. I've rebuilt everything on Windows and can't reproduce the issue. Some options:

  1. Try checking gtest_force_shared_crt and see if that solves anything.
  2. I just updated CPD's vendored copy of googletest to a new version, so you could try pulling master and seeing if that fixes things.
  3. If you don't need the tests, just disable WITH_TESTS and hopefully you can go on your way.
KimHyeonjunRay commented 5 years ago

Thanks gadomski. I've solved this problem using the first method. I am really appreciate to you.