Home My Page Projects MPTK: The Matching Pursuit ToolKit
Summary Activity Forums Tracker Lists Docs News SCM Files

Forum: help

Monitor Forum | Start New Thread Start New Thread
RE: mpd on MacOSX : 'terminate called' [ Reply ]
By: Sasho Musevic on 2009-04-18 14:31
[forum:102018]
Hello again!

make install does the following:
sasomusevic$ sudo make install
Password:
CMakeFiles/Makefile2:363: warning: overriding commands for target `src/libmptk/CMakeFiles/make_regression_constants.dir/all'
CMakeFiles/Makefile2:77: warning: ignoring old commands for target `src/libmptk/CMakeFiles/make_regression_constants.dir/all'
CMakeFiles/Makefile2:375: warning: overriding commands for target `src/libmptk/CMakeFiles/make_regression_constants.dir/rule'
CMakeFiles/Makefile2:89: warning: ignoring old commands for target `src/libmptk/CMakeFiles/make_regression_constants.dir/rule'
CMakeFiles/Makefile2:386: warning: overriding commands for target `src/libmptk/CMakeFiles/make_regression_constants.dir/clean'
CMakeFiles/Makefile2:100: warning: ignoring old commands for target `src/libmptk/CMakeFiles/make_regression_constants.dir/clean'
CMakeFiles/Makefile2:400: warning: overriding commands for target `src/libmptk/CMakeFiles/mptk.dir/all'
CMakeFiles/Makefile2:114: warning: ignoring old commands for target `src/libmptk/CMakeFiles/mptk.dir/all'
CMakeFiles/Makefile2:412: warning: overriding commands for target `src/libmptk/CMakeFiles/mptk.dir/rule'
CMakeFiles/Makefile2:126: warning: ignoring old commands for target `src/libmptk/CMakeFiles/mptk.dir/rule'
CMakeFiles/Makefile2:423: warning: overriding commands for target `src/libmptk/CMakeFiles/mptk.dir/clean'
CMakeFiles/Makefile2:137: warning: ignoring old commands for target `src/libmptk/CMakeFiles/mptk.dir/clean'
CMakeFiles/Makefile2:451: warning: overriding commands for target `src/libdsp_windows/CMakeFiles/dsp_windows.dir/all'
CMakeFiles/Makefile2:165: warning: ignoring old commands for target `src/libdsp_windows/CMakeFiles/dsp_windows.dir/all'
CMakeFiles/Makefile2:463: warning: overriding commands for target `src/libdsp_windows/CMakeFiles/dsp_windows.dir/rule'
CMakeFiles/Makefile2:177: warning: ignoring old commands for target `src/libdsp_windows/CMakeFiles/dsp_windows.dir/rule'
CMakeFiles/Makefile2:474: warning: overriding commands for target `src/libdsp_windows/CMakeFiles/dsp_windows.dir/clean'
CMakeFiles/Makefile2:188: warning: ignoring old commands for target `src/libdsp_windows/CMakeFiles/dsp_windows.dir/clean'
CMakeFiles/Makefile2:486: warning: overriding commands for target `src/libdsp_windows/CMakeFiles/dsp_windows-lib-source.dir/all'
CMakeFiles/Makefile2:200: warning: ignoring old commands for target `src/libdsp_windows/CMakeFiles/dsp_windows-lib-source.dir/all'
CMakeFiles/Makefile2:494: warning: overriding commands for target `src/libdsp_windows/CMakeFiles/dsp_windows-lib-source.dir/rule'
CMakeFiles/Makefile2:208: warning: ignoring old commands for target `src/libdsp_windows/CMakeFiles/dsp_windows-lib-source.dir/rule'
CMakeFiles/Makefile2:505: warning: overriding commands for target `src/libdsp_windows/CMakeFiles/dsp_windows-lib-source.dir/clean'
CMakeFiles/Makefile2:219: warning: ignoring old commands for target `src/libdsp_windows/CMakeFiles/dsp_windows-lib-source.dir/clean'
[ 1%] Built target make_regression_constants
[ 1%] Built target tinyxml-lib-source
[ 5%] Built target tinyxml
[ 5%] Built target dsp_windows-lib-source
[ 6%] Built target dsp_windows
[ 31%] Built target mptk
[ 33%] Built target ANYWAVE_ATOM
[ 35%] Built target ANYWAVE_BLOCK
[ 36%] Built target CONSTANT_ATOM
[ 37%] Built target CONSTANT_BLOCK
[ 38%] Built target DIRAC_ATOM
[ 39%] Built target DIRAC_BLOCK
[ 41%] Built target GABOR_ATOM
[ 44%] Built target GABOR_BLOCK
[ 45%] Built target MCLT_ATOM
[ 47%] Built target MCLT_BLOCK
[ 48%] Built target MDCT_ATOM
[ 50%] Built target MDCT_BLOCK
[ 51%] Built target MDST_ATOM
[ 53%] Built target MDST_BLOCK
[ 54%] Built target NYQUIST_ATOM
[ 55%] Built target NYQUIST_BLOCK
[ 58%] Built target mpcat
[ 61%] Built target mpd
[ 64%] Built target mpd_demix
[ 67%] Built target mpf
[ 70%] Built target mpr
[ 73%] Built target mpview
CMakeFiles/Makefile2:363: warning: overriding commands for target `src/libmptk/CMakeFiles/make_regression_constants.dir/all'
CMakeFiles/Makefile2:77: warning: ignoring old commands for target `src/libmptk/CMakeFiles/make_regression_constants.dir/all'
CMakeFiles/Makefile2:375: warning: overriding commands for target `src/libmptk/CMakeFiles/make_regression_constants.dir/rule'
CMakeFiles/Makefile2:89: warning: ignoring old commands for target `src/libmptk/CMakeFiles/make_regression_constants.dir/rule'
CMakeFiles/Makefile2:386: warning: overriding commands for target `src/libmptk/CMakeFiles/make_regression_constants.dir/clean'
CMakeFiles/Makefile2:100: warning: ignoring old commands for target `src/libmptk/CMakeFiles/make_regression_constants.dir/clean'
CMakeFiles/Makefile2:400: warning: overriding commands for target `src/libmptk/CMakeFiles/mptk.dir/all'
CMakeFiles/Makefile2:114: warning: ignoring old commands for target `src/libmptk/CMakeFiles/mptk.dir/all'
CMakeFiles/Makefile2:412: warning: overriding commands for target `src/libmptk/CMakeFiles/mptk.dir/rule'
CMakeFiles/Makefile2:126: warning: ignoring old commands for target `src/libmptk/CMakeFiles/mptk.dir/rule'
CMakeFiles/Makefile2:423: warning: overriding commands for target `src/libmptk/CMakeFiles/mptk.dir/clean'
CMakeFiles/Makefile2:137: warning: ignoring old commands for target `src/libmptk/CMakeFiles/mptk.dir/clean'
CMakeFiles/Makefile2:451: warning: overriding commands for target `src/libdsp_windows/CMakeFiles/dsp_windows.dir/all'
CMakeFiles/Makefile2:165: warning: ignoring old commands for target `src/libdsp_windows/CMakeFiles/dsp_windows.dir/all'
CMakeFiles/Makefile2:463: warning: overriding commands for target `src/libdsp_windows/CMakeFiles/dsp_windows.dir/rule'
CMakeFiles/Makefile2:177: warning: ignoring old commands for target `src/libdsp_windows/CMakeFiles/dsp_windows.dir/rule'
CMakeFiles/Makefile2:474: warning: overriding commands for target `src/libdsp_windows/CMakeFiles/dsp_windows.dir/clean'
CMakeFiles/Makefile2:188: warning: ignoring old commands for target `src/libdsp_windows/CMakeFiles/dsp_windows.dir/clean'
CMakeFiles/Makefile2:486: warning: overriding commands for target `src/libdsp_windows/CMakeFiles/dsp_windows-lib-source.dir/all'
CMakeFiles/Makefile2:200: warning: ignoring old commands for target `src/libdsp_windows/CMakeFiles/dsp_windows-lib-source.dir/all'
CMakeFiles/Makefile2:494: warning: overriding commands for target `src/libdsp_windows/CMakeFiles/dsp_windows-lib-source.dir/rule'
CMakeFiles/Makefile2:208: warning: ignoring old commands for target `src/libdsp_windows/CMakeFiles/dsp_windows-lib-source.dir/rule'
CMakeFiles/Makefile2:505: warning: overriding commands for target `src/libdsp_windows/CMakeFiles/dsp_windows-lib-source.dir/clean'
CMakeFiles/Makefile2:219: warning: ignoring old commands for target `src/libdsp_windows/CMakeFiles/dsp_windows-lib-source.dir/clean'
Install the project...
-- Install configuration: ""
-- Installing: /usr/local/MPTK-0.5.6/bin/reference
-- Installing: /usr/local/MPTK-0.5.6/bin/reference/book
-- Up-to-date: /usr/local/MPTK-0.5.6/bin/reference/book/exampleBook.bin
-- Installing: /usr/local/MPTK-0.5.6/bin/reference/dictionary
-- Up-to-date: /usr/local/MPTK-0.5.6/bin/reference/dictionary/dic_anywave.xml
-- Up-to-date: /usr/local/MPTK-0.5.6/bin/reference/dictionary/dic_gabor_two_scales.xml
-- Up-to-date: /usr/local/MPTK-0.5.6/bin/reference/dictionary/dict-list.txt
-- Installing: /usr/local/MPTK-0.5.6/bin/reference/mixer
-- Up-to-date: /usr/local/MPTK-0.5.6/bin/reference/mixer/mix_58_mixer.txt
-- Installing: /usr/local/MPTK-0.5.6/bin/reference/signal
-- Up-to-date: /usr/local/MPTK-0.5.6/bin/reference/signal/glockenspiel.wav
-- Installing: /usr/local/MPTK-0.5.6/bin/reference/wavetable
-- Up-to-date: /usr/local/MPTK-0.5.6/bin/reference/wavetable/defaultWaveTable.xml
-- Up-to-date: /usr/local/MPTK-0.5.6/bin/reference/wavetable/defaultWaveTableData.bin
-- Up-to-date: /usr/local/MPTK-0.5.6/include/mptk.h
-- Installing: /usr/local/MPTK-0.5.6/lib/libmptk.dylib
-- Installing: /usr/local/MPTK-0.5.6/bin/path.xml
-- Installing: /usr/local/MPTK-0.5.6/lib/libdsp_windows.a
-- Installing: /usr/local/MPTK-0.5.6/lib/libtinyxml.a
-- Installing: /usr/local/MPTK-0.5.6/lib/libmptk.dylib
-- Up-to-date: /usr/local/MPTK-0.5.6/bin/path.xml
-- Installing: /usr/local/MPTK-0.5.6/lib/libdsp_windows.a
-- Up-to-date: /usr/local/MPTK-0.5.6/matlab/README
-- Up-to-date: /usr/local/MPTK-0.5.6/matlab/GettingStarted.m
-- Up-to-date: /usr/local/MPTK-0.5.6/matlab/bookover.m
-- Up-to-date: /usr/local/MPTK-0.5.6/matlab/bookplot.m
-- Up-to-date: /usr/local/MPTK-0.5.6/matlab/mpview.m
-- Up-to-date: /usr/local/MPTK-0.5.6/matlab/bookedit.m
-- Up-to-date: /usr/local/MPTK-0.5.6/matlab/dictcreate_gui.m
-- Up-to-date: /usr/local/MPTK-0.5.6/matlab/MPtoolbaricons.mat
-- Up-to-date: /usr/local/MPTK-0.5.6/matlab/create_synthetic_data.m
-- Up-to-date: /usr/local/MPTK-0.5.6/matlab/savetable.m
-- Up-to-date: /usr/local/MPTK-0.5.6/matlab/dictread.m
-- Up-to-date: /usr/local/MPTK-0.5.6/matlab/dictwrite.m
-- Up-to-date: /usr/local/MPTK-0.5.6/matlab/bookread.m
-- Up-to-date: /usr/local/MPTK-0.5.6/matlab/bookwrite.m
-- Installing: /usr/local/MPTK-0.5.6/bin/mpd
-- Installing: /usr/local/MPTK-0.5.6/bin/mpd_demix
-- Installing: /usr/local/MPTK-0.5.6/bin/mpr
-- Installing: /usr/local/MPTK-0.5.6/bin/mpf
-- Installing: /usr/local/MPTK-0.5.6/bin/mpcat
-- Installing: /usr/local/MPTK-0.5.6/bin/mpview
-- Up-to-date: /usr/local/MPTK-0.5.6/bin/readme.txt

