[Mono-dev] shared library wrapper question

buhochileno at gmail.com buhochileno at gmail.com
Fri Aug 8 20:59:37 EDT 2008


Hi guys:

I'm trying to write a basic Festival tts wrapper, but I get 
System.DllNotFoundException: libFestival and I think that may be is 
related to that any festival C API code need to be compiled using links 
to other shared speechtools libs (libestbase, libeststring....),
Any program that use the festival C API have to be compiled like:
    g++32 -o festivalsimpletest festivalsimpletest.c 
-I/usr/include/festival -I/usr/src/tar/speech_tools/include -lFestival 
-lestools -lestbase -leststring -Wno-deprecated

My wrapper code is like:
[DllImport("libFestival")]
public static extern void festival_initialize(int load_init_files,int 
heap_size);

where  festival_initialize is defined as: void festival_initialize(int 
load_init_files,int heap_size); from C the function is used simple like: 
festival_initialize(1,210000);
of course libFestival.so exist and work...

So, may be is related to that a program that need libFestival.so also 
need libestbase,so, etc?, how can I check where is the problems..?, inea 
ideas?,  directions?

Thanks

Mauricio



More information about the Mono-devel-list mailing list