Kai-46 / SatelliteSfM

A library for solving the satellite structure from motion problem
293 stars 27 forks source link

Some issues during ColmapforVisSat installation #10

Open hzlajojo opened 1 year ago

hzlajojo commented 1 year ago
  1. In line 311, ColmapForVisSat/scripts/python/build.py :

    def build_glew(args):
    path = os.path.join(args.build_path, "glew")
    if os.path.exists(path):
        return
    
    url = "https://kent.dl.sourceforge.net/project/glew/" \
          "glew/2.1.0/glew-2.1.0.zip"

    The URL is not available now, so I replaced it with the following one and it works for me:

    url = "https://sourceforge.net/projects/glew/files/glew/2.1.0/glew-2.1.0.zip/download"

  2. Boost related issues:

    
    CMake Error at /home/jojo/anaconda3/envs/SatelliteSfM/lib/cmake/Boost-1.74.0/BoostConfig.cmake:141 (find_package):
    Found package configuration file:
    
    /home/jojo/anaconda3/envs/SatelliteSfM/lib/cmake/boost_program_options-1.74.0/boost_program_options-config.cmake
    
    but it set boost_program_options_FOUND to FALSE so package
    "boost_program_options" is considered to be NOT FOUND.  Reason given by
    package:
    
    No suitable build variant has been found.
    
    The following variants have been tried and rejected:
    
    * libboost_program_options.so.1.74.0 (shared, Boost_USE_STATIC_LIBS=ON)

Call Stack (most recent call first): /home/jojo/anaconda3/envs/SatelliteSfM/lib/cmake/Boost-1.74.0/BoostConfig.cmake:258 (boost_find_component) /usr/share/cmake-3.16/Modules/FindBoost.cmake:443 (find_package) CMakeLists.txt:94 (find_package)

According to 

Found package configuration file:

/home/jojo/anaconda3/envs/SatelliteSfM/lib/cmake/boost_program_options-1.74.0/boost_program_options-config.cmake

but it set boost_program_options_FOUND to FALSE so package "boost_program_options" is considered to be NOT FOUND.

In the file of  ```/home/jojo/anaconda3/envs/SatelliteSfM/lib/cmake/boost_program_options-1.74.0/boost_program_options-config.cmake``` line 71
I set ```set(boost_program_options_FOUND 0) ``` to ```set(boost_program_options_FOUND 1)```, and it works.

Similarly, I changed the other boost related files:

...cmake/boost_filesystem-1.74.0/boost_filesystem-config.cmake ...cmake/boost_graph-1.74.0/boost_graph-config.cmake ...cmake/boost_regex-1.74.0/boost_regex-config.cmake ...cmake/boost_system-1.74.0/boost_system-config.cmake ...cmake/boost_unit_test_framework-1.74.0/boost_unit_test_framework-config.cmake


They are all in line 71, and I set ```set(boost_{packagename}_FOUND 0) ``` to ```set(boost_{packagename}_FOUND 1)```.
Since I don't want to change the settings of my environment, I just manually change the files one by one.

If you have another way to do it easily, I would appreciate it if you share it with me.
hzlajojo commented 1 year ago

Sorry about the boost-related package issue. I could not solve the problem by simply changing set(boost_program_options_FOUND 0) to set(boost_program_options_FOUND 1). After all of the manual changes, there are other problems, so please do NOT follow it.

At the end, I pass through Boost Found by reinstalling the boost package: conda install -c moussi boost-cpp (Before it was boost-1.73.0, now it's boost-1.82.0)

Anyway, it works for me.

hzlajojo commented 1 year ago

nvcc fatal : Unsupported gpu architecture 'compute_89'

---> It means we need to update cuda-toolkit>=11.8.0

conda install -c "nvidia/label/cuda-11.8.0" cuda-toolkit

hzlajojo commented 1 year ago

Compilation error ptxas fatal : Value ‘sm_30‘ is not defined for option ‘gpu-name‘ also happened, but I don't remember how to solve it. Maybe because I updated cuda-toolkit(although I reinstalled and uninstalled different versions many times, including some related packages)

ouyuanzheng commented 11 months ago

Have you resolved the issue of installing ColmapForVisSat? I also encountered an error during installation

ouyuanzheng commented 11 months ago

Running the en.sh file failed to successfully install ColmapForVisSat!

fanzz1208 commented 4 months ago

ave you resolved the issue of installing ColmapForVisSat?

hzlajojo commented 2 months ago

Sorry about the boost-related package issue. I could not solve the problem by simply changing set(boost_program_options_FOUND 0) to set(boost_program_options_FOUND 1). After all of the manual changes, there are other problems, so please do NOT follow it.

At the end, I pass through Boost Found by reinstalling the boost package: conda install -c moussi boost-cpp (Before it was boost-1.73.0, now it's boost-1.82.0)

Anyway, it works for me.

conda install -c anaconda boost-cpp Also works.