2 cmp15845953187 cmp15845953187 于 2013.08.08 17:45 提问

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
这个问题已经困扰我很长时间,请求大神们给点意见,谢谢。

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!