Skip to content

CMake unable to find GTSAM #37

@MrOCW

Description

@MrOCW

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions