Menu

Sphinx 4 compile errors...

Help
2004-06-25
2012-09-22
  • Brent Fisher

    Brent Fisher - 2004-06-25

    I am trying to compile sphinx 4 from the src download.  Unfortunately I receive (among others) the following compile errors:
    Kind    Status    Priority    Description    Resource    In Folder    Location
    Error            The method getLogMath(String) is undefined for the type LogMath    BaumWelchLearner.java    sphinx4.0.1alpha/sphinx4-0.1alpha/edu/cmu/sphinx/trainer    line 110

    Kind    Status    Priority    Description    Resource    In Folder    Location
    Error            The method initialize() in the type DataProcessor is not applicable for the arguments (String, null, SphinxProperties, null)    BaumWelchLearner.java    sphinx4.0.1alpha/sphinx4-0.1alpha/edu/cmu/sphinx/trainer    line 124

    It appears the source download isn't completely accurate.  Maybe it would be better to use CVS?

     
    • Paul Lamere

      Paul Lamere - 2004-06-28

      Brent:

      Are you using the 'build.xml' that comes with sphinx-4 to build the system?  There are  a number of source directories that are intentionally excluded from the build, including the 'edu/cmu/sphinx/trainer' directory (where the BaumWelchLearner is located).

      What steps are you using to build the source?

      Paul

       
      • None

        None - 2007-08-07

        I have the same issue...

        I'm using the build.xml contained in demo.sphinx.helloworld ... With netbeans rigth click then "ejecutar destino" or Run target... then Ejecutar (Run)...

        There is the first two output:

        all:
        Compiling 1 source file to C:\Documents and Settings\Maproz\Desktop\Sphinx\sphinx4-1.0beta-src\sphinx4-1.0beta\bld\classes
        C:\Documents and Settings\Maproz\Desktop\Sphinx\sphinx4-1.0beta-src\sphinx4-1.0beta\demo\sphinx\helloworld\HelloWorld.java:15: package edu.cmu.sphinx.frontend.util does not exist
        import edu.cmu.sphinx.frontend.util.Microphone;
        C:\Documents and Settings\Maproz\Desktop\Sphinx\sphinx4-1.0beta-src\sphinx4-1.0beta\demo\sphinx\helloworld\HelloWorld.java:16: package edu.cmu.sphinx.recognizer does not exist
        import edu.cmu.sphinx.recognizer.Recognizer;
        .
        .
        .
        13 errors
        C:\Documents and Settings\Maproz\Desktop\Sphinx\sphinx4-1.0beta-src\sphinx4-1.0beta\demo\sphinx\helloworld\build.xml:53: Compile failed; see the compiler error output for details.
        GENERACIÓN INCORRECTA (tiempo total: 0 segundos)

        I Hope someone can help me.

        Maproz

         
    • None

      None - 2007-08-08

      Now... trying with eclipse...

      following: http://cmusphinx.sourceforge.net/sphinx4/doc/Eclipse.html

      Output Message:

      Loading...
      Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
      at java.util.Arrays.copyOfRange(Unknown Source)
      at java.lang.String.<init>(Unknown Source)
      at java.io.BufferedReader.readLine(Unknown Source)
      at java.io.BufferedReader.readLine(Unknown Source)
      at edu.cmu.sphinx.linguist.dictionary.FastDictionary.loadDictionary(FastDictionary.java:214)
      at edu.cmu.sphinx.linguist.dictionary.FastDictionary.allocate(FastDictionary.java:171)
      at edu.cmu.sphinx.linguist.language.grammar.Grammar.allocate(Grammar.java:159)
      at edu.cmu.sphinx.linguist.flat.FlatLinguist.allocate(FlatLinguist.java:319)
      at edu.cmu.sphinx.decoder.search.SimpleBreadthFirstSearchManager.allocate(SimpleBreadthFirstSearchManager.java:602)
      at edu.cmu.sphinx.decoder.Decoder.allocate(Decoder.java:109)
      at edu.cmu.sphinx.recognizer.Recognizer.allocate(Recognizer.java:182)
      at demo.sphinx.helloworld.HelloWorld.main(HelloWorld.java:54)

      Why??? what im doing wrong!!!??? I am really desesperated!!!

      Maproz

       
      • Nickolay V. Shmyrev

        Read more carefully what compiler tells you:

        Exception in thread "main" java.lang.OutOfMemoryError: Java heap space

        So your build goes out-of-memory, probably you just need to increase heap size with apropriate options:

        http://www.caucho.com/resin-3.0/performance/jvm-tuning.xtp

        try something like -Xmx 1024m

         

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.