Menu

Sphinxtrain compile error on windows

Help
2009-03-14
2012-09-22
  • youngbamboo

    youngbamboo - 2009-03-14

    Hi

    I download the Sphinxtrain and compile it under the instruction of tutorial using visual studio 2005. But there's the error message showed that the files main.c and parse_cmd_ln.c are not existed. Who can tell me how to solve it? I downloaded the nightly build. Thanks.

    The log is:

    parse_cmd_ln.c
    c1 : fatal error C1083: Cannot open source file: '........\src\programs\lda_train\parse_cmd_ln.c': No such file or directory
    main.c
    c1 : fatal error C1083: Cannot open source file: '........\src\programs\lda_train\main.c': No such file or directory
    Generating Code...

     
    • Nickolay V. Shmyrev

      You need to update project files manually.

       
      • youngbamboo

        youngbamboo - 2009-03-15

        I got them from release package. Thank you. Another problem, ngram_model_htk.c and ngram_model_fst.c are not existed. The log is:
        c1 : fatal error C1083: Cannot open source file: '....\src\libsphinxbase\lm\ngram_model_htk.c': No such file or directory
        ngram_model_fst.c
        c1 : fatal error C1083: Cannot open source file: '....\src\libsphinxbase\lm\ngram_model_fst.c': No such file or directory

        I've checked nightly build, release and svn, but I cannot find them. Thanks.

         
        • youngbamboo

          youngbamboo - 2009-03-15

          Hello, I remove them from the project and it works well. I'm not sure it's a problem or not.

           
          • Nickolay V. Shmyrev

            This issue is now fixed in trunk

             
            • StretchTiberius

              StretchTiberius - 2009-03-27

              I just got a fresh copy of SphinxTrain from the svn repository and have the same problem. Could it have something to do with converting the Solution to Visual Studio 2008? Is it acceptable to simply remove these files from the project?

               
              • StretchTiberius

                StretchTiberius - 2009-03-27

                These missing files are also a problem when running: perl scripts_pl\make_feats.pl -ctl etc\an4_train.fileids

                I get the following errors:
                ERROR: "........\src\libs\libcommon\cmd_ln.c", line 551: Unknown switch -verbose seen
                ERROR: "........\src\libs\libcommon\cmd_ln.c", line 525: Expecting 'bin/wave2feat -switch_1 <arg_1> -switch_2 <arg_2> ...'

                 
                • Nickolay V. Shmyrev

                  StretchTiberius, can you please submit project files corrections, so they will be fixed in svn? The previous issue was in sphinxbase and it was fixed.

                  About -verbose, the option is there, you are probably using old binary with newer scripts.

                   
                  • StretchTiberius

                    StretchTiberius - 2009-03-30

                    I don't have permission to commit an update.

                     
                    • Nickolay V. Shmyrev

                      You still can make all corrections and create a patch. I'll happily apply it.

                      Or just describe what should be done in order to get this fixed. Should I remove anything else except lda_train?

                       
                      • StretchTiberius

                        StretchTiberius - 2009-03-30

                        Aside from updating the Solution for Visual Studio 2008, all I did was remove the lda_train project.

                         
                  • StretchTiberius

                    StretchTiberius - 2009-03-30

                    I got a fresh copy of SphinxTrain from the svn and ran a "Build All" today. These are the errors I received:
                    c1 : fatal error C1083: Cannot open source file: '........\src\programs\lda_train\main.c': No such file or directory
                    parse_cmd_ln.c
                    c1 : fatal error C1083: Cannot open source file: '........\src\programs\lda_train\parse_cmd_ln.c': No such file or directory

                     
                    • Nickolay V. Shmyrev

                      Ok, it should be fixed now. Thanks a lot for your help!

                       
                  • StretchTiberius

                    StretchTiberius - 2009-03-30

                    I got a fresh copy of SphinxTrain from the svn and ran a "Build All" today. These are the errors I received:
                    c1 : fatal error C1083: Cannot open source file: '........\src\programs\lda_train\main.c': No such file or directory
                    parse_cmd_ln.c
                    c1 : fatal error C1083: Cannot open source file: '........\src\programs\lda_train\parse_cmd_ln.c': No such file or directory

                     

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.