Please note, that *_ATOM.dylib,*_BLOCK.dylib were not installed/copied to /usr/local/MPTK-0.5.6/lib.
Running the mpd from the build_path/bin works *ONLY* if I supply the following option: -C ./path.xml, as you proposed.
There are no system variables connected to MPTK defined.

Thank you for your help!
Sash

RE: mpd on MacOSX : 'terminate called' [ Reply ]
By: Corey Kereliuk on 2009-04-17 14:28
[forum:102008]
It sounds to me like your installation wasn't successful if you had to copy files to /usr/local.... did you do "make install" after "make"?

Try running the mpd directly from your build directory. Something like:
cd /pathtobuilddir/bin/
./mpd -Cpath.xml etc.

in this case the files in /usr/local should be ignored....



mpd on MacOSX : 'terminate called' [ Reply ]
By: Sasho Musevic on 2009-04-17 09:51
[forum:102006]
Hello!
Using MAC os x Leopard on MacBook pro. After successful installation, this are contents of config, dictionary files respectively:

<?xml version="1.0" encoding="ISO-8859-1"?>
<configpath>
<path name="dll_directory" path="/usr/local/MPTK-0.5.6/lib" />
<path name="fftw_wisdomfile" path="/usr/local/MPTK-0.5.6/bin/default_fftw_wisdom_file"/>
<path name="reference" path="/usr/local/MPTK-0.5.6/bin/reference"/>
<path name="defaultDict" path="/usr/local/MPTK-0.5.6/bin/reference/dictionary/dic_gabor_two_scales.xml"/>
<path name="defaultAnyWaveDict" path="/usr/local/MPTK-0.5.6/bin/reference/dictionary/dic_anywave.xml"/>
<path name="defaultAnyWaveTable" path="/usr/local/MPTK-0.5.6/bin/reference/wavetable/defaultWaveTable.xml"/>
<path name="defaultAnyWaveTableData" path="/usr/local/MPTK-0.5.6/bin/reference/wavetable/defaultWaveTableData.bin"/>
<path name="defaultMixer" path="/usr/local/MPTK-0.5.6/bin/reference/mixer/mix_58_mixer.txt"/>
<path name="defaultDictList" path="/usr/local/MPTK-0.5.6/bin/reference/dictionary/dict-list.txt"/>
<path name="exampleBook" path="/usr/local/MPTK-0.5.6/bin/reference/book/exampleBook.bin"/>
<path name="exampleSignal" path="/usr/local/MPTK-0.5.6/bin/reference/signal/glockenspiel.wav"/>
</configpath>

