source: libs/SAMGAR V2/INSTALL_Linux.txt @ 582

Revision 582, 4.2 KB checked in by lmalek, 9 years ago (diff)

Video examples linux fixed

Line 
1This document describes installation of SAMGAR V2 on Linux system (tested on Ubuntu x64).
2
3------------------------------------------------------------------------------------
4INSTALL
5------------------------------------------------------------------------------------
6
70. Start from creating a common directory for installation porpoise
8
9mkdir SRC_DIR
10cd SRC_DIR
11
121. Download the latest version of SAMGAR V2 from
13
14svn co https://svn.lirec.org/libs/SAMGAR%20V2/ SAMGAR_V2
15
16On yarp-2.3.0 aplication works but it was sometimes unstable. On yarp-2.3.1 aplication seams to work more stable.
17
182. Download and install the latest version of yarp from download page
19http://eris.liralab.it/yarp/specs/dox/download.html
20or do this from command line i.e.
21
22wget http://downloads.sourceforge.net/yarp0/yarp-2.3.1.tar.gz
23
24Then extract the archive
25
26tar xf yarp-2.3.1.tar.gz
27
283. Make sure that you have installed all essential software and libraries for compilation of yarp like ACE.
29
30sudo aptitude install libace-dev cmake cmake-curses-gui
31
32You can omit cmake-curses-gui, but I recommend to install this packet.
33Having all essential software and libraries installed you can install Qt that is required by SAMGAR V2
34
35sudo aptitude install libqt4-dev
36
374. Copy SAMGAR V2 GUI files to proper yarp subdirestory
38
39cp SAMGAR_V2/GUI/*.cpp yarp-2.3.1/src/yarpserver/src/
40cp SAMGAR_V2/GUI/*.h yarp-2.3.1/src/yarpserver/src/
41
425. Modify CMakeList.txt file responsible for compiling yarpserver
43
44gedit yarp-2.3.1/src/yarpserver/CMakeList.txt
45
46After line
47
48if (CREATE_YARPSERVER3)
49
50add following lines
51
52FIND_PACKAGE(Qt4 REQUIRED)
53SET(QT_USE_QTXML 1)
54INCLUDE(${QT_USE_FILE})
55
56then beforre the line
57
58add_executable(yarpserver3 ...)
59
60add line
61
62qt_wrap_cpp(yarpserver3 SERVER3GUI_MOC ${CMAKE_CURRENT_SOURCE_DIR}/src/server3Gui.h)
63
64add at the end of add_executable(yarpserver3 ...) file list following files
65
66${CMAKE_CURRENT_SOURCE_DIR}/src/samheader.h ${CMAKE_CURRENT_SOURCE_DIR}/src/server3Gui.h ${CMAKE_CURRENT_SOURCE_DIR}/src/server3Gui.cpp ${SERVER3GUI_MOC}
67
68Finally change the line
69
70target_link_libraries(yarpserver3 YARP_init)
71
72to
73
74target_link_libraries(yarpserver3 YARP_init ${QT_LIBRARIES})
75
76Then go to YARP directory
77
78cd yarp-2.3.1
79
80and configure cmake
81
82ccmake .
83
84I suggest building inside the source because otherwise one might have some problems with further usage of SWIG wrapper.
85
86Select to ON position variables CREATE_GUIS and CREATE_YARPSERVER3
87Then press two times [c] and [g] to generate makefile. Build yarp
88
89make
90
91and install it
92
93sudo make install
94
956. To build example SAMGAR application go to
96
97cd ../SAMGAR_V2/Module
98
99to prevent making mess in code this time I suggest to build outside the source, so we have to create a new directory
100
101mkdir build
102cd build
103ccmake ../
104
105Type [c] two times and then [g]. After creating makefile compile the example module
106
107make
108
1097. To make example working first start
110
111yarpserver3
112
113and then the example module
114
115SAMGAR_V2/Module/build/SamExample
116
117Aster starting SamExample in yarpserver3 GUI appropriate elements should appear. You can connect modules ports by clicking
118left mouse button on the desired ports.
119
120------------------------------------------------------------------------------------
121KNOWN BUGS
122------------------------------------------------------------------------------------
123
1241. Above mentioned installation process does not include the icons and other graphical elements
125
1262. Starting yarpserver3 application in the directory containing SAMGAR V2 graphics (GUI/Bin directory) caused Segmentation Fault
127after starting SAMGAR_V2/Module/build/SamExample with following error description
128
129QObject::connect: Cannot queue arguments of type 'QTextCursor'
130(Make sure 'QTextCursor' is registered using qRegisterMetaType().)
131QPixmap: It is not safe to use pixmaps outside the GUI thread
132QPixmap: It is not safe to use pixmaps outside the GUI thread
133QPixmap: It is not safe to use pixmaps outside the GUI thread
134QPixmap: It is not safe to use pixmaps outside the GUI thread
135QPixmap: It is not safe to use pixmaps outside the GUI thread
136QPixmap: It is not safe to use pixmaps outside the GUI thread
137Segmentation fault
138
1393. Installation process should be more simple. Patches and script should be applied.
140
141
142--- lukasz.malek@pwr.wroc.pl
Note: See TracBrowser for help on using the repository browser.