public inbox for speakup@linux-speakup.org
 help / color / mirror / Atom feed
* Espeak compile error
@  Georgina Joyce
   ` Jonathan Duddington
  0 siblings, 1 reply; 5+ messages in thread
From: Georgina Joyce @  UTC (permalink / raw)
  To: speakup

Hi Jonathan,

I wrote previously that I couldn't install espeak and you suggested that it might be related to my portaudio installation.  Although I've installed 19, the header file is portaudio.h and the libraries are in the path and I've run ldconfig:

Portaudio libraries:
/usr/lib/libportaudio.a
/usr/lib/libportaudio.la
/usr/lib/libportaudio.so
/usr/lib/libportaudio.so.2
/usr/lib/libportaudio.so.2.0.0

Pc file:
less /usr/lib/pkgconfig/portaudio-2.0.pc
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: PortAudio
Description: Portable audio I/O
Requires:
Version: 19

Libs: -L${libdir} -lportaudio  -lm -lpthread
Cflags: -I${includedir} -pthread

Compile output:
g++ -O2 -D PATH_ESPEAK_DATA=\"/usr/share/espeak-data\" -Wall -pedantic
-I. -c -fno-exceptions numbers.cpp
g++ -O2 -D PATH_ESPEAK_DATA=\"/usr/share/espeak-data\" -Wall -pedantic
-I. -c -fno-exceptions synth_mbrola.cpp
g++ -O2 -D PATH_ESPEAK_DATA=\"/usr/share/espeak-data\" -Wall -pedantic
-I. -c -fno-exceptions synthdata.cpp
synthdata.cpp: In function 'int LoadPhData()':
synthdata.cpp:120: warning: dereferencing type-punned pointer will break
strict-aliasing rules
synthdata.cpp:122: warning: dereferencing type-punned pointer will break
strict-aliasing rules
g++ -O2 -D PATH_ESPEAK_DATA=\"/usr/share/espeak-data\" -Wall -pedantic
-I. -c -fno-exceptions synthesize.cpp
g++ -O2 -D PATH_ESPEAK_DATA=\"/usr/share/espeak-data\" -Wall -pedantic
-I. -c -fno-exceptions translate.cpp
translate.cpp: In member function 'virtual int
Translator::TranslateChar(char*, int, unsigned int, unsigned int,
int*)':translate.cpp:1593: warning: comparison between signed and
unsigned integer expressions
g++ -O2 -D PATH_ESPEAK_DATA=\"/usr/share/espeak-data\" -Wall -pedantic
-I. -c -fno-exceptions tr_english.cpp
g++ -O2 -D PATH_ESPEAK_DATA=\"/usr/share/espeak-data\" -Wall -pedantic
-I. -c -fno-exceptions tr_languages.cpp
g++ -O2 -D PATH_ESPEAK_DATA=\"/usr/share/espeak-data\" -Wall -pedantic
-I. -c -fno-exceptions voices.cpp
g++ -O2 -D PATH_ESPEAK_DATA=\"/usr/share/espeak-data\" -Wall -pedantic
-I. -c -fno-exceptions wavegen.cpp
g++ -O2 -D PATH_ESPEAK_DATA=\"/usr/share/espeak-data\" -Wall -pedantic
-I. -c -fno-exceptions phonemelist.cpp
g++ -o speak speak.o compiledict.o dictionary.o intonation.o
readclause.o setlengths.o numbers.o synth_mbrola.o synthdata.o
synthesize.o translate.o tr_english.o tr_languages.o voices.o wavegen.o
phonemelist.o -lstdc++ -lportaudio -lpthreadreadclause.o: In function
`Translator::AnnouncePunctuation(int, int, char*, int)':
readclause.cpp:(.text+0x1a3d): warning: the use of `tmpnam' is
dangerous, better use `mkstemp'
wavegen.o: In function `WavegenCloseSound()':
wavegen.cpp:(.text+0x20a5): undefined reference to `Pa_StreamActive'
wavegen.o: In function `WavegenOpenSound()':
wavegen.cpp:(.text+0x20f9): undefined reference to `Pa_StreamActive'
collect2: ld returned 1 exit status
make: *** [speak] Error 1

