Menu

Problem building SphinxBase 0.7 on Cygwin

Help
Anonymous
2011-07-26
2012-09-22
  • Anonymous

    Anonymous - 2011-07-26

    I am trying to install sphinxbase 0.7 (latest stable release at the time of
    this writing) on my Windows XP computer via Cygwin. Configure runs without
    problems, but I can't get 'make' to work. I am using the tar.gz release, and
    have already renamed the sphinxbase directory to 'sphinxbase'.

    Here's the log: http://db.tt/5mI2I3s

     
  • Nickolay V. Shmyrev

    Hello

    I do not see any error in your log. What is the issue exactly?

    Please note that you can also use prebuilt windows binaries as well as VS2010
    to build pocketsphinx

     
  • Anonymous

    Anonymous - 2011-07-26

    Sorry, I didn't notice the error wasn't included in the logfile. I uploaded a
    new log file here: makefile.log. I ran configure with

    --prefix=/cygwin/c/sphinx/sphinxbase-install
    

    by the way. I tried running this with VS before, but remember running into
    lots of problems, so I gave up and ran it with Cygwin. I think I got it to
    work, but can't remember how. Would you recommend the VS or prebuilt bins over
    Cygwin? If so, are there any tutorials on using the prebuilt bins? I don't
    remember running into any while I was reading the tutorial on training an
    acoustic model, or in any of the READMEs. Thanks for your quick response, and
    I'm sorry for asking a lot of questions.

     
  • Nickolay V. Shmyrev

    I uploaded a new log file here: makefile.log.

    Still same. You need to use >& redirection instead of > to redirect stderr
    output.

    If you are reporting about libtool linking issue, it's a libtool bug which was
    already discussed here on forum. You can use search to get the details. You
    need to update libtool in Cygwin

    Would you recommend the VS or prebuilt bins over Cygwin?

    It doesn't matter. All three ways should work

    but remember running into lots of problems, so I gave up

    If you have issues it's better to report them or to help to fix them instead
    of giving up

     
  • Anonymous

    Anonymous - 2011-07-26

    Sorry, I uploaded the wrong file. Here's the one I was supposed to upload:
    make.log. I was running short on
    time when I tried out VS2010, which is why I didn't report it. Most of my
    problems would probably have been resolved if I just figured out the UI, and
    performed a few searches. Thanks for your quick response, and the tip about
    redirecting stderr. I'll look into libtool.

     
  • Anonymous

    Anonymous - 2011-07-26

    I just found the post about the libtool bug. I don't think it's the problem,
    because it doesn't report libtool as missing.

     
  • Anonymous

    Anonymous - 2011-07-26

    I looked everywhere for a fix, but can't find one. I tried updating, but the
    libtool I have installed is already the most recent version (2.4). I also
    tried reinstalling it from the cygwin setup program. As suggested in one of
    the threads, I tried running:

    make distclean
    
    
    
    
    ./autogen.sh --prefix=/cygdrive/c/sphinx/sphinxbase-install
    
    
    
    
    make
    

    but it still fails with the same error. Is there anything else I can do? or
    should I use the precompiled binaries? If so, how do I use them? Do I just
    download them, add its root directory to my path, and run the scripts with
    activeperl and python?

     
  • Nickolay V. Shmyrev

    is there anything else I can do?

    Read the post I linked to you. It clearly says:

    To understand what happens there you need to provide the following
    information:

    sort --version
    

    and

    echo $'a\nb\nc' | sort -uc; echo $?
    
     
  • Anonymous

    Anonymous - 2011-07-27

    oh, okay. I get the following:

    sort --version
    --versionThe system cannot find the file specified.
    
    echo $'a\nb\nc' | sort -uc; echo $?
    -ucThe system cannot find the file specified.
    1
    

    Sorry, I didn't understand the statement. I though it meant that the two
    commands would show ME what was wrong, rather than give YOU information about
    what my problem is.

     
  • Nickolay V. Shmyrev

    sort --version --versionThe system cannot find the file specified. echo
    $'a\nb\nc' | sort -uc; echo $? -ucThe system cannot find the file specified. 1

    Hello

    This doesn't look like a proper sort behavior. Maybe you conflict cygwin sort
    with windows binary or just sort in your cygwin doesn't function properly. Can
    you check that? The proper output must be:

    [user@host ~]$ sort --version
    sort (coreutils) 5.2.1
    Written by Mike Haertel and Paul Eggert.
    
    Copyright (C) 2004 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    [user@host ~]$ echo $'a\nb\nc' | sort -uc; echo $?
    0
    
     
  • Nickolay V. Shmyrev

    You also need to note that libtool uses "sort -uc" to find duplicates in
    archive.

     
  • Anonymous

    Anonymous - 2011-07-29

    I got it to work, but there were quite a few warnings. My PATH environment
    variable had "C:\WINDOWS\system32" come before cygwin's bin directory. When I
    used

    which sort
    

    it showed that Windows' sort was what was being called, rather than cygwin's.
    All I did was move cygwin's bin directory to the start of my PATH using SET.
    After that, it completed. I still got a lot of errors though. I can post a log
    if you want. Thanks for all your help, nshmyrev.

     
  • Nickolay V. Shmyrev

    I got it to work

    Great

    I still got a lot of errors though. I can post a log if you want.

    Please do

     

Log in to post a comment.