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: can't find block when parsing dictionary [ Reply ]
By: Sasho Musevic on 2009-05-09 11:07
[forum:102169]
Hi!
I had similar problems and indeed, the 'make install' doesn't seem to copy/install the block/atom factories, located <mptk_build_dir>/lib/*_ATOM.dylib, <mptk_build_dir>/lib/*_BLOCK.dylib after the build. Basically, "make install" doesn't work properly for me (Mac OS X Leopard) at all. BTW: .dylib is analogous to .so on Linux and .dll on Windows, in case u r wondering.

I was trying to get the installation work, but honestly it's just too much hand work. Anyway, a quick solution is this:

After running "make", do not do "make install" (it doesn't hurt to do so, tho). Go into <mptk_build_dir>/bin". Now use mpd like this: ./mpd -C path.xml -D dict_file ...
It is crucial to use -C switch and force it to use the local path.xml file, located in the <mptk_build_dir>/bin.

Experiment with path.xml, located in the installation dir (/usr/local/... somehwere) and try changing the "dll_directory" parameter, if you really want to make the installation work...Good luck though...

Hope it helps,
Sash

RE: can't find block when parsing dictionary [ Reply ]
By: Chris Srinivasa on 2009-05-08 20:08
[forum:102167]
Thanks Corey for your help. Unfortunately I tried it and it didn't change anything.

RE: can't find block when parsing dictionary [ Reply ]
By: Corey Kereliuk on 2009-05-08 19:28
[forum:102166]
Try including the option: -C /mptk-install-path/path.xml


can't find block when parsing dictionary [ Reply ]
By: Chris Srinivasa on 2009-05-08 19:22
[forum:102165]
I am getting the following error when trying to read the default dictionary which comes with mptk:

**************************************************
mptk INFO -- mpd - (In the following, spurious output of dictionary pieces would be a symptom of parsing errors.)
mptk ERROR -- MP_Dict_c::create_block(MP_signal_c * setSignal , map<string, PropertiesMap, mp_ltstring> *setPropertyMap) - The gabor block creator is not type is not registred in the block factory.
**************************************************

This is the command I typed:
./mpd -D reference/dictionary/dic_gabor_two_scales.xml -n 100 reference/signal/glockenspiel.wav reference/book/test1.bin reference/signal/res1.wav

Can someone please help. Could it be a case of an environment variable set badly ? Where is the block factory located ?