Menu

Unable to compile pocketsphinx for iphone

Help
Ravi Kiran
2010-09-09
2012-09-22
  • Ravi Kiran

    Ravi Kiran - 2010-09-09

    hello sir ,
    need help regarding compilation of pocketsphinx and sphinxbase in mac
    am new to iphone environment,
    i am going to implement speech recognition in my project ,
    for that i downloaded both pocketsphinx0.6 and sphinxbase0.6 and tried to
    compile
    MAC07:sphinxbase work$ ./autogen.sh
    It worked well,and after that i tried to compile autogen.sh in sphinxbase,
    then i got this error
    MAC07:pocketsphinx work$ ./autogen.sh
    Warning: I am going to run configure' with no arguments. If you wish to pass any to it, please specify them on the./autogen.sh' command line.

    processing .
    Running glibtoolize...
    You should update your aclocal.m4' by running aclocal. Running aclocal -I m4 ... Running automake --gnu --copy ... Running autoconf ... Running ./configure ... checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... ./install-sh -c -d checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets $(MAKE)... yes checking build system type... i686-apple-darwin9.2.0 checking host system type... i686-apple-darwin9.2.0 checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking for a sed that does not truncate output... /usr/bin/sed checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ld used by gcc... /usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld checking if the linker (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) is GNU ld... no checking for /usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -p checking whether ln -s works... yes checking how to recognise dependent libraries... pass_all checking how to run the C preprocessor... gcc -E checking for ANSI C header files... rm: conftest.dSYM: is a directory rm: conftest.dSYM: is a directory yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 checking how to run the C++ preprocessor... g++ -E checking for g77... no checking for xlf... no checking for f77... no checking for frt... no checking for pgf77... no checking for cf77... no checking for fort77... no checking for fl32... no checking for af77... no checking for xlf90... no checking for f90... no checking for pgf90... no checking for pghpf... no checking for epcf90... no checking for gfortran... no checking for g95... no checking for xlf95... no checking for f95... no checking for fort... no checking for ifort... no checking for ifc... no checking for efc... no checking for pgf95... no checking for lf95... no checking for ftn... no checking whether we are using the GNU Fortran 77 compiler... no checking whether accepts -g... no checking the maximum length of command line arguments... 196608 checking command to parse /usr/bin/nm -p output from gcc object... rm: conftest.dSYM: is a directory rm: conftest.dSYM: is a directory rm: conftest.dSYM: is a directory rm: conftest.dSYM: is a directory ok checking for objdir... .libs checking for ar... ar checking for ranlib... ranlib checking for strip... strip rm: conftest.dSYM: is a directory rm: conftest.dSYM: is a directory checking if gcc supports -fno-rtti -fno-exceptions... rm: conftest.dSYM: is a directory no checking for gcc option to produce PIC... -fno-common checking if gcc PIC flag -fno-common works... rm: conftest.dSYM: is a directory yes checking if gcc static flag -static works... rm: conftest.dSYM: is a directory no checking if gcc supports -c -o file.o... rm: conftest.dSYM: is a directory yes checking whether the gcc linker (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) supports shared libraries... yes checking dynamic linker characteristics... darwin9.2.0 dyld checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes configure: creating libtool appending configuration tag "CXX" to libtool rm: conftest.dSYM: is a directory rm: conftest.dSYM: is a directory checking for ld used by g++... /usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld checking if the linker (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) is GNU ld... no checking whether the g++ linker (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) supports shared libraries... yes checking for g++ option to produce PIC... -fno-common checking if g++ PIC flag -fno-common works... rm: conftest.dSYM: is a directory yes checking if g++ static flag -static works... rm: conftest.dSYM: is a directory no checking if g++ supports -c -o file.o... rm: conftest.dSYM: is a directory yes checking whether the g++ linker (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) supports shared libraries... yes checking dynamic linker characteristics... darwin9.2.0 dyld checking how to hardcode library paths into programs... immediate appending configuration tag "F77" to libtool checking whether byte ordering is bigendian... no checking for long long... yes checking for long long... (cached) yes checking size of long long... 8 checking for dup2... yes checking for pkg-config... no checking for doxygen... no checking for python... /Library/Frameworks/Python.framework/Versions/2.7/bin/python checking for python-config... /Library/Frameworks/Python.framework/Versions/2.7/bin/python-config checking Python.h usability... yes checking Python.h presence... yes checking for Python.h... yes checking for cython... no checking for pkg-config... no checking for GStreamer... checking for sphinxbase in /Users/work/Desktop/Libs/pocketsphinx/../sphinxbase... no checking for sphinxbase in /Users/work/Desktop/Libs/pocketsphinx/../sphinxbase... no ./configure: line 20681: SphinxBase_CFLAGS: command not found ./configure: line 20682: SphinxBase_LIBS: command not found checking sphinx_config.h usability... no checking sphinx_config.h presence... no checking for sphinx_config.h... no configure: error: SphinxBase was not found on your system. Seeconfig.log' for more details.

    i think something am missing,but am unable to identify that,
    so please help me regarding this,
    Thanks to Sphinx team

     
  • Ravi Kiran

    Ravi Kiran - 2010-09-09

    when i follow the insturctions given in this link and executed
    InstallOpenEars.pl terminal is giving
    "Don't have permission to renamecmu_us_awb_cg_durmodel.c" Error

     
  • Nickolay V. Shmyrev

    Run it as a super-user!

     
  • Ravi Kiran

    Ravi Kiran - 2010-09-09

    Even though i run as a super user am getting same error

     
  • Ravi Kiran

    Ravi Kiran - 2010-09-09

    errors i got in terminal

    Don't have permission to renamecmu_us_awb_cg_durmodel.cDon't have permission
    to renamecmu_us_awb_cg_durmodel.hDon't have permission to
    renamecmu_us_awb_cg_f0_trees.cDon't have permission to
    renamecmu_us_awb_cg_f0_trees.hDon't have permission to
    renamecmu_us_awb_cg_phonestate.cDon't have permission to
    renamecmu_us_awb_cg_single_mcep_trees.cDon't have permission to
    renamecmu_us_awb_cg_single_mcep_trees.hDon't have permission to
    renamecmu_us_awb_cg_single_params.cDon't have permission to
    renamecmu_us_awb_cg.cDon't have permission to renamecmu_us_awb.cDon't have
    permission to renamecmu_us_rms_cg_durmodel.cDon't have permission to
    renamecmu_us_rms_cg_durmodel.hDon't have permission to
    renamecmu_us_rms_cg_f0_trees.cDon't have permission to
    renamecmu_us_rms_cg_f0_trees.hDon't have permission to
    renamecmu_us_rms_cg_phonestate.cDon't have permission to
    renamecmu_us_rms_cg_single_mcep_trees.cDon't have permission to
    renamecmu_us_rms_cg_single_mcep_trees.hDon't have permission to
    renamecmu_us_rms_cg_single_params.cDon't have permission to
    renamecmu_us_rms_cg.cDon't have permission to renamecmu_us_rms.cDon't have
    permission to renamecmu_us_slt_cg_durmodel.cDon't have permission to
    renamecmu_us_slt_cg_durmodel.hDon't have permission to
    renamecmu_us_slt_cg_f0_trees.cDon't have permission to
    renamecmu_us_slt_cg_f0_trees.hDon't have permission to
    renamecmu_us_slt_cg_phonestate.cDon't have permission to
    renamecmu_us_slt_cg_single_mcep_trees.cDon't have permission to
    renamecmu_us_slt_cg_single_mcep_trees.hDon't have permission to
    renamecmu_us_slt_cg_single_params.cDon't have permission to
    renamecmu_us_slt_cg.cDon't have permission to renamecmu_us_slt.c

     
  • Nickolay V. Shmyrev

    Hm, flite archive seems to be corrupted. Can you also try to run

    find . -type f -name "*.[ch]" -exec chmod 644 {} \;
    

    Don't forget trial ";". This command is supposed to change permission of the
    files.

     
  • Ravi Kiran

    Ravi Kiran - 2010-09-09

    i tried this command for firt file named cmu_us_awb_cg_durmodel.c and dis run
    again,
    but same error is coming for that file.

     
  • Nickolay V. Shmyrev

    Can you try to rename it manually please? Just give it some different name

     
  • Ravi Kiran

    Ravi Kiran - 2010-09-09

    even though same errors,
    when i tried to build flight.xcodeproj i got more than 10000 errors

     
  • Halle

    Halle - 2010-09-10

    Hi kiran0519,

    I'm the OpenEars developer -- I think I've seen this error before when running
    the script on a package of files that are already modified. Based on my tests,
    you should definitely not have to run the installs script as sudo but I think
    you have to re-run it on a freshly-unarchived install. Let me look into it and
    see if I can give you some advice to get OpenEars working.

     
  • Halle

    Halle - 2010-09-10

    OK I did some testing on the OpenEars install process and I can do two things
    to cause that error: the first is to run the install script twice or on
    already-modified files, and the second is to run it without actually having
    downloaded and unarchived the four CMU library archives that are required by
    OpenEars, but just the CMU Flite package by itself. I'll add this to the
    OpenEars support page.

    kiran0519, could you try again with a fresh install of OpenEars, but starting
    from the top of the OpenEars "Getting Started" page and making sure to follow
    all of the steps, including the full set of four downloads linked to in
    "Before you begin", unarchiving them and moving them into the Libraries folder
    of the OpenEars distribution as described, and then cd'ing into the Libraries
    folder before running the install script? OpenEars and its install script
    aren't designed to work with Flite only, it's a round-trip package that uses
    (and requires) Pocketsphinx, Sphinxbase, Flite and some extra 8khz Flite
    voices.

     
  • Ravi Kiran

    Ravi Kiran - 2010-09-10

    hello sir,
    When i run with fresh unarchived files it completed with no errors,
    but the same thing i've done yesterday also,but i was with errors,
    and can i know what might be the issue of getting "dont have permission to
    rename ---- file" error?

     
  • Halle

    Halle - 2010-09-10

    Hi kiran0519,

    I'm glad to hear it completed with no errors -- go ahead and check out the
    rest of the instructions for using OpenEars after you've successfully
    installed the libraries (you should also now be able to run the OpenEars
    example project that is in the top-level OpenEars folder). You can also ask
    further questions that are just about using OpenEars on the OpenEars forum at
    http://www.politepix.com/forums, since I
    might not necessarily see them here.

    To answer your question, I think the reason for the error is either that you
    hadn't downloaded all of the CMU libraries, or that you unintentionally ran
    the install script on an already-modified CMU package folder (for instance,
    maybe you accidentally used the same folder that you had already run
    autogen.sh on). This is the very first version of OpenEars and the install
    script is picky and doesn't give great error reporting yet, so in most cases
    when it says there is a permission error it actually means that the file that
    the script is looking for isn't present. That would happen if the voices
    folder wasn't in place that it was expecting, or if the installer had already
    been run and renamed the files that it describes in the error so they were no
    longer at the same path. I added this issue to the OpenEars FAQ.

     

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.