You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/addons/01_installation.dox
+45-7Lines changed: 45 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -44,18 +44,28 @@ http://git-scm.com/
44
44
sudo apt-get install build-essential
45
45
\endverbatim
46
46
*
47
-
* <li>Install cmake and eigen3, those tools are required by the library. Type:
47
+
* <li>Install cmake. CMake is a cross-platform, open-source build system used for pretty much anything in the compilation process for the compilation/linking of the library. Type:
48
48
*
49
49
\verbatim
50
-
sudo apt-get install cmake libeigen3-dev
50
+
sudo apt-get install cmake
51
51
\endverbatim
52
52
*
53
-
* CMake is a cross-platform, open-source build system used for pretty much anything in the compilation process but the compilation/linking itself. Eigen3 is a powerful linear algebra library used for all computations in OpenGV.
53
+
*
54
+
* <li>Install eigen3. Eigen3 is a powerful linear algebra library used for all computations in OpenGV. You can either use an installed version of a local install (unzipped version of Eigen3 downloaded from Eigen website).
55
+
*
56
+
\verbatim
57
+
sudo apt-get install cmake libeigen3-dev
58
+
\endverbatim
54
59
*
55
60
* <li>Go to the top-level directory of OpenGV. Type:
56
61
*
57
62
\verbatim
58
63
mkdir build && cd build && cmake .. && make
64
+
\endverbatim
65
+
*
66
+
* If a message like "Could NOT find Eigen (missing: EIGEN_INCLUDE_DIR EIGEN_VERSION_OK)" appears. It's certainly because that you does not have Eigen3 installed on your computer system path. You can specify to cmake the path where Eigen is located by adding:
67
+
\verbatim
68
+
mkdir build && cd build && cmake .. -DEIGEN_INCLUDE_DIR:STRING="EigenIncludePath" && make
59
69
\endverbatim
60
70
*
61
71
* <li>Done. The default configuration does not build the tests or python-wrappers, please set the according variables in CMakeLists.txt to ON if you desire the tests or python-wrappers to be built as well.
* inside the build directory. While there is not a single warning under Linux, there are thousands of warnings under Windows :) If anyone knows the reason, please let us know.
104
114
*
105
-
* <li>Note that we included third-party stuff like eigen in the sub-folder third_party. It is cleaner to get a fresh download of those dependencies on your computer, and reset the INCLUDE-directories in the CMakeLists.txt file. You should absolutely do so if you already have a version of these dependencies installed on your system.
115
+
* <li>Note that we Eigen dependency is not longer included. It is better to get a fresh download of Eigen on your computer, and specify to cmake the Eigen include path with -DEIGEN_INCLUDE_DIR="path".
106
116
* </ul>
107
117
*
108
118
* \section sec_installation_35 Installation under OSX
* \section sec_installation_36 Installing OpenGV on the host OS
119
129
*
120
-
* At least under Linux and OSX, the installation on the host OS (including the headers) can be activated by simply setting INSTALL_OPENGV to ON.
130
+
* Installation on the host OS (including the headers) can be activated by simply launching the install target.
131
+
* By using "sudo make install" on Linux and OSX and by compiling the install target on the opengv Visual Studio solution in Windows. Sudo is required for system install.
132
+
* You can choose to have a local installation path by setting the cmake variable CMAKE_INSTALL_PREFIX to the path of your choice by using -DCMAKE_INSTALL_PREFIX:STRING="YourInstallPath" in the cmake command line.
133
+
\verbatim
134
+
cmake ../opengv
135
+
-DEIGEN_INCLUDE_DIR="EigenIncludePath"
136
+
-DBUILD_TESTS=ON
137
+
-DCMAKE_INSTALL_PREFIX="YourInstallPath"
138
+
make
139
+
make install #sudo not required since we use a local installation
140
+
\endverbatim
121
141
*
122
142
* \section sec_installation_4 Installing the Matlab-wrapper (Windows-version)
* <li>An additional note on 64-bit Windows/Matlab systems: If you have a Matlab version that is 64-bit, you will have to also compile OpenGV in 64-bit. You will have to follow
@@ -170,7 +190,7 @@ export LD_LIBRARY_PATH=<path to OpenGV>/build/lib:$LD_LIBRARY_PATH
170
190
* <li>Go to the opengv/matlab-folder inside Matlab, and issue the command
* The compliation of the Python wrappers can be enabled by setting the option BUILD_PYTHON to ON. Note that the python wrappers depend additionally on boost, and that the wrapper currently only allows access to the central methods.
186
206
*
207
+
* \section sec_installation_8 Using the OpenGV inside your cmake c++ project
208
+
*
209
+
* Once your have a system or local install of opengv you can use it in your own project.
210
+
* In your cmake file, add the search for the opengv library:
211
+
\verbatim
212
+
find_package(opengv REQUIRED)
213
+
if (opengv_FOUND)
214
+
add_executable(main_opengv_demo main.cpp)
215
+
target_link_libraries(main_opengv_demo opengv)
216
+
endif (opengv_FOUND)
217
+
\endverbatim
218
+
*
219
+
* Then run cmake for your project (if you are using a local install of opengv, you can specify where the library is located by using -Dopengv_DIR:
0 commit comments