03_ Source Code Compilation

Source: Internet
Author: User

Reference files

Http://www.roboticslibrary.org/tutorials/build-windows

Download CMake

If you want to compile yourself, then you need to download no less than 2.8.11 cmake, I am under the following version

Cmake-3.6.0-rc1-win64-x64.msi

Compile preparation

According to the documentation, the library was compiled by the VS2010 compiler:

Note: Be sure to select all of the build_rl_** so that you can build the full version .

How to know which modules to rely on

E:\01_workspace\05_RL\rl-0.6.2\Modules can query

configuration, that is, resolving -notfound Place.

1. Check the Advance

2. Adding compilation parameters

Set vcbuild_default_options=/m%number_of_processors%

Set CL=/MP

3. Modify the installation path (installed to C drive by default)

4. Try the build below to discover which items need to be configured

5. Download Eigen3

After downloading the EIGEN3, set the path.

Then click Gen to continue with the build try

6. Download and set up boost

7 ... Wait for other libraries to compile and install, rely on too many things, it is rare to download the compilation

Simple way: Download the installation version directly, and then install it, he will automatically put the dependent library and header files are placed on the local disk.

And then here directly all with the installation version of the library, convenient and useful!

Make sure you finish all the mistakes! Lib can be directly assigned to the corresponding LIB file.

The configuration is complete as follows:

Compile

Then click <generate>, and you are ready to build!

To the build directory to see the generated project files

Compile all (this will certainly have compile errors, because some libraries are not the correct path, or some libraries are not fully dependent, need to be processed), such as Wrlview this program, but also need to add the following several lib.

Compilation issues:

1. unresolved external symbol "Public:class Qwidget * __thiscall soqtcomponent::getwidget (void) const" (? [Email protected] @

Add E:\Program Files (x86) \rl-0.6.2\lib\soqt1d.lib

2. Unresolved external symbol "Public:void __thiscall sobase::ref (void) const" (? [Email protected] @ @QBEXXZ), the symbol in the letter

Add E:\Program Files (x86) \rl-0.6.2\lib\coin3d.lib

3. unresolved external symbol _xmlsaveformatfile, the symbol in function "Public:void __thiscall rl::xml::D Ocument::save (class std::basic_string< Char,s

Add E:\Program Files (x86) \rl-0.6.2\lib\libxml2.lib

In fact, this problem can be solved in the configuration, that is, Lib specifies which Lib can be:

Finally compiled by:

Complete

The path that the compiled Lib is stored in is:

E:\01_workspace\05_rl\rl-0.6.2\build\src\rl\[name]\[debug]\ below. This will have the debug version of the library.

Installation

We can copy the debug repository of RL to E:\Program Files (x86) \rl-0.6.2\lib (this directory is generated by the Windows installation version, the RL library and the dependent libraries are in this directory) as needed.

Since the RL installation file is not available in the debug version of the RL library, there are 2 versions of other third-party libraries such as solid.

A setup script is provided here:

Effect

After installing your own compiled library, you can debug the project, but also directly debug the RL library, because the compiled lib inside the debug information has been recorded in our own downloaded code path.

03_ Source Code Compilation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.