colmap / glomap

GLOMAP - Global Structured-from-Motion Revisited
BSD 3-Clause "New" or "Revised" License
1.46k stars 93 forks source link

SuiteSparse::CHOLMOD but the target was not found #101

Open ioir123ju opened 2 months ago

ioir123ju commented 2 months ago

I use command: cmake .. -GNinja -DCMAKE_CUDA_ARCHITECTURES=75 -DSuiteSparse_CHOLMOD_LIBRARY="/usr/lib/x86_64-linux-gnu/libcholmod.so" -DSuiteSparse_CHOLMOD_INCLUDE_DIR="/usr/include/suitesparse" And I'm sure I have /usr/lib/x86_64-linux-gnu/libcholmod.so and /usr/include/suitesparse. image

ichsan2895 commented 2 months ago

How about using this command only?

pip install cmake==3.28.4

cd path/to/glomap

mkdir build

cd build

cmake .. -GNinja -DCMAKE_CUDA_ARCHITECTURES=75

I had success for it without explicitly pointing -DSuiteSparse_CHOLMOD_LIBRARY="/usr/lib/x86_64-linux-gnu/libcholmod.so" -DSuiteSparse_CHOLMOD_INCLUDE_DIR="/usr/include/suitesparse"

It automatically stated in glomap/build/CMakeCache.txt

//Path to a file.
SuiteSparse_CHOLMOD_INCLUDE_DIR:PATH=/usr/include/suitesparse

//Path to a library.
SuiteSparse_CHOLMOD_LIBRARY:FILEPATH=/usr/lib/x86_64-linux-gnu/libcholmod.so
ioir123ju commented 1 month ago

只使用这个命令怎么样?

pip install cmake==3.28.4

cd path/to/glomap

mkdir build

cd build

cmake .. -GNinja -DCMAKE_CUDA_ARCHITECTURES=75

我没有明确指出就成功了-DSuiteSparse_CHOLMOD_LIBRARY="/usr/lib/x86_64-linux-gnu/libcholmod.so" -DSuiteSparse_CHOLMOD_INCLUDE_DIR="/usr/include/suitesparse"

它自动在glomap/build/CMakeCache.txt

//Path to a file.
SuiteSparse_CHOLMOD_INCLUDE_DIR:PATH=/usr/include/suitesparse

//Path to a library.
SuiteSparse_CHOLMOD_LIBRARY:FILEPATH=/usr/lib/x86_64-linux-gnu/libcholmod.so

Yes, I saw suitesparse in glomap/build/CMakeCache.txt, but "cmake .. -GNinja -DCMAKE_CUDA_ARCHITECTURES=75 " still reporting same errors. My cmake version is 3.30.1. It is worth mentioning that the initial version of Glomap compiled without any issues. I use ${SuiteSparse_CHOLMOD_LIBRARY} replace SuiteSparse::CHOLMOD is work. image