Project

General

Profile

Linux setup » History » Version 1

Alexis Jeandet, 30/03/2014 05:30 PM

1 1 Alexis Jeandet
h1. Linux setup
2
3
{{>toc}}
4
5
*Please note that SocExplorer is still under development, so things are supposed to move, it can fail to build sometimes or be buggy.*
6
7
Note also that we recently change from Qt4 to Qt5 so all the new SocExplorer code will be written for Qt5.
8
9
h2. Prerequisites
10
11
All the next steps can be distribution dependent SocExplorer development is done on Fedora 19 and 20, but is should work with any other one, feedback are welcome!
12
13
* First you need a working linux machine with:
14
** Qt5 sdk installed on it plus all the developments packages for Qt. Remember also to install modules such as QtWebkit.
15
** Python 2.X with headers.
16
* Then you need to install PythonQt, a modified version for SocExplorer can be downloaded "here":https://hephaistos.lpp.polytechnique.fr/rhodecode/HG_REPOSITORIES/LPP/INSTRUMENTATION/USERS/JEANDET/PythonQt/archive/tip.zip
17
* To install PythonQt you just have to extract it somewhere, then from a terminal run:
18
<pre><code class="bash">
19
  qmake-qt5
20
  make 
21
  sudo make install
22
</code></pre>
23
24
h2. Building SocExplorer
25
26
* To build SocExplorer, once PythonQt is correctly build and installed you can get SocExplorer source code from code repository with this command:
27
<pre><code class="bash">
28
  hg clone https://hephaistos.lpp.polytechnique.fr/rhodecode/HG_REPOSITORIES/LPP/INSTRUMENTATION/SocExplorer SocExplorer
29
</code></pre>
30
You will get a SocExplorer directory with all the source code inside. To build it you just have to run:
31
<pre><code class="bash">
32
  cd SocExplorer
33
  qmake-qt5
34
  make  #note that to speedup the make step you can use "make -j N" to parallelize on N process(replace N with the number of cores you have).
35
36
</code></pre>
37
* Now you can install SocExplorer, it will install the SocExplorer binary plus some libraries and desktop icon in your system, just run:
38
<pre><code class="bash">
39
  sudo make install
40
  #this doesn't install the registers xml description file.
41
  mkdir -p ~/.SocExplorer/config
42
  cp ressources/Grlib.xml ~/.SocExplorer/config/Grlib.xml
43
</code></pre>
44
45
Affected folders are:
46
* /usr/bin for SocExplorer executables.
47
* QT_HEADERS_PATH/SocExplorer for SDK headers.
48
* QT_LIB_PATH for shared libraries.
49
* /usr/share/qtcreator/templates/wizards/SocExplorerPlugin for Qtcreator wizard.
50
* /usr/share/applications/ for desktop launcher.
51
* /etc/SocExplorer for global config files.
52
* ~/.SocExplorer for plugin and per user config files.
53
54
Now you should have a working SocExplorer, you can start to install plugins  "here":https://hephaistos.lpp.polytechnique.fr/rhodecode/HG_REPOSITORIES/LPP/INSTRUMENTATION/SocExplorerPlugins  or start write your own.