source: gs3-extensions/mars-src/trunk/README.txt@ 34657

Last change on this file since 34657 was 34657, checked in by davidb, 3 years ago

Updated details after compiling on AWS Linux2

File size: 2.4 KB
Line 
1#====
2# Getting the extension
3#====
4
5Assuming 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
10The 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
27cd ext/mars
28./CREATE-VENV-PYTHON3.sh
29cd ../..
30
31ln -s ext/mars/SETUP.sh SETUP.sh
32#--
33#</One-time-only>
34#--
35
36source ./SETUP.sh
37cd ext/mars
38./CASCADE-MAKE.sh
39
40
41####=======
42# Currently bails on essentia if:
43####=======
44
45
46Checking for 'libavcodec' >= 55.34.1 : not found
47Checking for 'libavformat' : not found
48Checking for 'libavutil' : not found
49Checking for 'libavresample' : not found
50Checking for 'samplerate' : not found
51Checking for 'taglib' >= 1.9 : not found
52Checking for 'yaml-0.1' : not found
53Checking for 'fftw3f' : not found
54Checking for 'libchromaprint' : not found
55
56
57and python-config missing
58
59####=======
60
61
62To 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
74More (but scrapy) notes below
75
76
77====
78
79Getting started with running Greenstone3+Mars commands
80
81Setting 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
Note: See TracBrowser for help on using the repository browser.