espeak在ubuntu10.10下交叉编译的问题

在ubuntu10.10下交叉编译espeak,其中portaudio的版本为pa_stable_v19_20111121.tgz交叉编译成功,并生成相应的库,在编译espeak的时候(espeak为espeak-1.47.05-source.zip),把生成的lib文件夹下的所有库拷贝到/usr/lib和/usr/bin以及/../bin下make,结果还是报错,错误如下:

/opt/x-tools/arm-unknown-linux-gnueabi/bin/../lib/gcc/arm-unknown-linux-gnueabi/4.4.6/../../../../arm-unknown-linux-gnueabi/bin/ld: warning: libportaudio.so.2, needed by ./libespeak.so, not found (try using -rpath or -rpath-link)
./libespeak.so: undefined reference to Pa_GetDeviceInfo'
./libespeak.so: undefined reference to
Pa_AbortStream'
./libespeak.so: undefined reference to Pa_StartStream'
./libespeak.so: undefined reference to
Pa_StopStream'
./libespeak.so: undefined reference to Pa_GetErrorText'
./libespeak.so: undefined reference to
Pa_GetDeviceCount'
./libespeak.so: undefined reference to Pa_IsStreamActive'
./libespeak.so: undefined reference to
Pa_OpenDefaultStream'
./libespeak.so: undefined reference to Pa_OpenStream'
./libespeak.so: undefined reference to
Pa_Initialize'
./libespeak.so: undefined reference to Pa_Terminate'
./libespeak.so: undefined reference to
Pa_GetHostApiInfo'
./libespeak.so: undefined reference to Pa_CloseStream'
./libespeak.so: undefined reference to
Pa_GetDefaultOutputDevice'
./libespeak.so: undefined reference to Pa_IsStreamStopped'
./libespeak.so: undefined reference to
Pa_IsFormatSupported'
collect2: ld returned 1 exit status
make: *** [espeak] 错误 1
这个问题已经困扰我很长时间,请求大神们给点意见,谢谢。

2个回答

加上-lportaudio

楼主,我也遇到同样的问题了,请问你解决了吗?如果解决了还请提示一下,谢谢

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问