cross compiling glib-2.0



 
       I meet some problems in cross-compiling glib.
I want to compile glib2.0 in cygwin using the cross compile devkit provided by hardhat linux target to MIPS.Following is what i have done:
first i export some variable:
export CC="/opt/hardhat/devkit/mips/sony_fp_be/bin/mips_sony_fp_be-gcc.exe"
export LDFLAGS="-L/opt/hardhat/devkit/mips/sony_fp_be/lib:/opt/hardhat/devkit/mips/sony_fp_be/target/lib/:/opt/hardhat/devkit/mips/sony_fp_be/target/usr/lib/ -lpthread"
export CPPFLAGS="-I/opt/hardhat/devkit/mips/sony_fp_be/include/:/opt/hardhat/devkit/mips/sony_fp_be/target/usr/include/:/opt/hardhat/devkit/mips/sony_fp_be/target/usr/include/g++-3/:/opt/hardhat/devkit/mips/sony_fp_be/target/usr/include/sys/:/opt/hardhat/devkit/mips/sony_fp_be/target/usr/include/asm-mips/:/opt/hardhat/devkit/mips/sony_fp_be/lib/gcc-lib/mips-hardhat-linux/2.95.3/include/:/opt/hardhat/devkit/mips/sony_fp_be/target/usr/include/bits/"
export CXX=/opt/hardhat/devkit/mips/sony_fp_be/bin/mips_sony_fp_be-g++.exe
export LD=/opt/hardhat/devkit/mips/sony_fp_be/bin/mips_sony_fp_be-ld.exe
export AS=/opt/hardhat/devkit/mips/sony_fp_be/bin/mips_sony_fp_be-as.exe
export AR=/opt/hardhat/devkit/mips/sony_fp_be/bin/mips_sony_fp_be-ar.exe
export LD_LIBRARY_PATH="/opt/hardhat/devkit/mips/sony_fp_be/lib:/opt/hardhat/devkit/mips/sony_fp_be/target/lib/:/opt/hardhat/devkit/mips/sony_fp_be/target/usr/lib/"
export PATH=/opt/hardhat/devkit/mips/sony_fp_be/bin:$PATH
 
then I change directory to glib,
type:
./configure --host=i686-pc-cygwin --target=mips_sony_fp_be --prefix=/tmp/glib/
I get the following ouput:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yeconfigure: error: cannot run test program while cross compiling
oconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... missing
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... i686-pc-cygwin
checking host system type... i686-pc-cygwin
checking for the BeOS... no
checking for Win32... no
checking whether to enable garbage collector friendliness... no
checking whether to disable memory pools... no
checking for i686-pc-cygwin-gcc... /opt/hardhat/devkit/mips/sony_fp_be/bin/mips_sony_fp_be-gcc.exe
checking for C compiler default output... 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 /opt/hardhat/devkit/mips/sony_fp_be/bin/mips_sony_fp_be-gcc.exe accepts -g... yes
checking for c++... /opt/hardhat/devkit/mips/sony_fp_be/bin/mips_sony_fp_be-g++.exe
checking for i686-pc-cygwin-g++... (cached) /opt/hardhat/devkit/mips/sony_fp_be/bin/mips_sony_fp_be-g++.exe
checking whether we are using the GNU C++ compiler... yes
checking whether /opt/hardhat/devkit/mips/sony_fp_be/bin/mips_sony_fp_be-g++.exe accepts -g... yes
checking for /opt/hardhat/devkit/mips/sony_fp_be/bin/mips_sony_fp_be-gcc.exe option to accept ANSI C... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for _LARGE_FILES value needed for large files... no
checking for pkg-config... /opt/hardhat/devkit/mips/sony_fp_be/bin/pkg-config
checking for gawk... gawk
checking for perl5... no
checking for perl... perl
checking for indent... no
checking for perl... /usr/bin/perl
checking for iconv_open... yes
checking for i686-pc-cygwin-ranlib... no
checking for ranlib... ranlib
checking how to run the C preprocessor... /opt/hardhat/devkit/mips/sony_fp_be/bin/mips_sony_fp_be-gcc.exe -E
checking for ANSI C header files... yes
checking for /opt/hardhat/devkit/mips/sony_fp_be/bin/mips_sony_fp_be-gcc.exe option to accept ANSI C... none needed
checking for an ANSI C-conforming const... yes
checking for inline... inline
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 for off_t... yes
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... no
checking argz.h usability... yes
checking argz.h presence... yes
checking for argz.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking nl_types.h usability... yes
checking nl_types.h presence... yes
checking for nl_types.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for getcwd... yes
checking for munmap... yes
checking for putenv... yes
checking for setenv... yes
checking for setlocale... yes
checking for strchr... yes
checking for strcasecmp... yes
checking for strdup... yes
checking for __argz_count... yes
checking for __argz_stringify... yes
checking for __argz_next... yes
checking for LC_MESSAGES... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for dgettext in libc... yes
checking for msgfmt... /usr/bin/msgfmt
checking for dcgettext... yes
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for catalogs to be installed...  ar az ca cs de el es eu fr gl ja ko ms nl nn no pl pt ro ru sk sl sv ta tr uk zh_CN zh_TW
checking for bind_textdomain_codeset... yes
checking for ld used by GCC... /opt/hardhat/devkit/mips/sony_fp_be/bin/mips_sony_fp_be-ld.exe
checking if the linker (/opt/hardhat/devkit/mips/sony_fp_be/bin/mips_sony_fp_be-ld.exe) is GNU ld... yes
checking for /opt/hardhat/devkit/mips/sony_fp_be/bin/mips_sony_fp_be-ld.exe option to reload object files... -r
checking for BSD-compatible nm... nm
checking whether ln -s works... yes
checking how to recognise dependant libraries... file_magic file format pei*-i386(.*architecture: i386)?
checking command to parse nm output... ok
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for i686-pc-cygwin-ranlib... ranlib
checking for i686-pc-cygwin-strip... no
checking for strip... strip
checking for objdir... .libs
checking for /opt/hardhat/devkit/mips/sony_fp_be/bin/mips_sony_fp_be-gcc.exe option to produce PIC... -DDLL_EXPORT
checking if /opt/hardhat/devkit/mips/sony_fp_be/bin/mips_sony_fp_be-gcc.exe PIC flag -DDLL_EXPORT works... yes
checking if /opt/hardhat/devkit/mips/sony_fp_be/bin/mips_sony_fp_be-gcc.exe static flag -static works... yes
checking if /opt/hardhat/devkit/mips/sony_fp_be/bin/mips_sony_fp_be-gcc.exe supports -c -o file.o... yes
checking if /opt/hardhat/devkit/mips/sony_fp_be/bin/mips_sony_fp_be-gcc.exe supports -c -o file.lo... yes
checking if /opt/hardhat/devkit/mips/sony_fp_be/bin/mips_sony_fp_be-gcc.exe supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/opt/hardhat/devkit/mips/sony_fp_be/bin/mips_sony_fp_be-ld.exe) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... Win32 ld.exe
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
creating libtool
checking for extra flags to get ANSI library prototypes... configure: error: cannot run test program while cross compiling
I notice that in the configure script,the configure process seems will always exit if in cross-compiling mode.
I am so confused! who will help me?
thanks!
Best Regards.
Frank Ma


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]