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

Some issues during ColmapforVisSat installation #10

Open
hzlajojo opened this issue Sep 4, 2023 · 7 comments
Open

Some issues during ColmapforVisSat installation #10

hzlajojo opened this issue Sep 4, 2023 · 7 comments

Comments

@hzlajojo
Copy link

hzlajojo commented Sep 4, 2023

  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"

  1. 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
Copy link
Author

hzlajojo commented Sep 4, 2023

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
Copy link
Author

hzlajojo commented Sep 4, 2023

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
Copy link
Author

hzlajojo commented Sep 4, 2023

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
Copy link

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

@ouyuanzheng
Copy link

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

@fanzz1208
Copy link

ave you resolved the issue of installing ColmapForVisSat?

@hzlajojo
Copy link
Author

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.

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