raf has asked for the wisdom of the Perl Monks concerning the following question:
The Makefile.PL...... #include <festival/festival.h> MODULE = festival_test PACKAGE = festival_test void initialize(load_init_file,heap_size) int load_init_file int heap_size CODE: festival_initialize(load_init_file,heap_size); .......
Two line of perl to use this...$CC='g++'; WriteMakefile( NAME => 'festival_test', VERSION_FROM => 'lib/festival_test.pm', # finds $VERSION PREREQ_PM => {}, ($] >= 5.005 ? (ABSTRACT_FROM => 'lib/festival_test.pm', AUTHOR => 'A. U. Thor <spike@(none)>') : ()), LIBS => ['-L/usr/lib -lFestival -lestools -lestbase - +leststring -lncurses '], DEFINE => '', INC => '-I. -I/usr/include/speech-tools/', 'CC' => $CC, 'LD' => '$(CC)', );
The segmentation fault come on the initialize call, using perl -d, it just freeze. Suggestions, corrections?, thanksuse ExtUtils::testlib; use festival_test; print "\nWrite something you want to be read from me: "; $txt=<>; festival_test::initialize(1,210000);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Segfault when using Festival library from XS
by Anonymous Monk on Jul 21, 2008 at 10:31 UTC | |
by raf (Novice) on Jul 21, 2008 at 13:18 UTC | |
|
Re: Segfault when using Festival library from XS
by Anonymous Monk on Jul 21, 2008 at 10:51 UTC | |
by raf (Novice) on Jul 22, 2008 at 08:03 UTC |