Postby amareshram » 14 May 2007 07:11
I tried with following configuration:
---------------------------------------------------
./bootstrap &&
PATH=/opt/mv_pro_4.0/montavista/pro/devkit/arm/v5t_le/armv5tl-montavista-linuxeabi/bin:$PATH \
CFLAGS="-D__stdcall= -D_OFF_T_ -I/opt/mv_pro_4.0/montavista/pro/devkit/arm/v5t_le/include" \
CFLAGS="$CFLAGS -I/opt/mv_pro_4.0/montavista/pro/include" \
CFLAGS="$CFLAGS -I/opt/mv_pro_4.0/montavista/common/include" \
LDFLAGS="-L/opt/mv_pro_4.0/montavista/pro/devkit/arm/v5t_le/lib" \
LDFLAGS="$LDFLAGS -L/opt/mv_pro_4.0/montavista/pro/lib" \
LDFLAGS="$LDFLAGS -L/opt/mv_pro_4.0/montavista/common/lib" \
./configure --host=armv5tl-montavista-linuxeabi --target=armv5tl-montavista-linuxeabi \
--build=armv5tl-montavista-linuxeabi --prefix=/usr/local/arm_v5t_le \
--disable-sdl --disable-gtk --disable-dvdnav --disable-dvdread \
--disable-nls --disable-sout --disable-vlm --disable-wxwindows \
--disable-a52 --disable-libmpeg2 --disable-freetype --disable-fribidi \
--disable-mad --disable-plugins --enable-optimize-memory \
--enable-tremor --enable-faad
--------------------------------------------
it produces following error:
--------------------------------------------
checking whether to enable maintainer-specific portions of Makefiles... yes
checking for armv5tl-montavista-linuxeabi-gcc... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
--------------------------------------------
Find below the content of the 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 vlc configure 0.8.6a, which was
generated by GNU Autoconf 2.59. Invocation command line was
$ ./configure --host=armv5tl-montavista-linuxeabi --target=armv5tl-montavista-linuxeabi --build=armv5tl-montavista-linuxeabi --prefix=/usr/local/arm_v5t_le --disable-sdl --disable-gtk --disable-dvdnav --disable-dvdread --disable-nls --disable-sout --disable-vlm --disable-wxwindows --disable-a52 --disable-libmpeg2 --disable-freetype --disable-fribidi --disable-mad --disable-plugins --enable-optimize-memory --enable-tremor --enable-faad
## --------- ##
## Platform. ##
## --------- ##
hostname = localhost.localdomain
uname -m = i686
uname -r = 2.6.9-42.ELsmp
uname -s = Linux
uname -v = #1 SMP Sat Aug 12 09:39:11 CDT 2006
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = i686
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /opt/mv_pro_4.0/montavista/pro/devkit/arm/v5t_le/armv5tl-montavista-linuxeabi/bin
PATH: /usr/kerberos/bin
PATH: /usr/local/bin
PATH: /bin
PATH: /usr/bin
PATH: /usr/X11R6/bin
PATH: /home/amaresh/bin
PATH: /usr/ppc/bin
PATH: /opt/mv_pro_4.0/montavista/pro/devkit/arm/v5t_le/bin
PATH: /opt/mv_pro_4.0/montavista/pro/bin
PATH: /opt/mv_pro_4.0/montavista/common/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1765: checking build system type
configure:1783: result: armv5tl-montavista-linux-gnueabi
configure:1791: checking host system type
configure:1805: result: armv5tl-montavista-linux-gnueabi
configure:1813: checking target system type
configure:1827: result: armv5tl-montavista-linux-gnueabi
configure:1856: checking for a BSD-compatible install
configure:1911: result: /usr/bin/install -c
configure:1922: checking whether build environment is sane
configure:1965: result: yes
configure:1998: checking for gawk
configure:2014: found /bin/gawk
configure:2024: result: gawk
configure:2034: checking whether make sets $(MAKE)
configure:2054: result: yes
configure:2227: checking whether to enable maintainer-specific portions of Makefiles
configure:2236: result: yes
configure:2268: checking for armv5tl-montavista-linuxeabi-gcc
configure:2297: result: no
configure:2306: checking for gcc
configure:2322: found /opt/mv_pro_4.0/montavista/pro/devkit/arm/v5t_le/armv5tl-montavista-linuxeabi/bin/gcc
configure:2332: result: gcc
configure:2576: checking for C compiler version
configure:2579: gcc --version </dev/null >&5
gcc (GCC) 3.4.3 (MontaVista 3.4.3-25.0.30.0501131 2005-07-23)
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:2582: $? = 0
configure:2584: gcc -v </dev/null >&5
Reading specs from /opt/mv_pro_4.0/montavista/pro/devkit/arm/v5t_le/bin/../lib/gcc/armv5tl-montavista-linuxeabi/3.4.3/specs
Configured with: ../configure --host=i686-pc-linux-gnu --target=armv5tl-montavista-linuxeabi --prefix=/opt/montavista/foundation/devkit/arm/v5t_le --exec-prefix=/opt/montavista/foundation/devkit/arm/v5t_le --bindir=/opt/montavista/foundation/devkit/arm/v5t_le/bin --sbindir=/opt/montavista/foundation/devkit/arm/v5t_le/sbin --sysconfdir=/opt/montavista/foundation/devkit/arm/v5t_le/etc --datadir=/opt/montavista/foundation/devkit/arm/v5t_le/share --includedir=/opt/montavista/foundation/devkit/arm/v5t_le/include --libdir=/opt/montavista/foundation/devkit/arm/v5t_le/lib --libexecdir=/opt/montavista/foundation/devkit/arm/v5t_le/libexec --localstatedir=/opt/montavista/foundation/devkit/arm/v5t_le/var --sharedstatedir=/opt/montavista/foundation/devkit/arm/v5t_le/share --mandir=/opt/montavista/foundation/devkit/arm/v5t_le/man --infodir=/opt/montavista/foundation/devkit/arm/v5t_le/info --build=i686-pc-linux-gnu --program-transform-name=s,^,arm_v5t_le-, --enable-cross --with-sysroot=/opt/montavista/foundation/devkit/arm/v5t_le/target --enable-shared --enable-languages=c,c++ --enable-__cxa_atexit --enable-threads=posix --disable-multilib --with-gxx-include-dir=${prefix}/lib/gcc/armv5tl-montavista-linuxeabi/3.4.3/../../../../target/usr/include/c++/3.4.3 --with-numa-policy=yes --with-float=soft --with-cpu=arm10tdmi --with-interwork --with-arch=armv5t --with-tune=arm10tdmi --libexecdir=/opt/montavista/foundation/devkit/arm/v5t_le/lib
Thread model: posix
gcc version 3.4.3 (MontaVista 3.4.3-25.0.30.0501131 2005-07-23)
configure:2587: $? = 0
configure:2589: gcc -V </dev/null >&5
gcc: `-V' option must have argument
configure:2592: $? = 1
configure:2615: checking for C compiler default output file name
configure:2618: gcc -I/opt/mv_pro_4.0/montavista/common/include -L/opt/mv_pro_4.0/montavista/common/lib conftest.c >&5
configure:2621: $? = 0
configure:2667: result: a.out
configure:2672: checking whether the C compiler works
configure:2678: ./a.out
./configure: line 2679: ./a.out: cannot execute binary file
configure:2681: $? = 126
configure:2690: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=armv5tl-montavista-linux-gnueabi
ac_cv_build_alias=armv5tl-montavista-linuxeabi
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value=' -I/opt/mv_pro_4.0/montavista/common/include'
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_F77_set=
ac_cv_env_F77_value=
ac_cv_env_FFLAGS_set=
ac_cv_env_FFLAGS_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=' -L/opt/mv_pro_4.0/montavista/common/lib'
ac_cv_env_MIDL_set=
ac_cv_env_MIDL_value=
ac_cv_env_WIDL_set=
ac_cv_env_WIDL_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=armv5tl-montavista-linuxeabi
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=armv5tl-montavista-linuxeabi
ac_cv_env_target_alias_set=set
ac_cv_env_target_alias_value=armv5tl-montavista-linuxeabi
ac_cv_exeext=
ac_cv_host=armv5tl-montavista-linux-gnueabi
ac_cv_host_alias=armv5tl-montavista-linuxeabi
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_make_make_set=yes
ac_cv_target=armv5tl-montavista-linux-gnueabi
ac_cv_target_alias=armv5tl-montavista-linuxeabi
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACLOCAL='${SHELL} /home/amaresh/vlc-0.8.6a/autotools/missing --run aclocal-1.7'
ALIASES=''
ALLOCA=''
ALL_LINGUAS=''
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /home/amaresh/vlc-0.8.6a/autotools/missing --run tar'
AM_CPPFLAGS=''
AR=''
ARCH=''
ARTS_CONFIG=''
AS=''
ASM=''
AUTOCONF='${SHELL} /home/amaresh/vlc-0.8.6a/autotools/missing --run autoconf'
AUTOHEADER='${SHELL} /home/amaresh/vlc-0.8.6a/autotools/missing --run autoheader'
AUTOMAKE='${SHELL} /home/amaresh/vlc-0.8.6a/autotools/missing --run automake-1.7'
AWK='gawk'
BONJOUR_CFLAGS=''
BONJOUR_LIBS=''
BUILD_ACTIVEX_FALSE=''
BUILD_ACTIVEX_TRUE=''
BUILD_DIRENT_FALSE=''
BUILD_DIRENT_TRUE=''
BUILD_GETOPT_FALSE=''
BUILD_GETOPT_TRUE=''
BUILD_INCLUDED_LIBINTL=''
BUILD_JAVA_FALSE=''
BUILD_JAVA_TRUE=''
BUILD_MOZILLA_FALSE=''
BUILD_MOZILLA_TRUE=''
BUILD_PYTHON_FALSE=''
BUILD_PYTHON_TRUE=''
BUILD_SHARED_FALSE=''
BUILD_SHARED_TRUE=''
CACA_CONFIG=''
CATOBJEXT=''
CC='gcc'
CCAS=''
CCASFLAGS=''
CCDEPMODE=''
CFLAGS=' -I/opt/mv_pro_4.0/montavista/common/include'
CORBA_CFLAGS=''
CORBA_LIBS=''
CPP=''
CPPFLAGS=''
CXX=''
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS=''
CYGPATH=''
CYGPATH_W='echo'
DAAP_CFLAGS=''
DAAP_LIBS=''
DATADIRNAME=''
DEFS=''
DEPDIR=''
DIRAC_CFLAGS=''
DIRAC_LIBS=''
DLLTOOL=''
DVDNAV_CONFIG=''
ECHO='echo'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
ENABLE_CORBA_FALSE=''
ENABLE_CORBA_TRUE=''
ESD_CONFIG=''
EXEEXT=''
F77=''
FFLAGS=''
FFMPEG_CFLAGS=''
FFMPEG_CONFIG=''
FFMPEG_LIBS=''
FILE_LIBVLC_DLL=''
FREETYPE_CONFIG=''
FRIBIDI_CONFIG=''
GENCAT=''
GLIBC21=''
GMSGFMT=''
GNOMEVFS_CFLAGS=''
GNOMEVFS_LIBS=''
GNUTLS_CFLAGS=''
GNUTLS_LIBS=''
GTK2_CFLAGS=''
GTK2_LIBS=''
HAL_CFLAGS=''
HAL_LIBS=''
HAS_MIDL_COMPILER_FALSE=''
HAS_MIDL_COMPILER_TRUE=''
HAS_WIDL_COMPILER_FALSE=''
HAS_WIDL_COMPILER_TRUE=''
HAVE_BEOS_FALSE=''
HAVE_BEOS_TRUE=''
HAVE_BUILTINS_FALSE=''
HAVE_BUILTINS_TRUE=''
HAVE_DARWIN_FALSE=''
HAVE_DARWIN_TRUE=''
HAVE_PLUGINS_FALSE=''
HAVE_PLUGINS_TRUE=''
HAVE_WIN32_FALSE=''
HAVE_WIN32_TRUE=''
HAVE_WINCE_FALSE=''
HAVE_WINCE_TRUE=''
INCLUDED_LIBINTL=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
INSTOBJEXT=''
INTLBISON=''
INTLLIBS=''
INTLOBJS=''
INTL_LIBTOOL_SUFFIX_PREFIX=''
JAVA=''
JAVAC=''
LD=''
LDFLAGS=' -L/opt/mv_pro_4.0/montavista/common/lib'
LIBCDDB_CFLAGS=''
LIBCDDB_LIBS=''
LIBCDIO_CFLAGS=''
LIBCDIO_LIBS=''
LIBCDIO_PARANOIA_CFLAGS=''
LIBCDIO_PARANOIA_LIBS=''
LIBEXT=''
LIBICONV=''
LIBINTL=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LN_S=''
LOADER_FALSE=''
LOADER_TRUE=''
LTLIBICONV=''
LTLIBINTL=''
LTLIBOBJS=''
MACOSX_DEPLOYMENT_TARGET=''
MAINT=''
MAINTAINER_MODE_FALSE='#'
MAINTAINER_MODE_TRUE=''
MAKEINFO='${SHELL} /home/amaresh/vlc-0.8.6a/autotools/missing --run makeinfo'
MIDL=''
MKINSTALLDIRS=''
MOC=''
MOZILLA_CONFIG=''
MOZILLA_SDK_PATH=''
MSGFMT=''
MSGMERGE=''
NOTIFY_CFLAGS=''
NOTIFY_LIBS=''
OBJC=''
OBJCDEPMODE=''
OBJCFLAGS=''
OBJDUMP=''
OBJEXT=''
PACKAGE='vlc'
PACKAGE_BUGREPORT=''
PACKAGE_NAME='vlc'
PACKAGE_STRING='vlc 0.8.6a'
PACKAGE_TARNAME='vlc'
PACKAGE_VERSION='0.8.6a'
PATH_SEPARATOR=':'
PKG_CONFIG=''
POSTPROC_CFLAGS=''
POSTPROC_LIBS=''
POSUB=''
RANLIB=''
SDL11_CONFIG=''
SDL12_CONFIG=''
SDL_CONFIG=''
SEAMONKEY_CONFIG=''
SET_MAKE=''
SHELL='/bin/sh'
SHOUT_CFLAGS=''
SHOUT_LIBS=''
STRIP=''
SVG_CFLAGS=''
SVG_LIBS=''
SYMPREF=''
SYS=''
USE_INCLUDED_LIBINTL=''
USE_LIBTOOL_FALSE=''
USE_LIBTOOL_TRUE=''
USE_NLS=''
VCDINFO_CFLAGS=''
VCDINFO_LIBS=''
VERSION='0.8.6a'
VERSION_MAJOR='0'
VERSION_MINOR='8'
VERSION_REVISION='6'
VLC_CONFIG=''
VLC_ENTRY=''
WIDL=''
WINDRES=''
WINE_SDK_PATH=''
WX_CONFIG=''
XGETTEXT=''
XML2_CONFIG=''
XPIDL=''
XPIDL_INCL=''
XULRUNNER_CONFIG=''
X_CFLAGS=''
X_EXTRA_LIBS=''
X_LIBS=''
X_PRE_LIBS=''
ac_ct_AR=''
ac_ct_AS=''
ac_ct_CC='gcc'
ac_ct_CXX=''
ac_ct_CYGPATH=''
ac_ct_DLLTOOL=''
ac_ct_F77=''
ac_ct_LD=''
ac_ct_OBJDUMP=''
ac_ct_RANLIB=''
ac_ct_STRIP=''
ac_ct_WINDRES=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__fastdepOBJC_FALSE=''
am__fastdepOBJC_TRUE=''
am__include=''
am__leading_dot='.'
am__quote=''
bindir='${exec_prefix}/bin'
build='armv5tl-montavista-linux-gnueabi'
build_alias='armv5tl-montavista-linuxeabi'
build_cpu='armv5tl'
build_os='linux-gnueabi'
build_vendor='montavista'
datadir='${prefix}/share'
exec_prefix='NONE'
host='armv5tl-montavista-linux-gnueabi'
host_alias='armv5tl-montavista-linuxeabi'
host_cpu='armv5tl'
host_os='linux-gnueabi'
host_vendor='montavista'
includedir='${prefix}/include'
infodir='${prefix}/info'
install_sh='/home/amaresh/vlc-0.8.6a/autotools/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
oldincludedir='/usr/include'
pic=''
prefix='/usr/local/arm_v5t_le'
program_transform_name='s,^,armv5tl-montavista-linuxeabi-,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target='armv5tl-montavista-linux-gnueabi'
target_alias='armv5tl-montavista-linuxeabi'
target_cpu='armv5tl'
target_os='linux-gnueabi'
target_vendor='montavista'
uudecode=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
#define PACKAGE "vlc"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME "vlc"
#define PACKAGE_STRING "vlc 0.8.6a"
#define PACKAGE_TARNAME "vlc"
#define PACKAGE_VERSION "0.8.6a"
#define VERSION "0.8.6a"
configure: exit 1
----------------------------------------------
can someone help me to resolve this problem?