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

CMake unable to find GTSAM #37

Open
MrOCW opened this issue Jan 3, 2025 · 1 comment
Open

CMake unable to find GTSAM #37

MrOCW opened this issue Jan 3, 2025 · 1 comment

Comments

@MrOCW
Copy link

MrOCW commented Jan 3, 2025

Hi, am attempting to build my own docker with CUDA 12.4 Ubuntu 22.04
Here is the relevant lines:

    git clone https://github.com/borglab/gtsam && cd gtsam && git checkout 4.2a9 && mkdir build && cd build &&\
    cmake .. -DGTSAM_BUILD_EXAMPLES_ALWAYS=OFF \
            -DGTSAM_BUILD_TESTS=OFF \
            -DGTSAM_WITH_TBB=OFF \
            -DGTSAM_USE_SYSTEM_EIGEN=ON \
            -DGTSAM_BUILD_WITH_MARCH_NATIVE=OFF &&\
    make -j$(nproc) && make install &&\

    git clone https://github.com/koide3/gtsam_points && mkdir gtsam_points/build && cd gtsam_points/build &&\
    cmake .. -DBUILD_WITH_CUDA=ON && make -j$(nproc) && make install

This is the resulting logs:

485.6 Cloning into 'gtsam_points'...
489.9 -- The CXX compiler identification is GNU 11.4.0
489.9 -- Detecting CXX compiler ABI info
490.0 -- Detecting CXX compiler ABI info - done
490.0 -- Check for working CXX compiler: /usr/bin/c++ - skipped
490.0 -- Detecting CXX compile features
490.0 -- Detecting CXX compile features - done
490.0 -- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.74.0/BoostConfig.cmake (found version "1.74.0") found components: filesystem 
490.0 CMake Error at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
490.0   Could NOT find GTSAM (missing: GTSAM_LIBRARIES)
490.0 Call Stack (most recent call first):
490.0   /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
490.0   cmake/FindGTSAM.cmake:33 (find_package_handle_standard_args)
490.0   CMakeLists.txt:31 (find_package)
490.0 
490.0 
490.0 -- Configuring incomplete, errors occurred!
490.0 See also "/gtsam_points/build/CMakeFiles/CMakeOutput.log".

ls /usr/local/lib/libgtsam* returns:

365.2 /usr/local/lib/libgtsam.so
365.2 /usr/local/lib/libgtsam.so.4
365.2 /usr/local/lib/libgtsam.so.4.2.0
365.2 /usr/local/lib/libgtsam_unstable.so
365.2 /usr/local/lib/libgtsam_unstable.so.4
365.2 /usr/local/lib/libgtsam_unstable.so.4.2.0
@koide3
Copy link
Owner

koide3 commented Jan 8, 2025

Could you try sudo apt install libtbb-dev? While TBB is actually optional, some issues in cmake config make it mandatory for building gtsam_points. I'll fix this later.

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

2 participants