Skip to content

Some issues during ColmapforVisSat installation #10

@hzlajojo

Description

@hzlajojo
  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.

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