forked from openMVG/openMVG
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
82 lines (64 loc) · 1.92 KB
/
BUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
=====================================
OpenMVG (open Multiple View Geometry)
=====================================
-----------------
Build instruction
-----------------
Required tools:
* Cmake
* Git
Getting the sources:
$ git clone --recursive https://github.com/openMVG/openMVG.git
or
$ git clone https://github.com/openMVG/openMVG.git
$ cd openMVG
$ git submodule init
$ git submodule update
Depending of your platform :
-----------------
Linux compilation
-----------------
Setup the required external library.
* sudo apt-get install libpng-dev libjpeg-dev libxxf86vm1 libxxf86vm-dev
$ git clone --recursive https://github.com/openMVG/openMVG.git
$ cd openMVG
$ ls
AUTHORS BUILD docs logo README src ...
$ cd ..
$ mkdir openMVG_Build
$ cd openMVG_Build
$ cmake -DCMAKE_BUILD_TYPE=RELEASE . ../openMVG/src/
If you want have an IDE openable project with codeblocks:
$ cmake -G "CodeBlocks - Unix Makefiles" -DCMAKE_BUILD_TYPE=RELEASE . ../openMVG/src/
Compile the project
$ make
For a multi-core compilation (Replace NBcore with the number of threads)
$ make -j NBcore
Launch test
$ make test
Have fun with the samples
$ cd opengMVG_Samples
-------------------
Windows compilation
-------------------
Checkout the project
$ git clone --recursive https://github.com/openMVG/openMVG.git
Open cmake-gui
Fill the source path with the src openMVG path.
Fill the build path with a new directory
Select your Visual Studio IDE and click configure and then generate
Open the .sln solution created in your build directory.
Change the target to Release.
Compile the libraries and binaries samples.
-------------------
Mac compilation
-------------------
$ git clone --recursive https://github.com/openMVG/openMVG.git
$ cd openMVG
$ ls
AUTHORS BUILD docs logo README src ...
$ cd ..
$ mkdir openMVG_Build
$ cd openMVG_Build
$ cmake -DCMAKE_BUILD_TYPE=RELEASE -G "Xcode" . ../openMVG/src/
$ xcodebuild -configuration Release