Menu

Question about compile sphinxtrain-1.0.7

Help
BlueBang
2012-04-19
2012-09-22
  • BlueBang

    BlueBang - 2012-04-19

    hello all,
    I was compiled sphinbase first ,and set '
    PKG_CONFIG_PATH=/usr/local/lib/pkgconfig '.When i execute './configure'
    command-line,it tip me that PKG_CONFIG_PATH environment variable is set
    correctly,but i was found the lib-file 'sphinxbase.pc' in that path;What's
    wrong with it?

    this is config.log :

    This file contains any messages produced by compilers while
    running configure, to aid debugging if configure makes a mistake.
    
    It was created by SphinxTrain configure 1.0.99, which was
    generated by GNU Autoconf 2.61.  Invocation command line was
    
      $ ./configure
    
    ## --------- ##
    ## Platform. ##
    ## --------- ##
    
    hostname = zdz-PC
    uname -m = i686
    uname -r = 1.7.13(0.260/5/3)
    uname -s = CYGWIN_NT-6.1
    uname -v = 2012-04-05 12:43
    
    /usr/bin/uname -p = unknown
    /bin/uname -X     = unknown
    
    /bin/arch              = i686
    /usr/bin/arch -k       = unknown
    /usr/convex/getsysinfo = unknown
    /usr/bin/hostinfo      = unknown
    /bin/machine           = unknown
    /usr/bin/oslevel       = unknown
    /bin/universe          = unknown
    
    PATH: /usr/local/bin
    PATH: /usr/bin
    PATH: /cygdrive/d/oracle/product/10.2.0/client_1/bin
    PATH: /cygdrive/d/jdk1.5.0/bin
    PATH: /cygdrive/d/jdk1.5.0/jre/bin
    PATH: /cygdrive/c/Program Files/TortoiseSVN/bin
    PATH: /cygdrive/d/Program Files/TortoiseHg
    PATH: /cygdrive/c/Program Files/Common Files/Thunder Network/KanKan/Codecs
    PATH: /cygdrive/d/Program Files/Windows7Master
    PATH: /cygdrive/c/Program Files/Common Files/Acronis/SnapAPI
    PATH: /usr/bin
    
    
    ## ----------- ##
    ## Core tests. ##
    ## ----------- ##
    
    configure:1767: checking build system type
    configure:1785: result: i686-pc-cygwin
    configure:1807: checking host system type
    configure:1822: result: i686-pc-cygwin
    configure:1892: checking for gcc
    configure:1908: found /usr/bin/gcc
    configure:1919: result: gcc
    configure:2157: checking for C compiler version
    configure:2164: gcc --version >&5
    gcc (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
    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.
    
    configure:2167: $? = 0
    configure:2174: gcc -v >&5
    Reading specs from /usr/lib/gcc/i686-pc-cygwin/3.4.4/specs
    Configured with: /managed/gcc-build/final-v3-bootstrap/gcc-3.4.4-999/configure --verbose --program-suffix=-3 --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-languages=c,ada,c++,d,f77,pascal,java,objc --enable-nls --without-included-gettext --enable-version-specific-runtime-libs --without-x --enable-libgcj --disable-java-awt --with-system-zlib --enable-interpreter --disable-libgcj-debug --enable-threads=posix --enable-java-gc=boehm --disable-win32-registry --enable-sjlj-exceptions --enable-hash-synchronization --enable-libstdcxx-debug
    Thread model: posix
    gcc version 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
    configure:2177: $? = 0
    configure:2184: gcc -V >&5
    gcc: `-V' option must have argument
    configure:2187: $? = 1
    configure:2210: checking for C compiler default output file name
    configure:2237: gcc    conftest.c  >&5
    configure:2240: $? = 0
    configure:2278: result: a.exe
    configure:2295: checking whether the C compiler works
    configure:2305: ./a.exe
    configure:2308: $? = 0
    configure:2325: result: yes
    configure:2332: checking whether we are cross compiling
    configure:2334: result: no
    configure:2337: checking for suffix of executables
    configure:2344: gcc -o conftest.exe    conftest.c  >&5
    configure:2347: $? = 0
    configure:2371: result: .exe
    configure:2377: checking for suffix of object files
    configure:2403: gcc -c   conftest.c >&5
    configure:2406: $? = 0
    configure:2429: result: o
    configure:2433: checking whether we are using the GNU C compiler
    configure:2462: gcc -c   conftest.c >&5
    configure:2468: $? = 0
    configure:2485: result: yes
    configure:2490: checking whether gcc accepts -g
    configure:2520: gcc -c -g  conftest.c >&5
    configure:2526: $? = 0
    configure:2625: result: yes
    configure:2642: checking for gcc option to accept ISO C89
    configure:2716: gcc  -c -g -O2  conftest.c >&5
    configure:2722: $? = 0
    configure:2745: result: none needed
    configure:2824: checking for g++
    configure:2840: found /usr/bin/g++
    configure:2851: result: g++
    configure:2882: checking for C++ compiler version
    configure:2889: g++ --version >&5
    g++ (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
    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.
    
    configure:2892: $? = 0
    configure:2899: g++ -v >&5
    Reading specs from /usr/lib/gcc/i686-pc-cygwin/3.4.4/specs
    Configured with: /managed/gcc-build/final-v3-bootstrap/gcc-3.4.4-999/configure --verbose --program-suffix=-3 --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-languages=c,ada,c++,d,f77,pascal,java,objc --enable-nls --without-included-gettext --enable-version-specific-runtime-libs --without-x --enable-libgcj --disable-java-awt --with-system-zlib --enable-interpreter --disable-libgcj-debug --enable-threads=posix --enable-java-gc=boehm --disable-win32-registry --enable-sjlj-exceptions --enable-hash-synchronization --enable-libstdcxx-debug
    Thread model: posix
    gcc version 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
    configure:2902: $? = 0
    configure:2909: g++ -V >&5
    g++: `-V' option must have argument
    configure:2912: $? = 1
    configure:2915: checking whether we are using the GNU C++ compiler
    configure:2944: g++ -c   conftest.cpp >&5
    configure:2950: $? = 0
    configure:2967: result: yes
    configure:2972: checking whether g++ accepts -g
    configure:3002: g++ -c -g  conftest.cpp >&5
    configure:3008: $? = 0
    configure:3107: result: yes
    configure:3173: checking for ranlib
    configure:3189: found /usr/bin/ranlib
    configure:3200: result: ranlib
    configure:3269: checking for ar
    configure:3285: found /usr/bin/ar
    configure:3296: result: ar
    configure:3329: checking how to run the C preprocessor
    configure:3369: gcc -E  conftest.c
    configure:3375: $? = 0
    configure:3406: gcc -E  conftest.c
    conftest.c:8:28: ac_nonexistent.h: No such file or directory
    configure:3412: $? = 1
    configure: failed program was:
    | /* confdefs.h.  */
    | #define PACKAGE_NAME "SphinxTrain"
    | #define PACKAGE_TARNAME "sphinxtrain"
    | #define PACKAGE_VERSION "1.0.99"
    | #define PACKAGE_STRING "SphinxTrain 1.0.99"
    | #define PACKAGE_BUGREPORT ""
    | /* end confdefs.h.  */
    | #include <ac_nonexistent.h>
    configure:3445: result: gcc -E
    configure:3474: gcc -E  conftest.c
    configure:3480: $? = 0
    configure:3511: gcc -E  conftest.c
    conftest.c:8:28: ac_nonexistent.h: No such file or directory
    configure:3517: $? = 1
    configure: failed program was:
    | /* confdefs.h.  */
    | #define PACKAGE_NAME "SphinxTrain"
    | #define PACKAGE_TARNAME "sphinxtrain"
    | #define PACKAGE_VERSION "1.0.99"
    | #define PACKAGE_STRING "SphinxTrain 1.0.99"
    | #define PACKAGE_BUGREPORT ""
    | /* end confdefs.h.  */
    | #include <ac_nonexistent.h>
    configure:3555: checking for grep that handles long lines and -e
    configure:3629: result: /usr/bin/grep
    configure:3634: checking for egrep
    configure:3712: result: /usr/bin/grep -E
    configure:3717: checking for ANSI C header files
    configure:3747: gcc -c -g -O2 -Wall  conftest.c >&5
    configure:3753: $? = 0
    configure:3852: gcc -o conftest.exe -g -O2 -Wall   conftest.c  >&5
    configure:3855: $? = 0
    configure:3861: ./conftest.exe
    configure:3864: $? = 0
    configure:3881: result: yes
    configure:3905: checking for sys/types.h
    configure:3926: gcc -c -g -O2 -Wall  conftest.c >&5
    configure:3932: $? = 0
    configure:3948: result: yes
    configure:3905: checking for sys/stat.h
    configure:3926: gcc -c -g -O2 -Wall  conftest.c >&5
    configure:3932: $? = 0
    configure:3948: result: yes
    configure:3905: checking for stdlib.h
    configure:3926: gcc -c -g -O2 -Wall  conftest.c >&5
    configure:3932: $? = 0
    configure:3948: result: yes
    configure:3905: checking for string.h
    configure:3926: gcc -c -g -O2 -Wall  conftest.c >&5
    configure:3932: $? = 0
    configure:3948: result: yes
    configure:3905: checking for memory.h
    configure:3926: gcc -c -g -O2 -Wall  conftest.c >&5
    configure:3932: $? = 0
    configure:3948: result: yes
    configure:3905: checking for strings.h
    configure:3926: gcc -c -g -O2 -Wall  conftest.c >&5
    configure:3932: $? = 0
    configure:3948: result: yes
    configure:3905: checking for inttypes.h
    configure:3926: gcc -c -g -O2 -Wall  conftest.c >&5
    configure:3932: $? = 0
    configure:3948: result: yes
    configure:3905: checking for stdint.h
    configure:3926: gcc -c -g -O2 -Wall  conftest.c >&5
    configure:3932: $? = 0
    configure:3948: result: yes
    configure:3905: checking for unistd.h
    configure:3926: gcc -c -g -O2 -Wall  conftest.c >&5
    configure:3932: $? = 0
    configure:3948: result: yes
    configure:3960: checking whether byte ordering is bigendian
    configure:3993: gcc -c -g -O2 -Wall  conftest.c >&5
    configure:3999: $? = 0
    configure:4031: gcc -c -g -O2 -Wall  conftest.c >&5
    conftest.c: In function `main':
    conftest.c:25: error: `not' undeclared (first use in this function)
    conftest.c:25: error: (Each undeclared identifier is reported only once
    conftest.c:25: error: for each function it appears in.)
    conftest.c:25: error: parse error before "big"
    configure:4037: $? = 1
    configure: failed program was:
    | /* confdefs.h.  */
    | #define PACKAGE_NAME "SphinxTrain"
    | #define PACKAGE_TARNAME "sphinxtrain"
    | #define PACKAGE_VERSION "1.0.99"
    | #define PACKAGE_STRING "SphinxTrain 1.0.99"
    | #define PACKAGE_BUGREPORT ""
    | #define STDC_HEADERS 1
    | #define HAVE_SYS_TYPES_H 1
    | #define HAVE_SYS_STAT_H 1
    | #define HAVE_STDLIB_H 1
    | #define HAVE_STRING_H 1
    | #define HAVE_MEMORY_H 1
    | #define HAVE_STRINGS_H 1
    | #define HAVE_INTTYPES_H 1
    | #define HAVE_STDINT_H 1
    | #define HAVE_UNISTD_H 1
    | /* end confdefs.h.  */
    | #include <sys/types.h>
    | #include <sys/param.h>
    | 
    | int
    | main ()
    | {
    | #if BYTE_ORDER != BIG_ENDIAN
    |  not big endian
    | #endif
    | 
    |   ;
    |   return 0;
    | }
    configure:4177: result: no
    configure:4198: checking for log in -lm
    configure:4233: gcc -o conftest.exe -g -O2 -Wall   conftest.c -lm   >&5
    conftest.c:25: warning: conflicting types for built-in function 'log'
    configure:4239: $? = 0
    configure:4257: result: yes
    configure:4269: checking for d_log in -lg2c
    configure:4304: gcc -o conftest.exe -g -O2 -Wall   conftest.c -lg2c  -lm  >&5
    /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lg2c
    collect2: ld returned 1 exit status
    configure:4310: $? = 1
    configure: failed program was:
    | /* confdefs.h.  */
    | #define PACKAGE_NAME "SphinxTrain"
    | #define PACKAGE_TARNAME "sphinxtrain"
    | #define PACKAGE_VERSION "1.0.99"
    | #define PACKAGE_STRING "SphinxTrain 1.0.99"
    | #define PACKAGE_BUGREPORT ""
    | #define STDC_HEADERS 1
    | #define HAVE_SYS_TYPES_H 1
    | #define HAVE_SYS_STAT_H 1
    | #define HAVE_STDLIB_H 1
    | #define HAVE_STRING_H 1
    | #define HAVE_MEMORY_H 1
    | #define HAVE_STRINGS_H 1
    | #define HAVE_INTTYPES_H 1
    | #define HAVE_STDINT_H 1
    | #define HAVE_UNISTD_H 1
    | #define HAVE_LIBM 1
    | /* end confdefs.h.  */
    | 
    | /* Override any GCC internal prototype to avoid an error.
    |    Use char because int might match the return type of a GCC
    |    builtin and then its argument prototype would still apply.  */
    | #ifdef __cplusplus
    | extern "C"
    | #endif
    | char d_log ();
    | int
    | main ()
    | {
    | return d_log ();
    |   ;
    |   return 0;
    | }
    configure:4328: result: no
    configure:4344: checking for perl5
    configure:4377: result: no
    configure:4344: checking for perl
    configure:4362: found /usr/bin/perl
    configure:4374: result: /usr/bin/perl
    configure:4399: checking for festival
    configure:4431: result: /usr/bin/festival
    configure:4486: checking for sphinxbase in /cygdrive/c/Users/zdz/Desktop/sphinx/MyTrain/sphinxtrain-1.0.7/sphinxtrain-1.0.7/../sphinxbase
    configure:4494: result: no
    configure:4486: checking for sphinxbase in /cygdrive/c/Users/zdz/Desktop/sphinx/MyTrain/sphinxtrain-1.0.7/sphinxtrain-1.0.7/../sphinxbase*
    configure:4494: result: no
    configure:4555: checking for pkg-config
    configure:4588: result: no
    configure:4628: checking for SphinxBase
    configure:4708: error: SphinxBase was not found in the parent directories or
    installed system-wide on your system.  Make sure that
    you have compiled it or installed it and that the
    PKG_CONFIG_PATH environment variable is set correctly, if
    it was installed in a non-standard prefix.
    See `config.log' for more details.
    
    ## ---------------- ##
    ## Cache variables. ##
    ## ---------------- ##
    
    ac_cv_build=i686-pc-cygwin
    ac_cv_c_bigendian=no
    ac_cv_c_compiler_gnu=yes
    ac_cv_cxx_compiler_gnu=yes
    ac_cv_env_CCC_set=
    ac_cv_env_CCC_value=
    ac_cv_env_CC_set=
    ac_cv_env_CC_value=
    ac_cv_env_CFLAGS_set=
    ac_cv_env_CFLAGS_value=
    ac_cv_env_CPPFLAGS_set=
    ac_cv_env_CPPFLAGS_value=
    ac_cv_env_CPP_set=
    ac_cv_env_CPP_value=
    ac_cv_env_CXXFLAGS_set=
    ac_cv_env_CXXFLAGS_value=
    ac_cv_env_CXX_set=
    ac_cv_env_CXX_value=
    ac_cv_env_LDFLAGS_set=
    ac_cv_env_LDFLAGS_value=
    ac_cv_env_LIBS_set=
    ac_cv_env_LIBS_value=
    ac_cv_env_PKG_CONFIG_set=
    ac_cv_env_PKG_CONFIG_value=
    ac_cv_env_SphinxBase_CFLAGS_set=
    ac_cv_env_SphinxBase_CFLAGS_value=
    ac_cv_env_SphinxBase_LIBS_set=
    ac_cv_env_SphinxBase_LIBS_value=
    ac_cv_env_build_alias_set=
    ac_cv_env_build_alias_value=
    ac_cv_env_host_alias_set=
    ac_cv_env_host_alias_value=
    ac_cv_env_target_alias_set=
    ac_cv_env_target_alias_value=
    ac_cv_exeext=.exe
    ac_cv_header_inttypes_h=yes
    ac_cv_header_memory_h=yes
    ac_cv_header_stdc=yes
    ac_cv_header_stdint_h=yes
    ac_cv_header_stdlib_h=yes
    ac_cv_header_string_h=yes
    ac_cv_header_strings_h=yes
    ac_cv_header_sys_stat_h=yes
    ac_cv_header_sys_types_h=yes
    ac_cv_header_unistd_h=yes
    ac_cv_host=i686-pc-cygwin
    ac_cv_lib_g2c_d_log=no
    ac_cv_lib_m_log=yes
    ac_cv_objext=o
    ac_cv_path_EGREP='/usr/bin/grep -E'
    ac_cv_path_FESTIVAL=/usr/bin/festival
    ac_cv_path_GREP=/usr/bin/grep
    ac_cv_path_PERL=/usr/bin/perl
    ac_cv_prog_CPP='gcc -E'
    ac_cv_prog_ac_ct_AR=ar
    ac_cv_prog_ac_ct_CC=gcc
    ac_cv_prog_ac_ct_CXX=g++
    ac_cv_prog_ac_ct_RANLIB=ranlib
    ac_cv_prog_cc_c89=
    ac_cv_prog_cc_g=yes
    ac_cv_prog_cxx_g=yes
    
    ## ----------------- ##
    ## Output variables. ##
    ## ----------------- ##
    
    AR='ar'
    CC='gcc'
    CFLAGS='-g -O2 -Wall'
    CPP='gcc -E'
    CPPFLAGS=''
    CXX='g++'
    CXXFLAGS='-g -O2'
    DEFS=''
    ECHO_C=''
    ECHO_N='-n'
    ECHO_T=''
    EGREP='/usr/bin/grep -E'
    EXEEXT='.exe'
    FESTIVAL='/usr/bin/festival'
    GREP='/usr/bin/grep'
    LAPACK_LITE=''
    LDFLAGS=''
    LIBOBJS=''
    LIBS='-lm '
    LTLIBOBJS=''
    OBJEXT='o'
    PACKAGE_BUGREPORT=''
    PACKAGE_NAME='SphinxTrain'
    PACKAGE_STRING='SphinxTrain 1.0.99'
    PACKAGE_TARNAME='sphinxtrain'
    PACKAGE_VERSION='1.0.99'
    PATH_SEPARATOR=':'
    PERL='/usr/bin/perl'
    PKG_CONFIG=''
    RANLIB='ranlib'
    SHELL='/bin/sh'
    SphinxBase_CFLAGS=''
    SphinxBase_LIBS=''
    ac_ct_CC='gcc'
    ac_ct_CXX='g++'
    bindir='${exec_prefix}/bin'
    build='i686-pc-cygwin'
    build_alias=''
    build_cpu='i686'
    build_os='cygwin'
    build_vendor='pc'
    datadir='${datarootdir}'
    datarootdir='${prefix}/share'
    docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
    dvidir='${docdir}'
    exec_prefix='NONE'
    host='i686-pc-cygwin'
    host_alias=''
    host_cpu='i686'
    host_os='cygwin'
    host_vendor='pc'
    htmldir='${docdir}'
    includedir='${prefix}/include'
    infodir='${datarootdir}/info'
    libdir='${exec_prefix}/lib'
    libexecdir='${exec_prefix}/libexec'
    localedir='${datarootdir}/locale'
    localstatedir='${prefix}/var'
    mandir='${datarootdir}/man'
    oldincludedir='/usr/include'
    pdfdir='${docdir}'
    prefix='NONE'
    program_transform_name='s,x,x,'
    psdir='${docdir}'
    sbindir='${exec_prefix}/sbin'
    sharedstatedir='${prefix}/com'
    sphinxbase=''
    sphinxbasebuild=''
    sysconfdir='${prefix}/etc'
    target_alias=''
    
    ## ----------- ##
    ## confdefs.h. ##
    ## ----------- ##
    
    #define PACKAGE_NAME "SphinxTrain"
    #define PACKAGE_TARNAME "sphinxtrain"
    #define PACKAGE_VERSION "1.0.99"
    #define PACKAGE_STRING "SphinxTrain 1.0.99"
    #define PACKAGE_BUGREPORT ""
    #define STDC_HEADERS 1
    #define HAVE_SYS_TYPES_H 1
    #define HAVE_SYS_STAT_H 1
    #define HAVE_STDLIB_H 1
    #define HAVE_STRING_H 1
    #define HAVE_MEMORY_H 1
    #define HAVE_STRINGS_H 1
    #define HAVE_INTTYPES_H 1
    #define HAVE_STDINT_H 1
    #define HAVE_UNISTD_H 1
    #define HAVE_LIBM 1
    
    configure: exit 1
    
     
  • BlueBang

    BlueBang - 2012-04-19

    kill this problem ,I'm working on Cygwin. add environment variable on windows
    system . thanks all

     

Log in to post a comment.