------------------------------------

<?xml version="1.0" encoding="ISO-8859-1"?>
<dict>
<libVersion>0.2</libVersion>
<blockproperties name="GAUSS-WINDOW">
<param name="windowtype" value="gauss"/>
<param name="windowopt" value="0"/>
</blockproperties>
<block uses="GAUSS-WINDOW">
<param name="type" value="gabor"/>
<varparam name="fftSize">
<var>64</var>
<var>32</var>
<var>16</var>
<var>8</var>
</varparam>
<param name="windowLen" value="8"/>
<varparam name="windowShift">
<var>32</var>
<var>16</var>
<var>8</var>
</varparam>
</block>
<block uses="GAUSS-WINDOW">
<param name="type" value="gabor"/>
<param name="windowLen" value="256"/>
<param name="windowShift" value="64"/>
<param name="fftSize" value="256"/>
</block>
<block uses="GAUSS-WINDOW">
<param name="type" value="gabor"/>
<param name="windowLen" value="512"/>
<param name="windowShift" value="128"/>
<param name="fftSize" value="512"/>
</block>
<block uses="GAUSS-WINDOW">
<param name="type" value="gabor"/>
<param name="windowLen" value="1024"/>
<param name="windowShift" value="256"/>
<param name="fftSize" value="1024"/>
</block>
<block uses="GAUSS-WINDOW">
<param name="type" value="harmonic"/>
<param name="fftSize" value="256"/>
<param name="windowLen" value="256"/>
<param name="windowShift" value="128"/>
<param name="f0Min" value="340"/>
<param name="f0Max" value="1000"/>
<param name="numPartials" value="5"/>
</block>
<block uses="GAUSS-WINDOW">
<param name="type" value="harmonic"/>
<param name="fftSize" value="512"/>
<param name="windowLen" value="512"/>
<param name="windowShift" value="256"/>
<param name="f0Min" value="440"/>
<param name="f0Max" value="1000"/>
<param name="numPartials" value="10"/>
</block>
<blockproperties name="GAUSS-WINDOW-FOMIN" refines="GAUSS-WINDOW">
<param name="f0Min" value="440"/>
</blockproperties>
<block uses="GAUSS-WINDOW-FOMIN">
<param name="type" value="harmonic"/>
<param name="fftSize" value="1024"/>
<param name="windowLen" value="1024"/>
<param name="windowShift" value="512"/>
<param name="f0Max" value="1000"/>
<param name="numPartials" value="10"/>
</block>
<block uses="GAUSS-WINDOW-FOMIN">
<param name="type" value="harmonic"/>
<param name="fftSize" value="2048"/>
<param name="windowLen" value="2048"/>
<param name="windowShift" value="1024"/>
<param name="f0Max" value="1000"/>
<param name="numPartials" value="10"/>
</block>
<block>
<param name="type" value="dirac"/>
</block>
</dict>

