Skip to content

Commit ff9c4da

Browse files
committed
Modify for Fedora build
1 parent 4bdc76d commit ff9c4da

2 files changed

Lines changed: 12 additions & 7 deletions

File tree

conda.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: opensfm
22
dependencies:
33
- python=3.8
4-
- cmake
4+
- cmake=3.31
55
- opencv
66
- ceres-solver=2.1
77
- conda-forge::llvm-openmp

doc/source/building.rst

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,20 @@ See this `Dockerfile <https://github.com/mapillary/OpenSfM/blob/main/Dockerfile>
4343
Installing dependencies on Fedora
4444
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4545

46-
Tested on Fedora 33 & 34
46+
Install conda using dnf with::
4747

48-
sudo dnf install zlib-devel libjpeg-devel python3-devel g++ ceres-solver-devel opencv-devel python3-opencv eigen3-devel libomp cmake glog-devel
48+
sudo dnf install conda
49+
conda init
4950

50-
There's an `issue <https://github.com/ceres-solver/ceres-solver/issues/491>`_ with the gflags-config.cmake distributed with Fedora. This quick workaround works::
51+
Close and re-open your terminal
5152

52-
sudo sed -i "s^set (GFLAGS_INCLUDE_DIR.*^set (GFLAGS_INCLUDE_DIR "/usr/include")^" /usr/lib64/cmake/gflags/gflags-config.cmake
53+
Install the conda environment with:
5354

54-
Install python dependencies before building::
55+
conda env create --file conda.yml --yes
5556

56-
cd ~/src/OpenSfM && pip install -r requirements.txt
57+
Activate the conda environment with::
58+
59+
conda activate opensfm
5760

5861
Installing dependencies on MacOSX
5962
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -64,6 +67,8 @@ Install conda using brew with::
6467
export PATH='/Users/USERNAME/anaconda3/bin:$PATH'
6568
conda init
6669

70+
Close and re-open your terminal
71+
6772
Install the conda environment with:
6873

6974
conda env create --file conda.yml --yes

0 commit comments

Comments
 (0)