1 | #!/bin/bash
|
---|
2 |
|
---|
3 | source ../cascade-make/lib/cascade-lib.bash GEXT_MARS .. $*
|
---|
4 |
|
---|
5 | if [ -z "$GEXT_MARS_DEVEL" ] ; then
|
---|
6 | cd .. && source ./devel.bash
|
---|
7 | fi
|
---|
8 |
|
---|
9 | # Turns out essentia has an optional script inside it for getting and compiling
|
---|
10 | # up the necessary supporting packages. The configure options it uses are more
|
---|
11 | # optimal than the onces developed in the CASCADE-MAKE files, and so look to be
|
---|
12 | # actively maintained, so have changed CASCADE-MAKE/ESSENTIA.sh to trigger this
|
---|
13 | # optional script as part of it's configure stage.
|
---|
14 |
|
---|
15 | # *IMPORTANT*
|
---|
16 | # The route to have things statically compiled is currently followed. Consequently:
|
---|
17 | # packaging/build_config.sh
|
---|
18 | # has been tweaked from the git cloned file to specify --enable-static --disable-shared
|
---|
19 |
|
---|
20 | # AND
|
---|
21 | # there needs to static versions of -lm and -lc
|
---|
22 | # Not all Linux distributions ship with these.
|
---|
23 | #
|
---|
24 | # For Amazon Linux 2 AMI it was found to neeed:
|
---|
25 | # sudo yum install glibc-static
|
---|
26 |
|
---|
27 |
|
---|
28 | # As things stand, the CASCADE-MAKE version of these files still had a couple of issues.
|
---|
29 | #
|
---|
30 | # (i) CHROMAPRINT needed -lz added to the link command for fpcalc when statically linked.
|
---|
31 | # (ii) ESSENTIA hit a linking error at [308/408], again to do with not having the right
|
---|
32 | # libraries for linking provided, even though they do exist
|
---|
33 |
|
---|
34 | #for d in EIGEN3 FFMPEG LIBSAMPLERATE TAGLIB YAML FFTW CHROMAPRINT ESSENTIA ; do
|
---|
35 |
|
---|
36 | #!!
|
---|
37 | # Update: added FFMPEG back in, as need 'ffprobe' available on command-line for
|
---|
38 | # ./AUDIO-FRAME-TO-ESSENTIA-CSV-FEATURE-FILE.pl
|
---|
39 | #!!
|
---|
40 |
|
---|
41 | for d in ESSENTIA FFMPEG ; do
|
---|
42 | echo " Running CASCADE-MAKE/$d.sh"
|
---|
43 |
|
---|
44 | ./CASCADE-MAKE/$d.sh $*
|
---|
45 |
|
---|
46 | if [ $? != 0 ] ; then
|
---|
47 | echo "Error encountered running CASCADE-MAKE/$d.sh"
|
---|
48 | exit 1
|
---|
49 | fi
|
---|
50 | done
|
---|