Menu

PocketSphinxAndroidDemo - ARM compile errors

Help
Anonymous
2011-03-01
2012-09-22
  • Anonymous

    Anonymous - 2011-03-01

    This question is a follow-up to a question I asked in this thread
    (I was asked to create a new thread related to this topic).

    I have some errors related to ARM registers:

    selected processor does not support `smull r1,r2,r0,r4' line 655, external location: /tmp/ccMl8dqd.s 
    unshifted register required -- `orr r1,r1,r2,lsl#20' line 657, external location: /tmp/ccjVapFt.s
    

    Has anyone who has successfully gotten the PocketSphinxAndroidDemo to compile
    and run encountered a problem similar to this? By default, ndk-build compiles
    using the armeabi ABI, so in theory, if this was a target processor error,
    then everyone else should have likely had the same problem with compiling. Of
    course, I don't think this is the case. If you have encountered a similar
    problem or have any ideas why my version might be problematic, please let me
    know. I'm using Ubuntu, Eclipse, and CDT.

     
  • Anonymous

    Anonymous - 2011-03-03

    I managed to get my code to compile by editing Android.mk to set some of the
    sources to compile with ARM:

    include $(CLEAR_VARS)
    LOCAL_C_INCLUDES := $(SPHINX_PATH)/sphinxbase/include/android $(SPHINX_PATH)/sphinxbase/include
    LOCAL_CFLAGS += -DHAVE_CONFIG_H
    LOCAL_CFLAGS += -DANDROID_NDK
    
    LOCAL_PATH := $(SPHINX_PATH)/sphinxbase/src/libsphinxbase/feat
    LOCAL_MODULE := sphinxfeat
    
    LOCAL_SRC_FILES := \
        agc.c \
        cmn.c.arm \
        cmn_prior.c.arm \
        feat.c \
        lda.c.arm
    

    Though, I'm surprised that these weren't already configured with .arm, since
    other sources are marked correctly in Android.mk. Does anyone have any ideas
    why my scenario is different?

     
  • Nickolay V. Shmyrev

    Hello

    I think this problem is specific for your configuration. If you could provide
    the information about it things will be easier to understand. In particular
    Android SDK version, target processor, OS, etc. Such information helps to
    understand why differences appear.

     

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.