Closed nihao closed 6 years ago
To build the library in the standard way, you need gmock and google-test to be installed in the source directory (this is based on the HAWQ repo requirements). Or, you can do what is done for the feedstock and explicitly remove the requirements if you do not plan to run tests.
I did follow @martindurant advice and could make it work!
Thanks for trying it out, @jarandaf . I'll close this as resolved.
This problem appears again, but now only GoogleTest_CHECK_FINE
is missing. All libg*.a
files has been copied over to /usr/local/lib folder already.
../bootstrap
-- checking compiler: GCC (4.8.)
-- adding c++0x support for gcc compiler
-- Checking whether strerror_r returns an int
-- Checking whether strerror_r returns an int -- no
-- Find GoogleTest include path: /usr/include
-- Find GoogleMock include path: /usr/include
-- Find Gtest library path: /usr/local/lib64/libgtest.a
-- Find Gmock library path: /usr/local/lib64/libgmock.a
-- GoogleTest check:
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
Could NOT find GoogleTest (missing: GoogleTest_CHECK_FINE)
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)
CMake/FindGoogleTest.cmake:52 (find_package_handle_standard_args)
CMakeLists.txt:23 (FIND_PACKAGE)
I think make may insist that gmock and gtest are in the source tree, as is done for upstream HAWQ. Neither is needed to just build the library, so you could forgo them, is is done in the conda build.
Hi , When I build the .so file from the source package, got below error:
And below is the operation list:
please help to solve, thanks.