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

Gtest error while doing catkin_make --pkg sptam -DCMAKE_BUILD_TYPE=RelWithDebInfo -DSINGLE_THREAD=OFF -DSHOW_TRACKED_FRAMES=ON -DSHOW_PROFILING=ON -DPARALLELIZE=ON #42

Closed
vaayroon opened this issue Feb 11, 2020 · 3 comments

Comments

@vaayroon
Copy link

Hi, i am new in ROS and i tried to run your sptam slam. I followed all the instructions as readme indicate. but when I try to to catkin_make --pkg sptam -DCMAKE_BUILD_TYPE=RelWithDebInfo -DSINGLE_THREAD=OFF -DSHOW_TRACKED_FRAMES=ON -DSHOW_PROFILING=ON -DPARALLELIZE=ON, I get an error:
I am working in ubuntu 16 and ROS Kinetic.
Thanks in advance for your reply.


.....
-- Found Intel Thread Building Blocks (TBB) library: /usr/lib/x86_64-linux-gnu/libtbb.so, assuming SuiteSparseQR was compiled with TBB.
-- Found TBB_MALLOC library: /usr/lib/x86_64-linux-gnu/libtbbmalloc.so
-- Found Intel Thread Building Blocks (TBB) Malloc library: /usr/lib/x86_64-linux-gnu/libtbbmalloc.so
-- Found SUITESPARSE_CONFIG headers in: /usr/include/suitesparse
-- Found SUITESPARSE_CONFIG library: /usr/lib/x86_64-linux-gnu/libsuitesparseconfig.so;/usr/lib/x86_64-linux-gnu/librt.so
-- Found LIBRT library: /usr/lib/x86_64-linux-gnu/librt.so
-- Adding librt: /usr/lib/x86_64-linux-gnu/librt.so to SuiteSparse_config libraries (required on Linux & Unix [not OSX] if SuiteSparse is compiled with timing).
-- Did not find METIS library (optional SuiteSparse dependency)
CMake Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
Could NOT find GTest (missing: GTEST_LIBRARY GTEST_MAIN_LIBRARY)
Call Stack (most recent call first):
/usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.5/Modules/FindGTest.cmake:205 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
sptam/src/tests/CMakeLists.txt:4 (find_package)

-- Configuring incomplete, errors occurred!
See also "/home/kevinu/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/kevinu/catkin_ws/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed

@taihup
Copy link
Contributor

taihup commented Feb 12, 2020

Hi @vaayroon, please check the issues: #12 and #13 where other users faced the same problem.

However, I summarised it here:

Uninstall completely gtest.

Then, compile it from the scratch:

cd /usr/src/gtest/
sudo mkdir build
cd build
sudo cmake .. -DBUILD_SHARED_LIBS=ON

Remove devel and build directory inside catkin workspace in order to recompile from the scratch S-PTAM.

@wanjh1024
Copy link

cd /usr/src/gtest/
sudo mkdir build
cd build
sudo cmake .. -DBUILD_SHARED_LIBS=ON
sudo make
sudo cp *.so /usr/lib/

@taihup
Copy link
Contributor

taihup commented Apr 22, 2021

Thanks @wanjh1024 for completing the answer. Closing the issue.

@taihup taihup closed this as completed Apr 22, 2021
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

3 participants