After that, I had to run following commands to make it run properly:

sudo ln /usr/local/MPTK-0.5.6/bin/mpd /usr/local/bin/mpd
sudo ln /usr/local/MPTK-0.5.6/bin/mpd_demix /usr/local/bin/mpd_demix
sudo ln /usr/local/MPTK-0.5.6/bin/mpr /usr/local/bin/mpr
sudo ln /usr/local/MPTK-0.5.6/bin/mpr /usr/local/bin/mpr
sudo ln /usr/local/MPTK-0.5.6/bin/mpf /usr/local/bin/mpf
sudo ln /usr/local/MPTK-0.5.6/bin/mpcat /usr/local/bin/mpcat
sudo ln /usr/local/MPTK-0.5.6/bin/mpview /usr/local/bin/mpview
sudo ln /usr/local/MPTK-0.5.6/lib/libmptk.dylib /usr/local/lib/libmptk.dylib
sudo ln /usr/local/MPTK-0.5.6/lib/libmptk.dylib /usr/local/lib/libtinyxml.a
sudo cp ./MPTK-Source-0.5.6/build/lib/*_ATOM.dylib /usr/local/MPTK-0.5.6/lib
sudo cp ./MPTK-Source-0.5.6/build/lib/*_BLOCK.dylib /usr/local/MPTK-0.5.6/lib

Please note, that the last two lines were required in order to get rid of 'The gabor block creator is not type is not registred in the block factory.' error. I'm not sure if last 2 lines are 100% correct, but they seem reasonable, cause *_BLOCK.dylib,*_ATOM.dylib are not 'installed' anywhere, they are left in the build/lib folder. Also note, that I changed the default location of installation, however the same error occurred even when default installation location was used.

Now, mpd crashes like this:

sasomusevic$ mpd -C /usr/local/MPTK-0.5.6/bin/path.xml -D /usr/local/MPTK-0.5.6/bin/reference/dictionary/dic_test.xml -n100 cello_bowed_string2_G98hz.wav -

Further, invoking it with non-existent input file does not change the error:

sasomusevic$ mpd -C /usr/local/MPTK-0.5.6/bin/path.xml -D /usr/local/MPTK-0.5.6/bin/reference/dictionary/dic_test.xml -n100 this_file_does_not_exist -
terminate called after throwing an instance of 'std::logic_error'
what(): basic_string::_S_construct NULL not valid
Abort trap

Even further, invoking it with non existent dictionary makes no difference as well:

sasomusevic$ mpd -C /usr/local/MPTK-0.5.6/bin/path.xml -D this_dictionary_file_does_not_exist -n100 this_file_does_not_exist -
terminate called after throwing an instance of 'std::logic_error'
what(): basic_string::_S_construct NULL not valid
Abort trap

I did not specify to build mex files, gui and disabled the Mat2MPTK install.

Lost and in a hurry :)
Sash