File: tutorial-import-visp-into-EclipseIDE.dox

package info (click to toggle)
visp 3.6.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 119,296 kB
  • sloc: cpp: 500,914; ansic: 52,904; xml: 22,642; python: 7,365; java: 4,247; sh: 482; makefile: 237; objc: 145
file content (83 lines) | stat: -rw-r--r-- 3,059 bytes parent folder | download
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
82
83
/**
  \page tutorial-import-visp-into-EclipseIDE Tutorial: How to import a CMake project that uses ViSP in Eclipse IDE
  \tableofcontents

\note We assume in this tutorial that you have successfully installed ViSP either with an \ref tutorial_install_pkg or with an \ref tutorial_install_src.

In this tutorial you will learn how to import a CMake project that uses ViSP into Eclipse IDE.

This tutorial uses CMake to build projects. If you are not familiar with CMake, you can check the <a href="http://www.cmake.org/cmake/help/cmake_tutorial.html">tutorial</a>.

\section image_adjust_eclipse Adjust Eclipse settings

1) You need to download Eclipse IDE <a href="https://eclipse.org/downloads">archive</a>.

2) Extract Eclipse from archive
\code
$ tar -zxvf eclipse-***.tar.gz -C {target directory} (For Linux)
\endcode

3)  Create a CMake project or take the project from \ref tutorial-getting-started which is used in this tutorial

4)  Open Eclipse

\image html img-visp-into-eclipse-4.png

5)  File > New > Makefile Project with Existing Code
\image html img-visp-into-eclipse-5.png

6)  Browse > Select directory to the CMake project > Press "Finish"
\image html img-visp-into-eclipse-6.png

7)  Goto to the Project directory and execute "cmake . " in console in order to \ref image_unix_config

\image html img-visp-into-eclipse-7.png

8)  Right click on Project > Press "Properties" > C/C++ Build > Builder Settings

- Make sure that "Build command" contains "make"
- Make sure that "Build directory" contains path to the folder which contains MakeFile of the project
\image html img-visp-into-eclipse-8.png

9) Project > Build all

- Make sure that Project builds
\image html img-visp-into-eclipse-9.png

10) Right click on Project > Run As > Run Configurations > C/C++ Application > "Project" Default
\image html img-visp-into-eclipse-10.png

11) C/C++ Application > Browse > Browse path to the executable file of your project > Apply
\image html img-visp-into-eclipse-11.png

12) Now run the Project from Eclipse as usual
\image html img-visp-into-eclipse-12.png

\section image_unresolved_inclusion Unresolved inclusion
1)  If you see issues such as "Unresolved inclusion"
You need to perform next steps to solve it
\image html img-visp-into-eclipse-unr-1.png

2) Right click on Project > Press "Properties"
\image html img-visp-into-eclipse-unr-2.png

3) C/C++ General > Preprocessor Include Path etc. > Providers > Enable "CDT GCC Built-in Compiler Settings"
\image html img-visp-into-eclipse-unr-3.png

4) Wait until C++ indexer finished his work
\image html img-visp-into-eclipse-unr-4.png

\section image_eclipse_arguments Program arguments
For some projects you need to specified input arguments
\image html img-visp-into-eclipse-arg-1.png

Right click on Project > Run As > Run Configurations > C/C++ Application > "Project" Default > Arguments

- Write arguments to "Program arguments"
\image html img-visp-into-eclipse-arg-2.png

\section eclipse_image_next Next tutorial

You are now ready to see the \ref tutorial-image-display

*/