Any ideas?

Gena

Amateur Call: M 0 E B P

VOIP / IM: gena1959uk




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Espeak compile error
   Espeak compile error Georgina Joyce
@  ` Jonathan Duddington
  0 siblings, 0 replies; 5+ messages in thread
From: Jonathan Duddington @  UTC (permalink / raw)
  To: speakup

On 19 Jul, Georgina Joyce <gena-j@bulldoghome.com> wrote:

> wavegen.cpp:(.text+0x20a5): undefined reference to `Pa_StreamActive'

There are two different versions of portaudio.
Portaudio V18 includes a function Pa_StreamActive().
The equivalent function in Portaudio V19 is Pa_IsStreamActive().

Therefore, eSpeak must be compiled to use the correct version of
portaudio which you have installed on your computer.
(The pre-compiled eSpeak is compiled to use portaudio V18).

Your error message says that function Pa_StreamActive() is not found. 
This means:

1.  You are compiling eSpeak to use portaudio V18.

2.  Portaudio V18 is not installed.

You say that you've installed portaudio V19.  So you need to compile
eSpeak to use Pa_IsStreamActive() instead of Pa_StreamActive().

To do this, copy the file (in eSpeak's src directory)  portaudio19.h 
and rename it to portaudio.h  to replace the original portaudio.h
(which is a copy of  portaudi18.h).  Then compile eSpeak.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: Espeak compile error
   ` Jonathan Duddington
@    ` Georgina Joyce
  0 siblings, 0 replies; 5+ messages in thread
From: Georgina Joyce @  UTC (permalink / raw)
  To: 'Speakup is a screen review system for Linux.'

Hi

Thanks, about to retire for the day.  So I'll look tm.  I've installed port audio 19, so I'll seek that solution.  Many thanks.

Tired Gena

Gena

Amateur Call: M 0 E B P

VOIP / IM: gena1959uk



-----Original Message-----
From: speakup-bounces@braille.uwo.ca [mailto:speakup-bounces@braille.uwo.ca] On Behalf Of Jonathan Duddington
Sent: Monday, July 16, 2007 6:21 PM
To: speakup@braille.uwo.ca
Subject: Re: Espeak compile error


On 16 Jul, Georgina Joyce <gena-j@bulldoghome.com> wrote:

> I haven't followed the previous posts on building espeak therefore,
> may have missed something but I can't build the 15 July 2007 SVN
> repository:  Nor can I work out what is going on, any ideas?

> wavegen.cpp:(.text+0x20a5): undefined reference to `Pa_StreamActive'

It's trying to link to function Pa_StreamActive(), which is in the
portaudio sound interface library.

Probably either
1.  You don't have the portaudio library installed, (and linked to from
/usr/lib/libportaudio.so).

or
2.  You have portaudio V19 installed, but you're compiling eSpeak to
use portaudio V18.  To change this, copy portaudio19.h to portaudio.h.


_______________________________________________
Speakup mailing list
Speakup@braille.uwo.ca
http://speech.braille.uwo.ca/mailman/listinfo/speakup

__________ NOD32 2400 (20070716) Information __________

This message was checked by NOD32 antivirus system.
http://www.eset.com




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Espeak compile error
   Georgina Joyce
@  ` Jonathan Duddington
     ` Georgina Joyce
  0 siblings, 1 reply; 5+ messages in thread
From: Jonathan Duddington @  UTC (permalink / raw)
  To: speakup

On 16 Jul, Georgina Joyce <gena-j@bulldoghome.com> wrote:

> I haven't followed the previous posts on building espeak therefore,
> may have missed something but I can't build the 15 July 2007 SVN
> repository:  Nor can I work out what is going on, any ideas?

> wavegen.cpp:(.text+0x20a5): undefined reference to `Pa_StreamActive'

It's trying to link to function Pa_StreamActive(), which is in the
portaudio sound interface library.

Probably either
1.  You don't have the portaudio library installed, (and linked to from
/usr/lib/libportaudio.so).

