-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
64 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,36 +26,47 @@ Dependencies from the default Ubuntu repositories: | |
libgoogle-glog-dev | ||
``` | ||
|
||
Update if the version of cmake < 3.16 | ||
If the version of CMake is less than 3.16, update it. | ||
```shell | ||
wget https://cmake.org/files/v3.21/cmake-3.21.0-linux-x86_64.tar.gz | ||
tar -xf cmake-3.21.0-linux-x86_64.tar.gz | ||
cp -r cmake-3.21.0-linux-x86_64 /usr/share/ | ||
ln -sf /usr/share/cmake-3.21.0-linux-x86_64/bin/cmake /usr/bin/cmake | ||
``` | ||
|
||
Install [XRPRimer](https://github.com/openxrlab/xrprimer) | ||
Install [xrprimer](https://github.com/openxrlab/xrprimer) | ||
```shell | ||
git clone [email protected]:openxrlab/xrprimer.git | ||
cd xrprimer | ||
cmake -S . -Bbuild -DBUILD_EXTERNAL=ON -DCMAKE_BUILD_TYPE=Release | ||
git checkout xrslam-opencv3.4.7 | ||
cmake -S. -Bbuild -DBUILD_EXTERNAL=ON -DCMAKE_BUILD_TYPE=Release -DENABLE_PRECOMPILED_HEADERS=OFF | ||
cmake --build build --target install -j4 | ||
``` | ||
|
||
Install [Pangolin]([email protected]:stevenlovegrove/Pangolin.git) | ||
```shell | ||
git clone [email protected]:stevenlovegrove/Pangolin.git | ||
cd Pangolin && cmake -B build && cmake --build build -j4 | ||
cd build | ||
sudo make install | ||
Ensure that the root directories of xrsfm and xrprimer remain the same. | ||
|
||
``` | ||
xrprimer | ||
├── | ||
... | ||
xrsfm | ||
├── docs | ||
├── scripts | ||
├── src | ||
... | ||
``` | ||
|
||
Compile XRSfM:: | ||
Compile xrsfm | ||
```shell | ||
git clone [email protected]:openxrlab/xrsfm.git | ||
cd xrsfm && cmake -B build && cmake --build build -j4 | ||
``` | ||
|
||
Note: If you encounter difficulties during the compilation of xrprimer, you can try installing xrsfm without xrprimer. This requires OpenCV and Ceres-Solver. Then you can install xrsfm using the following command: | ||
```shell | ||
cd xrsfm && cmake -B build -DXRPRIMER_ENABLED=OFF && cmake --build build -j4 | ||
``` | ||
|
||
### Dockerfile | ||
|
||
We provide a [Dockerfile](../../Dockerfile) to build an image. Ensure that you are using [docker version](https://docs.docker.com/engine/install/) >=19.03 and `"default-runtime": "nvidia"` in daemon.json. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,24 +38,35 @@ ln -sf /usr/share/cmake-3.21.0-linux-x86_64/bin/cmake /usr/bin/cmake | |
```shell | ||
git clone [email protected]:openxrlab/xrprimer.git | ||
cd xrprimer | ||
cmake -S . -Bbuild -DBUILD_EXTERNAL=ON -DCMAKE_BUILD_TYPE=Release | ||
git checkout xrslam-opencv3.4.7 | ||
cmake -S. -Bbuild -DBUILD_EXTERNAL=ON -DCMAKE_BUILD_TYPE=Release -DENABLE_PRECOMPILED_HEADERS=OFF | ||
cmake --build build --target install -j4 | ||
``` | ||
|
||
安装 [Pangolin](https://github.com/stevenlovegrove/Pangolin) | ||
```shell | ||
git clone [email protected]:stevenlovegrove/Pangolin.git | ||
cd Pangolin && cmake -B build && cmake --build build -j4 | ||
cd build | ||
sudo make install | ||
确保xrsfm和xrprimer的根目录保持一致。 | ||
``` | ||
xrprimer | ||
├── | ||
... | ||
xrsfm | ||
├── docs | ||
├── scripts | ||
├── src | ||
... | ||
``` | ||
|
||
|
||
编译 XRSfM | ||
```shell | ||
git clone [email protected]:openxrlab/xrsfm.git | ||
cd xrsfm && cmake -B build && cmake --build build -j4 | ||
``` | ||
|
||
注意:如果您在编译xrprimer时遇到困难,可以尝试在没有xrprimer的情况下安装xrsfm。这需要OpenCV和Ceres-Solver。然后,您可以使用以下命令安装xrsfm: | ||
```shell | ||
cd xrsfm && cmake -B build -DXRPRIMER_ENABLED=OFF && cmake --build build -j4 | ||
``` | ||
|
||
### 通过Docker镜像运行 | ||
|
||
We provide a [Dockerfile](../../Dockerfile) to build an image. Ensure that you are using [docker version](https://docs.docker.com/engine/install/) >=19.03 and `"default-runtime": "nvidia"` in daemon.json. | ||
|