[Mono-dev] shared library wrapper question

Jacob Gladish jacobgladish at yahoo.com
Fri Aug 8 21:11:51 EDT 2008


Try removing the lib from libFestival 'Festival' and make sure that the .so is in your LD_LIBRARY_PATH






----- Original Message ----
From: "buhochileno at gmail.com" <buhochileno at gmail.com>
To: Mono devel list <mono-devel-list at lists.ximian.com>
Cc: Zoltan Varga <vargaz at gmail.com>
Sent: Friday, August 8, 2008 8:59:37 PM
Subject: [Mono-dev] shared library wrapper question

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

_______________________________________________
Mono-devel-list mailing list
Mono-devel-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list



      


More information about the Mono-devel-list mailing list