Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build error in debug mode #994

Open
Thanh-Binh opened this issue Feb 27, 2023 · 0 comments
Open

build error in debug mode #994

Thanh-Binh opened this issue Feb 27, 2023 · 0 comments

Comments

@Thanh-Binh
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant