nmerrill67 / GPU_GSPCA

Python and C/C++ library for fast, accurate PCA on the GPU
BSD 3-Clause "New" or "Revised" License
12 stars 4 forks source link

CMake error about src/googletest-build/googlemock/gtest/libgtest.a #1

Open fjgmoya opened 5 years ago

fjgmoya commented 5 years ago

Hi:

When trying to build code (make), I found an error saying "No rules to build objective src/googletest-build/googlemock/gtest/libgtest.a needed for kernel_pca_test. Halt."

Make process finish at this point. Could you help me? Thanks in advance.

nmerrill67 commented 5 years ago

Hi thanks for the interest! It looks like the google test repo might be broken! I am seeing the same error. You can skip the unit tests in compilation by doing cmake -DBUILD_TESTS=0 .. and it compiles fine for me, but you just can't run the unit tests. I will look into perhaps linking to a working gtest version, but for now this should suffice to get the library built.

fjgmoya commented 5 years ago

Thanks for your answer, Nate. Executed cmake -DBUILD_TESTS=0 .. with no problems. When I execute the "make tests" command, system says "there is no rule to construct the objective 'test'. Halt." I cannot find python pca_kernel library, I suppose it's not created. Could you help me ? Thanks in advance.

nmerrill67 commented 5 years ago

Yes that is because that flag BUILD_TESTS=0 ommits building the testing binaries. You can only link to the libraries and run the main executable.