htm.core icon indicating copy to clipboard operation
htm.core copied to clipboard

build error in debug mode

Open Thanh-Binh opened this issue 2 years ago • 0 comments

Hi all, while Build in release mode runs perfectly, there is a bug by building in debug mode (do last step for unit testes).

make[2]: *** No rule to make target '/home/binh/nupic/htm2023/htm.core/build/ThirdParty/lib/libgtestd.a', needed by 'src/test/unit_tests'.  Stop.
make[2]: *** Waiting for unfinished jobs....
[ 98%] Building CXX object src/test/CMakeFiles/unit_tests.dir/__/examples/hello/HelloSPTP.cpp.o
make[1]: *** [CMakeFiles/Makefile2:422: src/test/CMakeFiles/unit_tests.dir/all] Error 2
make: *** [Makefile:156: all] Error 2

This bug is caused by using libgtestd.a, which is not built before from the ThirdParty libraries. It is not a big problem, because we can easily solve it by copying libgtest.a to libgtestd.a instead of building an extra gtest-lib in Debug mode and run make -j8 install again.

It is fine if we modify CMakeList.txt for avoiding it. Thanks

Thanh-Binh avatar Feb 27 '23 14:02 Thanh-Binh