or
2.  You have portaudio V19 installed, but you're compiling eSpeak to
use portaudio V18.  To change this, copy portaudio19.h to portaudio.h.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Espeak compile error
@  Georgina Joyce
   ` Jonathan Duddington
  0 siblings, 1 reply; 5+ messages in thread
From: Georgina Joyce @  UTC (permalink / raw)
  To: speakup

Hi

I haven't followed the previous posts on building espeak therefore, may have missed something but I can't build the 15 July 2007 SVN repository:  Nor can I work out what is going on, any ideas?

g++ -O2 -D PATH_ESPEAK_DATA=\"/usr/share/espeak-data\" -Wall -pedantic
-I. -c -fno-exceptions numbers.cpp
g++ -O2 -D PATH_ESPEAK_DATA=\"/usr/share/espeak-data\" -Wall -pedantic
-I. -c -fno-exceptions synth_mbrola.cpp
g++ -O2 -D PATH_ESPEAK_DATA=\"/usr/share/espeak-data\" -Wall -pedantic
-I. -c -fno-exceptions synthdata.cpp
synthdata.cpp: In function 'int LoadPhData()':
synthdata.cpp:120: warning: dereferencing type-punned pointer will break
strict-aliasing rules
synthdata.cpp:122: warning: dereferencing type-punned pointer will break
strict-aliasing rules
g++ -O2 -D PATH_ESPEAK_DATA=\"/usr/share/espeak-data\" -Wall -pedantic
-I. -c -fno-exceptions synthesize.cpp
g++ -O2 -D PATH_ESPEAK_DATA=\"/usr/share/espeak-data\" -Wall -pedantic
-I. -c -fno-exceptions translate.cpp
translate.cpp: In member function 'virtual int
Translator::TranslateChar(char*, int, unsigned int, unsigned int,
int*)':translate.cpp:1593: warning: comparison between signed and
unsigned integer expressions
g++ -O2 -D PATH_ESPEAK_DATA=\"/usr/share/espeak-data\" -Wall -pedantic
-I. -c -fno-exceptions tr_english.cpp
g++ -O2 -D PATH_ESPEAK_DATA=\"/usr/share/espeak-data\" -Wall -pedantic
-I. -c -fno-exceptions tr_languages.cpp
g++ -O2 -D PATH_ESPEAK_DATA=\"/usr/share/espeak-data\" -Wall -pedantic
-I. -c -fno-exceptions voices.cpp
g++ -O2 -D PATH_ESPEAK_DATA=\"/usr/share/espeak-data\" -Wall -pedantic
-I. -c -fno-exceptions wavegen.cpp
g++ -O2 -D PATH_ESPEAK_DATA=\"/usr/share/espeak-data\" -Wall -pedantic
-I. -c -fno-exceptions phonemelist.cpp
g++ -o speak speak.o compiledict.o dictionary.o intonation.o
readclause.o setlengths.o numbers.o synth_mbrola.o synthdata.o
synthesize.o translate.o tr_english.o tr_languages.o voices.o wavegen.o
phonemelist.o -lstdc++ -lportaudio -lpthreadreadclause.o: In function
`Translator::AnnouncePunctuation(int, int, char*, int)':
readclause.cpp:(.text+0x1a3d): warning: the use of `tmpnam' is
dangerous, better use `mkstemp'
wavegen.o: In function `WavegenCloseSound()':
wavegen.cpp:(.text+0x20a5): undefined reference to `Pa_StreamActive'
wavegen.o: In function `WavegenOpenSound()':
wavegen.cpp:(.text+0x20f9): undefined reference to `Pa_StreamActive'
collect2: ld returned 1 exit status
make: *** [speak] Error 1
g



Gena

Amateur Call: M 0 E B P

VOIP / IM: gena1959uk




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~ UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
 Espeak compile error Georgina Joyce
 ` Jonathan Duddington
  -- strict thread matches above, loose matches on Subject: below --
 Georgina Joyce
 ` Jonathan Duddington
   ` Georgina Joyce

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).