LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 12-03-2003, 10:46 PM   #1
ximiansavior
LQ Newbie
 
Registered: Jun 2003
Location: Amish Coutry, Pa,
Posts: 6

Rep: Reputation: 0
festival and c++


i want to use the festival libraries to write my own c++ program that uses festival.

the documentation gives the following:

Quote:
In order to use Festival you must include `festival/src/include/festival.h' which in turn will include the necessary other include files in `festival/src/include' and `speech_tools/include' you should ensure these are included in the include path for you your program. Also you will need to link your program with `festival/src/lib/libFestival.a', `speech_tools/lib/libestools.a', `speech_tools/lib/libestbase.a' and `speech_tools/lib/libeststring.a' as well as any other optional libraries such as net audio.
the includes are in the right place /usr/include/* but i'm new to gcc and when i use the link flag -L i get errors.

has anyone compiled a program with festival? can you give me a sample gcc command to get this to work? thanks.
 
Old 12-04-2003, 12:26 AM   #2
MartinN
Member
 
Registered: Nov 2003
Location: Ronneby, Sweden
Posts: 555

Rep: Reputation: 30
You also need to tell which libraries to link with using the flag -l (that's a lower-case L). The linking directive should look something like:
Code:
gcc -o myprogram mypart1.o mypart2.o ... mypartn.o -L /path/to/festivallibs -lFestival -lestools -lestbase -leststring
Since those libraries are static libraries (indicated by .a) you may need the flag -static also. But I'm not sure that you need that, so try without it first.

And of course, you'll want to write all this in a Makefile

If this didn't solve the problem, could you please tell exactly what the error messages are?

Regards
Martin
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Festival rvijay Linux - Software 5 09-28-2006 05:04 PM
Festival Installation tuxuser19 Debian 2 10-12-2005 05:55 AM
Festival and KMouth TazG Linux - Software 2 04-06-2005 06:13 AM
gnopernicus/festival problems dwgranth Linux - Software 0 09-24-2004 12:53 PM
festival; viavoice cinnix Linux - General 0 08-19-2001 12:00 AM


All times are GMT -5. The time now is 04:29 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration