Menu

Cross-compiling make error, libsphinxad.so

Help
2016-11-10
2018-02-19
  • Jacek Garbiec

    Jacek Garbiec - 2016-11-10

    Hello I'm cross-compiling using this conf: ./configure --host=arm-linux-gnueabi --build=i686-linux-gnu --prefix=/home/jack/ARMSphinx --without-python
    After doing make I get this:

    nt_seg.o cont_seg.c
    mv -f .deps/cont_seg.Tpo .deps/cont_seg.Po
    /bin/bash ../../libtool  --tag=CC   --mode=link arm-linux-gnueabi-gcc -I../../include -I../../include -g -O2 -Wall   -o sphinx_cont_seg cont_seg.o ../../src/libsphinxbase/libsphinxbase.la ../../src/libsphinxad/libsphinxad.la -lpthread -lm 
    libtool: link: arm-linux-gnueabi-gcc -I../../include -I../../include -g -O2 -Wall -o .libs/sphinx_cont_seg cont_seg.o  ../../src/libsphinxbase/.libs/libsphinxbase.so ../../src/libsphinxad/.libs/libsphinxad.so -lpthread -lm -Wl,-rpath -Wl,/home/jack/ARMSphinx/lib
    ../../src/libsphinxad/.libs/libsphinxad.so: undefined reference to `pa_strerror'
    ../../src/libsphinxad/.libs/libsphinxad.so: undefined reference to `pa_simple_read'
    ../../src/libsphinxad/.libs/libsphinxad.so: undefined reference to `pa_simple_new'
    ../../src/libsphinxad/.libs/libsphinxad.so: undefined reference to `pa_simple_free'
    collect2: error: ld returned 1 exit status
    Makefile:413: recipe for target 'sphinx_cont_seg' failed
    make[2]: *** [sphinx_cont_seg] Error 1
    make[2]: Leaving directory '/home/jack/SPhinx/sphinxbase/src/sphinx_adtools'
    

    So I'm thinking it can't link pulseaudio for arm, is there a way to exclude libsphinxad from make? I'm not very familliar with make so I'm kind of stuck. Thank you.

     
    • Nickolay V. Shmyrev

      I'll try to fix it in coming days. As a quick fix you can remove checks for pulseaudio and alsa in configure.ac and run autogen.sh.

       
      • hamdi rejeb

        hamdi rejeb - 2018-02-19

        Sir, does removing checks for pulseaudio and alsa in configure.ac affect compiling the other dependant libraries (pocketsphinx and sphinxtrain ) ?
        thank you.

         
  • Sitao Deng

    Sitao Deng - 2017-06-12

    Hi Nickolay,
    I met the same issue in sphinxbase-5prealpha, Would you please share the information in which release it is fixed?

     
  • Rohit Thakur

    Rohit Thakur - 2018-02-07

    Hi Nickolay,
    Any update on this as i am also stuck here while cross compiling.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.