mptk

Ceci est une ancienne révision du document !


sur slatp (Debian 4.0 x86)

installé dans /usr/local/MPTK-0.5.4/bin
nécessite de positionner la variable d'environnement LD_LIBRARY_PATH

slatp:~> setenv LD_LIBRARY_PATH /usr/local/MPTK-0.5.4/lib ; /usr/local/MPTK-0.5.4/bin/mpview
 
 Usage:
     mpview [options] (bookFILE.bin|-) tfmapFILE.flt
 
 Synopsis:
     Makes a time-frequency pixmap fill it with the time-frequency representation
     of the atoms contained in the book file bookFile.bin and write it to the file
     tfmapFILE.flt as a raw sequence of floats. The pixmap size is 640x480 pixels
     unless option --size is used.
 
 Mandatory arguments:
     (bookFILE.bin|-)     A book of atoms, or stdin.
     tfmapFILE.flt        The file where to write the pixmap in float.
 
 Optional arguments:
     -C<FILE>, --config-file=<FILE>  Use the specified configuration file, 
                                     otherwise the MPTK_CONFIG_FILENAME environment variable will be
                                     used to find the configuration file and set up the MPTK environment.
     -s, --size=<numCols>x<numRows> : change the size of the pixmap.
     -q, --quiet          No text output.
     -v, --verbose        Verbose.
     -V, --version        Output the version and exit.
     -h, --help           This help.

sur nemo (Solaris 10 amd64)

compilation de libsndfile, dans /local/apps/lib

> echo $PATH
/opt/csw/gcc4/bin:/opt/csw/bin:/usr/local/wrapper/bin:/usr/bin:/usr/sbin
> pwd
/local/apps/src/MPTK

Premier problème: le linker

Linking CXX shared library ../../lib/libmptk.so
/usr/ccs/bin/ld: illegal option -- export-dynamic
usage: ld [-6:abc:d:e:f:h:il:mo:p:rstu:z:B:CD:F:GI:L:M:N:P:Q:R:S:VY:?] file(s)

Un contournement serait de remplacer /usr/ccs/bin/ld par le linker gnu:

cd /usr/ccs/bin
mv ld ld.sun
ln -s /opt/csw/bin/gld ld

Deuxième problème:

[ 33%] Building CXX object src/libmptk/CMakeFiles/mpcat.dir/__/__/__/MPTK-Source-0.5.4/src/utils/mpcat.o
c++: unrecognized option '-rdynamic'
/local/apps/src/MPTK-Source-0.5.4/src/utils/getopt.h:114: error: declaration of C function 'int getopt()' conflicts with
/usr/include/unistd.h:341: error: previous declaration 'int getopt(int, char* const*, const char*)' here
make[2]: *** [src/libmptk/CMakeFiles/mpcat.dir/__/__/__/MPTK-Source-0.5.4/src/utils/mpcat.o] Error 1
make[1]: *** [src/libmptk/CMakeFiles/mpcat.dir/all] Error 2
  • mptk.1201882080.txt.gz
  • Dernière modification : 2017/08/25 09:55
  • (modification externe)