1 | #====
|
---|
2 | # Getting the extension
|
---|
3 | #====
|
---|
4 |
|
---|
5 | Assuming you are in the Greensotne3 top-level (i.e. GSDL3SRCHOME) directory,
|
---|
6 | (if not already done so) this extension can be checked out as follows:
|
---|
7 |
|
---|
8 | svn co https://svn.greenstone.org/gs3-extensions/mars-src/trunk ext/mars
|
---|
9 |
|
---|
10 | The extension is desigend to combine with an interface and site of the same name:
|
---|
11 |
|
---|
12 | cd web/sites
|
---|
13 | svn co https://svn.greenstone.org/main/trunk/model-sites-dev/mars
|
---|
14 | cd ../interfaces/
|
---|
15 | svn co https://svn.greenstone.org/main/trunk/model-interfaces-dev/mars
|
---|
16 | cd ../..
|
---|
17 |
|
---|
18 |
|
---|
19 | #====
|
---|
20 | # Compiling the extension
|
---|
21 | #====
|
---|
22 |
|
---|
23 | #--
|
---|
24 | #<One-time-only>
|
---|
25 | #--
|
---|
26 |
|
---|
27 | cd ext/mars
|
---|
28 | ./CREATE-VENV-PYTHON3.sh
|
---|
29 | cd ../..
|
---|
30 |
|
---|
31 | ln -s ext/mars/SETUP.sh SETUP.sh
|
---|
32 | #--
|
---|
33 | #</One-time-only>
|
---|
34 | #--
|
---|
35 |
|
---|
36 | source ./SETUP.sh
|
---|
37 | cd ext/mars
|
---|
38 | ./CASCADE-MAKE.sh
|
---|
39 |
|
---|
40 |
|
---|
41 | ####=======
|
---|
42 | # Currently bails on essentia if:
|
---|
43 | ####=======
|
---|
44 |
|
---|
45 |
|
---|
46 | Checking for 'libavcodec' >= 55.34.1 : not found
|
---|
47 | Checking for 'libavformat' : not found
|
---|
48 | Checking for 'libavutil' : not found
|
---|
49 | Checking for 'libavresample' : not found
|
---|
50 | Checking for 'samplerate' : not found
|
---|
51 | Checking for 'taglib' >= 1.9 : not found
|
---|
52 | Checking for 'yaml-0.1' : not found
|
---|
53 | Checking for 'fftw3f' : not found
|
---|
54 | Checking for 'libchromaprint' : not found
|
---|
55 |
|
---|
56 |
|
---|
57 | and python-config missing
|
---|
58 |
|
---|
59 | ####=======
|
---|
60 |
|
---|
61 |
|
---|
62 | To build an Essentia-processing based collection
|
---|
63 |
|
---|
64 |
|
---|
65 | cd web/sites/.../collect/amc-essentia
|
---|
66 | ./IMPORT.sh -maxdocs 2
|
---|
67 | ./BUILDCOL.sh
|
---|
68 | ./ACTIVATE.sh
|
---|
69 |
|
---|
70 |
|
---|
71 |
|
---|
72 | #====
|
---|
73 |
|
---|
74 | More (but scrapy) notes below
|
---|
75 |
|
---|
76 |
|
---|
77 | ====
|
---|
78 |
|
---|
79 | Getting started with running Greenstone3+Mars commands
|
---|
80 |
|
---|
81 | Setting up your environment
|
---|
82 |
|
---|
83 | # activate python3
|
---|
84 | # source ./gs3-setup.bash
|
---|
85 |
|
---|
86 | # Above now superseded with:
|
---|
87 |
|
---|
88 | source ./SETUP.sh
|
---|
89 |
|
---|
90 |
|
---|
91 |
|
---|
92 |
|
---|
93 |
|
---|
94 | # Pick which version of Python you want to work with (v2 or v3)
|
---|
95 |
|
---|
96 | source ./darwin/virtualenv-python2/bin/activate
|
---|
97 |
|
---|
98 | source ./darwin/virtualenv-python3/bin/activate
|
---|
99 |
|
---|
100 | # To run essentia python tests need to have install sklearn
|
---|
101 |
|
---|
102 | pip install sklearn
|
---|
103 |
|
---|
104 | # Then can run
|
---|
105 |
|
---|
106 | cd packages/essentia-full-git
|
---|
107 | python ./waf run_python_tests
|
---|
108 |
|
---|
109 |
|
---|
110 | # To build with Greenstone, need to teach virtualenv-python where Essensia was installed,
|
---|
111 | # e.g.
|
---|
112 |
|
---|
113 | export PYTHONPATH=$GEXT_MARS_INSTALLED/lib/python2.7/site-packages
|
---|
114 |
|
---|
115 | export PYTHONPATH=$GEXT_MARS_INSTALLED/lib/python3.7/site-packages
|
---|
116 |
|
---|
117 |
|
---|
118 |
|
---|
119 |
|
---|
120 |
|
---|
121 |
|
---|
122 | # On Macrocarpa, the follow compiles up with python2
|
---|
123 |
|
---|
124 | cd src/essentia
|
---|
125 |
|
---|
126 | ./waf configure --with-examples --with-python --prefix=/tmp/essentia
|
---|
127 | ./waf
|
---|
128 | ./waf install
|
---|