forked from openMVG/openMVG
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
66 lines (50 loc) · 1.44 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
=====================================
OpenMVG (open Multiple View Geometry)
=====================================
-----------------
Build instruction
-----------------
Required tools:
* Cmake
On linux:
* => zlib, png, jpeg
* sudo apt-get install zlib1-dev libpng-dev libjpeg8-dev
-----------------
Linux compilation
-----------------
$ 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
-------------------
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
-------------------
$ 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