grep
dependency, parse version with CMake
Tutorials Home | Next |
---|
If you are used to development project, here is what you need:
Name | Link | Version (Tested March 29, 2014) |
---|---|---|
Windows | 7 | |
git | http://windows.github.com/ | v1.0 |
libpointmatcher sources | https://github.com/ethz-asl/libpointmatcher | |
libnabo sources | https://github.com/ethz-asl/libnabo | |
Visual Studio | http://www.microsoft.com/visualstudio/eng/downloads | Visual Studio 2012 Express for Windows Desktop |
CMake | http://www.cmake.org/cmake/resources/software.html | cmake-2.8.11.2-win32-x86.exe |
Eigen 3 | http://eigen.tuxfamily.org/index.php?title=Main_Page#Download | v3.2.0 |
Boost | http://www.boost.org/users/download/ | v1.54.0 |
The rest of this tutorial will guide you through the different requirements step by step.
Open a console that knows the path to the MSVC compiler command (cl). We suggest using Windows PowerShell. An alternative is Developer Command Prompt, which can be located in the Start menu in the Visual Studio section.
Go to your Boost source directory, and do:
$ bootstrap
$ b2 install --prefix=build address-model=64
It may take a while to finish.
Start CMake GUI
Add the path of your libnabo source folder in the field Where is the source code.
Add a folder named build in the field Where to build the binary. This will allow you to do out-of-source compilation.
Click on the button Configure
Locate your eigen folder in the field EIGEN_INCLUDE_DIR
Add the following boolean variable and set it to true
: Boost_USE_STATIC_LIBS
Add the following PATH variable and set it to (your boost folder)/build: BOOST_ROOT
Change the variable CMAKE_CONFIGURATION_TYPES to RelWithDebInfo
Click on the button Configure again, then on Generate. Here is an example of what your CMake should look like:
Locate the Microsoft Visual Studio Solution file (libnabo.sln) in the your build folder and open it. Visual Studio should open.
Build the solution: BUILD -> Build Solution
Alternatively, you can build the solution from the command line. In (your libnabo folder)/build:
$ msbuild /m:2 libnabo.sln
(Note that the flag /m:X defines the number of cores msbuild will use while building the solution.)
Start CMake GUI, follow the same steps to configure the source and build folders for libpointmatcher, then click the Configure button.
Add the following boolean variable and set it to true: Boost_USE_STATIC_LIBS
Add the following PATH variable and set it to (your Boost folder)/build: BOOST_ROOT
Change the variable CMAKE_CONFIGURATION_TYPES to RelWithDebInfo
You will need to manually add and set the following variables:
Click on the button Configure, then on Generate. Here is an example of what your CMake should look like:
In Visual Studio, build the solution: BUILD -> Build Solution
Alternatively, you can build the solution from the command line. In (your libpointmatcher folder)/build:
$ msbuild /m:2 libpointmatcher.sln
(Note that the flag /m:X defines the number of cores msbuild will use while building the solution.)
Currently, we don't have a developer fully supporting compilation on Windows. If you can help refreshing this documentation, your help is more than welcome.
Before reporting new building issues, have a look in the current/past list of issues. Add as much details as you can since you will most probably receive answers from developers that cannot reproduce the problem on their side. Here are some of them:
Special thanks to the following users in helping us with the Windows support:
C#
with a limited set of features. The code can be found here: https://github.com/braddodson/pointmatcher.net
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。