Menu

Compile pocketsphinx for android error

Help
2010-08-30
2012-09-22
  • dang-khoa.nguyen

    Dear Sir,
    When I try to compile pocketsphinx to porting on android as :
    http://cmusphinx.sourceforge.net/wiki/building
    i got this error:
    Compile thumb : pocketsphinx <=
    apps/PocketSphinx/project/jni/sphinxbase/fe/fixlog.c
    /tmp/cccsYy5b.s: Assembler messages:
    /tmp/cccsYy5b.s:42: Error: selected processor does not support clz r2,r0' /tmp/cccsYy5b.s:119: Error: selected processor does not supportsmull
    r1,r2,r0,r3'
    /tmp/cccsYy5b.s:121: Error: unshifted register required -- `orr
    r1,r1,r2,lsl#20'
    make: *** Error 1

    How to fix this ?

     
  • Nickolay V. Shmyrev

    Well, you didn't apply Pocketsphinx.diff which was attached. Or with recent
    sphinxbase trunk you need to make sure your compiler defines thumb
    preprocessor variable so that asm code is not compiled.

    Generic advice with dealing with this experimental unstable code is to try to
    understand what is the problem, not post every problem to the forum as soon as
    it appeared.

     
  • dang-khoa.nguyen

    thank for your answer, i have read about Pocketsphinx.diff, pocketsphinx-
    wrapper.c or adds headers and avoids asm But i can't find them. Please
    tell me where to find them and how to apply it to my project.
    Thank so much.

     
  • Nickolay V. Shmyrev

    Hi

    I suggest you to try pocketsphinx trunk instead. It has a little bit different
    approach for android with SWIG. Remember that your compiler need to define
    thumb, you can just add it to the project properties when you compile
    sphinxbase. This way asm instructions will be skipped.

     

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.