by using codesourcery toolchain the configure is below, Make install was success. But, the binary is not running in target.
./configure --prefix=/home/prabhu/pock_arm/sb --exec-prefix=/home/prabhu/pock_arm/sb --host=i686 --target=arm CC=/home/prabhu/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/arm-none-linux-gnueabi-gcc [sudo] password for prabhu:
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for i686-strip... no
checking for strip... strip
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-none
checking for style of include used by make... GNU
checking for i686-gcc... /home/prabhu/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/arm-none-linux-gnueabi-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /home/prabhu/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/arm-none-linux-gnueabi-gcc accepts -g... yes
checking for /home/prabhu/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/arm-none-linux-gnueabi-gcc option to accept ISO C89... none needed
checking dependency style of /home/prabhu/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/arm-none-linux-gnueabi-gcc... gcc3
checking for library containing strerror... none required
checking for i686-gcc... (cached) /home/prabhu/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/arm-none-linux-gnueabi-gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether /home/prabhu/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/arm-none-linux-gnueabi-gcc accepts -g... (cached) yes
checking for /home/prabhu/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/arm-none-linux-gnueabi-gcc option to accept ISO C89... (cached) none needed
checking dependency style of /home/prabhu/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/arm-none-linux-gnueabi-gcc... (cached) gcc3
checking for /home/prabhu/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/arm-none-linux-gnueabi-gcc option to accept ISO C99... -std=gnu99
checking for /home/prabhu/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/arm-none-linux-gnueabi-gcc -std=gnu99 option to accept ISO Standard C... (cached) -std=gnu99
checking for bison... bison -y
checking how to run the C preprocessor... /home/prabhu/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/arm-none-linux-gnueabi-gcc -std=gnu99 -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... 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 whether byte ordering is bigendian... no
checking return type of signal handlers... void
checking for long long... yes
checking size of long long... 8
checking size of long... 4
checking for popen... yes
checking for perror... yes
checking for snprintf... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking for ld used by GCC... /home/prabhu/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/arm-none-linux-gnueabi/bin/ld
checking if the linker (/home/prabhu/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/arm-none-linux-gnueabi/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for iconv... yes
checking for iconv declaration...
extern size_t iconv (iconv_t cd, char * inbuf, size_t inbytesleft, char * outbuf, size_t outbytesleft);
checking for sgesv_ in -llapack... no
checking for log in -lm... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for pthread_create in -lpthread... yes
No audio interface for host type i686-pc-none.
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by /home/prabhu/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/arm-none-linux-gnueabi-gcc -std=gnu99... /home/prabhu/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/arm-none-linux-gnueabi/bin/ld
checking if the linker (/home/prabhu/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/arm-none-linux-gnueabi/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... no
checking for i686-dumpbin... no
checking for i686-link... no
checking for dumpbin... no
checking for link... link -dump -symbols
configure: WARNING: using cross tools not prefixed with host triplet
checking the name lister (link -dump -symbols) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /home/prabhu/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/arm-none-linux-gnueabi/bin/ld option to reload object files... -r
checking for i686-objdump... no
checking for objdump... objdump
checking how to recognize dependent libraries... unknown
checking for i686-ar... no
checking for ar... ar
checking for i686-strip... strip
checking for i686-ranlib... no
checking for ranlib... ranlib
checking command to parse link -dump -symbols output from /home/prabhu/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/arm-none-linux-gnueabi-gcc -std=gnu99 object... failed
checking for dlfcn.h... yes
checking for objdir... .libs
checking if /home/prabhu/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/arm-none-linux-gnueabi-gcc -std=gnu99 supports -fno-rtti -fno-exceptions... no
checking for /home/prabhu/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/arm-none-linux-gnueabi-gcc -std=gnu99 option to produce PIC... -fPIC -DPIC
checking if /home/prabhu/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/arm-none-linux-gnueabi-gcc -std=gnu99 PIC flag -fPIC -DPIC works... yes
checking if /home/prabhu/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/arm-none-linux-gnueabi-gcc -std=gnu99 static flag -static works... yes
checking if /home/prabhu/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/arm-none-linux-gnueabi-gcc -std=gnu99 supports -c -o file.o... yes
checking if /home/prabhu/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/arm-none-linux-gnueabi-gcc -std=gnu99 supports -c -o file.o... (cached) yes
checking whether the /home/prabhu/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/arm-none-linux-gnueabi-gcc -std=gnu99 linker (/home/prabhu/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/arm-none-linux-gnueabi/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... no
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... no
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for doxygen... no
checking for python... /usr/bin/python
checking for python-config... bogus
configure: WARNING: Disabling python since development headers were not found
checking for pkg-config... yes
checking for i686-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for SNDFILE... no
checking sndfile.h usability... no
checking sndfile.h presence... no
checking for sndfile.h... no
configure: creating ./config.status
config.status: creating sphinxbase.pc
config.status: creating Makefile
config.status: creating include/Makefile
config.status: creating include/sphinxbase/Makefile
config.status: creating python/Makefile
config.status: creating python/setup.py
config.status: creating src/Makefile
config.status: creating src/libsphinxad/Makefile
config.status: creating src/libsphinxbase/Makefile
config.status: creating src/libsphinxbase/util/Makefile
config.status: creating src/libsphinxbase/feat/Makefile
config.status: creating src/libsphinxbase/fe/Makefile
config.status: creating src/libsphinxbase/lm/Makefile
config.status: creating src/sphinx_fe/Makefile
config.status: creating src/sphinx_cepview/Makefile
config.status: creating src/sphinx_jsgf2fsg/Makefile
config.status: creating src/sphinx_adtools/Makefile
config.status: creating src/sphinx_lmtools/Makefile
config.status: creating doc/Makefile
config.status: creating doc/doxyfile
config.status: creating test/Makefile
config.status: creating test/unit/testfuncs.sh
config.status: creating test/unit/Makefile
config.status: creating test/unit/test_ad/Makefile
config.status: creating test/unit/test_alloc/Makefile
config.status: creating test/unit/test_bitvec/Makefile
config.status: creating test/unit/test_case/Makefile
config.status: creating test/unit/test_string/Makefile
config.status: creating test/unit/test_cmdln/Makefile
config.status: creating test/unit/test_hash/Makefile
config.status: creating test/unit/test_matrix/Makefile
config.status: creating test/unit/test_feat/Makefile
config.status: creating test/unit/test_fe/Makefile
config.status: creating test/unit/test_logmath/Makefile
config.status: creating test/unit/test_ngram/Makefile
config.status: creating test/unit/test_fsg/Makefile
config.status: creating test/unit/test_thread/Makefile
config.status: creating test/unit/test_util/Makefile
config.status: creating test/regression/testfuncs.sh
config.status: creating test/regression/Makefile
config.status: creating include/config.h
config.status: include/config.h is unchanged
config.status: creating include/sphinx_config.h
config.status: include/sphinx_config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi All,
Anybody please guide me how to build pocketsphinx for QNX RTOS armle7.
I just wanted to run one simple application in QNX.
I gone through previous post in help discussion but, could get find & work
I followed below to configure,
./configure --prefix=/home/prabhu/pock_arm/pock --exec-prefix=/home/prabhu/pock_arm/pock --build=qnx --target=arm-le7 --build=x86
/Prabhu
Hi All,
by using codesourcery toolchain the configure is below, Make install was success. But, the binary is not running in target.
./configure --prefix=/home/prabhu/pock_arm/sb --exec-prefix=/home/prabhu/pock_arm/sb --host=i686 --target=arm CC=/home/prabhu/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/arm-none-linux-gnueabi-gcc
[sudo] password for prabhu:
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for i686-strip... no
checking for strip... strip
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-none
checking for style of include used by make... GNU
checking for i686-gcc... /home/prabhu/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/arm-none-linux-gnueabi-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /home/prabhu/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/arm-none-linux-gnueabi-gcc accepts -g... yes
checking for /home/prabhu/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/arm-none-linux-gnueabi-gcc option to accept ISO C89... none needed
checking dependency style of /home/prabhu/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/arm-none-linux-gnueabi-gcc... gcc3
checking for library containing strerror... none required
checking for i686-gcc... (cached) /home/prabhu/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/arm-none-linux-gnueabi-gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether /home/prabhu/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/arm-none-linux-gnueabi-gcc accepts -g... (cached) yes
checking for /home/prabhu/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/arm-none-linux-gnueabi-gcc option to accept ISO C89... (cached) none needed
checking dependency style of /home/prabhu/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/arm-none-linux-gnueabi-gcc... (cached) gcc3
checking for /home/prabhu/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/arm-none-linux-gnueabi-gcc option to accept ISO C99... -std=gnu99
checking for /home/prabhu/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/arm-none-linux-gnueabi-gcc -std=gnu99 option to accept ISO Standard C... (cached) -std=gnu99
checking for bison... bison -y
checking how to run the C preprocessor... /home/prabhu/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/arm-none-linux-gnueabi-gcc -std=gnu99 -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... 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 whether byte ordering is bigendian... no
checking return type of signal handlers... void
checking for long long... yes
checking size of long long... 8
checking size of long... 4
checking for popen... yes
checking for perror... yes
checking for snprintf... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking for ld used by GCC... /home/prabhu/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/arm-none-linux-gnueabi/bin/ld
checking if the linker (/home/prabhu/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/arm-none-linux-gnueabi/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for iconv... yes
checking for iconv declaration...
extern size_t iconv (iconv_t cd, char * inbuf, size_t inbytesleft, char * outbuf, size_t outbytesleft);
checking for sgesv_ in -llapack... no
checking for log in -lm... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for pthread_create in -lpthread... yes
No audio interface for host type i686-pc-none.
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by /home/prabhu/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/arm-none-linux-gnueabi-gcc -std=gnu99... /home/prabhu/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/arm-none-linux-gnueabi/bin/ld
checking if the linker (/home/prabhu/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/arm-none-linux-gnueabi/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... no
checking for i686-dumpbin... no
checking for i686-link... no
checking for dumpbin... no
checking for link... link -dump -symbols
configure: WARNING: using cross tools not prefixed with host triplet
checking the name lister (link -dump -symbols) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /home/prabhu/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/arm-none-linux-gnueabi/bin/ld option to reload object files... -r
checking for i686-objdump... no
checking for objdump... objdump
checking how to recognize dependent libraries... unknown
checking for i686-ar... no
checking for ar... ar
checking for i686-strip... strip
checking for i686-ranlib... no
checking for ranlib... ranlib
checking command to parse link -dump -symbols output from /home/prabhu/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/arm-none-linux-gnueabi-gcc -std=gnu99 object... failed
checking for dlfcn.h... yes
checking for objdir... .libs
checking if /home/prabhu/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/arm-none-linux-gnueabi-gcc -std=gnu99 supports -fno-rtti -fno-exceptions... no
checking for /home/prabhu/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/arm-none-linux-gnueabi-gcc -std=gnu99 option to produce PIC... -fPIC -DPIC
checking if /home/prabhu/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/arm-none-linux-gnueabi-gcc -std=gnu99 PIC flag -fPIC -DPIC works... yes
checking if /home/prabhu/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/arm-none-linux-gnueabi-gcc -std=gnu99 static flag -static works... yes
checking if /home/prabhu/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/arm-none-linux-gnueabi-gcc -std=gnu99 supports -c -o file.o... yes
checking if /home/prabhu/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/arm-none-linux-gnueabi-gcc -std=gnu99 supports -c -o file.o... (cached) yes
checking whether the /home/prabhu/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/arm-none-linux-gnueabi-gcc -std=gnu99 linker (/home/prabhu/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/arm-none-linux-gnueabi/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... no
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... no
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for doxygen... no
checking for python... /usr/bin/python
checking for python-config... bogus
configure: WARNING: Disabling python since development headers were not found
checking for pkg-config... yes
checking for i686-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for SNDFILE... no
checking sndfile.h usability... no
checking sndfile.h presence... no
checking for sndfile.h... no
configure: creating ./config.status
config.status: creating sphinxbase.pc
config.status: creating Makefile
config.status: creating include/Makefile
config.status: creating include/sphinxbase/Makefile
config.status: creating python/Makefile
config.status: creating python/setup.py
config.status: creating src/Makefile
config.status: creating src/libsphinxad/Makefile
config.status: creating src/libsphinxbase/Makefile
config.status: creating src/libsphinxbase/util/Makefile
config.status: creating src/libsphinxbase/feat/Makefile
config.status: creating src/libsphinxbase/fe/Makefile
config.status: creating src/libsphinxbase/lm/Makefile
config.status: creating src/sphinx_fe/Makefile
config.status: creating src/sphinx_cepview/Makefile
config.status: creating src/sphinx_jsgf2fsg/Makefile
config.status: creating src/sphinx_adtools/Makefile
config.status: creating src/sphinx_lmtools/Makefile
config.status: creating doc/Makefile
config.status: creating doc/doxyfile
config.status: creating test/Makefile
config.status: creating test/unit/testfuncs.sh
config.status: creating test/unit/Makefile
config.status: creating test/unit/test_ad/Makefile
config.status: creating test/unit/test_alloc/Makefile
config.status: creating test/unit/test_bitvec/Makefile
config.status: creating test/unit/test_case/Makefile
config.status: creating test/unit/test_string/Makefile
config.status: creating test/unit/test_cmdln/Makefile
config.status: creating test/unit/test_hash/Makefile
config.status: creating test/unit/test_matrix/Makefile
config.status: creating test/unit/test_feat/Makefile
config.status: creating test/unit/test_fe/Makefile
config.status: creating test/unit/test_logmath/Makefile
config.status: creating test/unit/test_ngram/Makefile
config.status: creating test/unit/test_fsg/Makefile
config.status: creating test/unit/test_thread/Makefile
config.status: creating test/unit/test_util/Makefile
config.status: creating test/regression/testfuncs.sh
config.status: creating test/regression/Makefile
config.status: creating include/config.h
config.status: include/config.h is unchanged
config.status: creating include/sphinx_config.h
config.status: include/sphinx_config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
The options you submit to configure are not correct. Read autoconf manual for more details. Proper option should be just:
--build=qnx
It means to build for qnx. --build=x86 means to build for x86 which is wrong.