[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
cross-compiling problems
From: |
Schleicher Ralph (LLI) |
Subject: |
cross-compiling problems |
Date: |
Thu, 16 May 2002 19:12:01 +0200 |
ltmain.sh (GNU libtool) 1.4.2 (1.922.2.53 2001/09/11 03:18:52)
automake (GNU automake) 1.6.1
autoconf (GNU Autoconf) 2.53
Hi,
I encountered a few problems with Libtool while cross-compiling from
hppa2.0-hp-hpux10.20 to i386-pc-mingw32msvc.
* Libtool does not recognize AC_LIBTOOL_WIN32_DLL. After all, I was
able to cross-compile Windows DLLs with the following workaround in
configure.ac:
dnl Process this file with autoconf to produce a configure script.
AC_INIT([hello], [1.0])
AM_INIT_AUTOMAKE([foreign no-define no-dependencies])
AC_CONFIG_SRCDIR([hello.c])
AC_CONFIG_FILES([Makefile])
AC_PROG_CC
AC_PROG_LN_S
AC_PROG_INSTALL
AC_PROG_MAKE_SET
AC_LIBTOOL_WIN32_DLL
# Work around an Autoconf/Libtool bug.
ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],,
define([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL]))
AM_PROG_LIBTOOL
AC_OUTPUT
* Libtool compiles impgen for the host machines, which can't be run
on the build machine. Here is an example (`\\' are line continuation
marks):
/bin/sh ../../libtool --mode=link i386-pc-mingw32msvc-gcc -O2 \\
-L/home/raid/cea_adm/i386-pc-mingw32msvc/lib -o libdf.la -rpath \\
/home/raid/cea_adm/i386-pc-mingw32msvc/lib -no-undefined -version-info \\
4:3:0 -ljpeg -lz -lm hfile.lo herr.lo hblocks.lo hbuffer.lo hcompri.lo \\
hextelt.lo hkit.lo hdfalloc.lo hcomp.lo hbitio.lo tbbt.lo crle.lo \\
cnbit.lo mstdio.lo cnone.lo cskphuff.lo cdeflate.lo bitvect.lo atom.lo \\
hfiledd.lo dynarray.lo linklist.lo glist.lo hchunks.lo mcache.lo vg.lo \\
vrw.lo vio.lo vparse.lo vconv.lo vsfld.lo vgp.lo vhi.lo vattr.lo \\
dfgroup.lo dfconv.lo dfufp2i.lo dfutil.lo dfstubs.lo dfknat.lo \\
dfkswap.lo dfkcray.lo dfkvms.lo dfkconv.lo dfkfuji.lo dfan.lo dfsd.lo \\
dfr8.lo dfcomp.lo dfrle.lo dfimcomp.lo dfjpeg.lo dfunjpeg.lo dfp.lo \\
dfgr.lo df24.lo mfan.lo mfgr.lo
extracting exported symbol list from `libjpeg-62.dll'
test -f .libs/impgen.c || \
sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c \\
ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < ../../libtool > \\
.libs/impgen.c
test -f .libs/impgen.exe || (cd .libs && \\
if test "x" != "x" ; then -o impgen impgen.c ; \\
else i386-pc-mingw32msvc-gcc -o impgen impgen.c ; fi)
.libs/impgen \\
/home/raid/cea_adm/i386-pc-mingw32msvc/lib/libjpeg-62.dll > \\
.libs/libjpeg-62.dll-def
../../libtool: .libs/impgen: Execute permission denied.
make[4]: *** [libdf.la] Error 126
Looks as if the line
if test "x" != "x" ; then -o impgen impgen.c ; \\
else i386-pc-mingw32msvc-gcc -o impgen impgen.c ; fi)
causes the error.
Don't hesitate to contact me if you need more information.
--
Ralph Schleicher
System Engineering
Environmental Control Systems
Liebherr-Aerospace Lindenberg GmbH
P.O. Box 1363 * 88153 Lindenberg * Germany
Phone +49-8381-46-4057 * Fax +49-8381-46-4623
- cross-compiling problems,
Schleicher Ralph (LLI) <=