On 1/2/2011 12:37 AM, Ralf Wildenhues wrote:
> Hi Dan,
>
> * Dan McMahill wrote on Sat, Jan 01, 2011 at 04:53:25AM CET:
>> I am trying to build a program under cygwin but using the mingw tool
>> chain in a fake cross build way. In my configure environment, I have:
>>
>> export lt_cv_to_tool_file_cmd=func_convert_file_cygwin_to_w32
>>
>> as suggested by the libtool manual. I'm using libtool 2.4.
>>
>> Everything goes smoothly until install time when libtool calls ranlib
>> (the mingw one) on an absolute path and of course the cygwin absolute
>> path doesn't make sense to the mingw ranlib. I thought that's what the
>> func_convert... bit was for.
>
> Please copy and paste 'libtool --mode={link,relink,install}' commands
> for the libraries and programs involved. We may provide better help
> then.
attached.
LINK
/bin/sh ../libtool --tag=CC --mode=link mingw32-gcc
-DBACKEND_DIR='"/home/dan/src/gerbv/gerbv_inst/share/gerbv/scheme/"'
-DSCMSUBDIR='"scheme"' -mms-bitfields -mwindows -Wall -mms-bitfields
-Ic:/cygwin/home/dan/gtk_win32/include/gtk-2.0
-Ic:/cygwin/home/dan/gtk_win32/lib/gtk-2.0/include
-Ic:/cygwin/home/dan/gtk_win32/include/atk-1.0
-Ic:/cygwin/home/dan/gtk_win32/include/cairo
-Ic:/cygwin/home/dan/gtk_win32/include/gdk-pixbuf-2.0
-Ic:/cygwin/home/dan/gtk_win32/include/pango-1.0
-Ic:/cygwin/home/dan/gtk_win32/include/glib-2.0
-Ic:/cygwin/home/dan/gtk_win32/lib/glib-2.0/include
-Ic:/cygwin/home/dan/gtk_win32/include
-Ic:/cygwin/home/dan/gtk_win32/include/freetype2
-Ic:/cygwin/home/dan/gtk_win32/include/libpng14 -mms-bitfields
-Ic:/cygwin/home/dan/gtk_win32/include/cairo
-Ic:/cygwin/home/dan/gtk_win32/include/glib-2.0
-Ic:/cygwin/home/dan/gtk_win32/lib/glib-2.0/include
-Ic:/cygwin/home/dan/gtk_win32/include
-Ic:/cygwin/home/dan/gtk_win32/include/freetype2
-Ic:/cygwin/home/dan/gtk_win32/include/libpng14 -version-info 1:5:0
-no-undefined -o libgerbv.la -rpath /home/dan/src/gerbv/gerbv_inst/lib
amacro.lo tooltable.lo draw.lo draw-gdk.lo drill.lo exportimage.lo gerb_file.lo
gerb_image.lo gerber.lo gerbv.lo pick-and-place.lo csv.lo gerb_stats.lo
drill_stats.lo export-rs274x.lo export-drill.lo -lm
-Lc:/cygwin/home/dan/gtk_win32/lib -lgtk-win32-2.0 -lgdk-win32-2.0 -latk-1.0
-lgio-2.0 -lpangowin32-1.0 -lgdi32 -lpangocairo-1.0 -lgdk_pixbuf-2.0
-lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -lintl
-Lc:/cygwin/home/dan/gtk_win32/lib -lcairo
libtool: link: mingw32-gcc -shared .libs/amacro.o .libs/tooltable.o
.libs/draw.o .libs/draw-gdk.o .libs/drill.o .libs/exportimage.o
.libs/gerb_file.o .libs/gerb_image.o .libs/gerber.o .libs/gerbv.o
.libs/pick-and-place.o .libs/csv.o .libs/gerb_stats.o .libs/drill_stats.o
.libs/export-rs274x.o .libs/export-drill.o -Lc:/cygwin/home/dan/gtk_win32/lib
-lgtk-win32-2.0 -lgdk-win32-2.0 -latk-1.0 -lgio-2.0 -lpangowin32-1.0 -lgdi32
-lpangocairo-1.0 -lgdk_pixbuf-2.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0
-lgthread-2.0 -lglib-2.0 c:/mingw/lib/libintl.dll.a -L/mingw/lib
/mingw/lib/libiconv.dll.a -lcairo -mms-bitfields -mwindows -mms-bitfields
-mms-bitfields -o .libs/libgerbv-1.dll -Wl,--enable-auto-image-base -Xlinker
--out-implib -Xlinker .libs/libgerbv.dll.a
Creating library file: .libs/libgerbv.dll.a
libtool: link: ar cru .libs/libgerbv.a amacro.o tooltable.o draw.o draw-gdk.o
drill.o exportimage.o gerb_file.o gerb_image.o gerber.o gerbv.o
pick-and-place.o csv.o gerb_stats.o drill_stats.o export-rs274x.o export-drill.o
libtool: link: ranlib .libs/libgerbv.a
libtool: link: ( cd ".libs" && rm -f "libgerbv.la" && ln -s "../libgerbv.la"
"libgerbv.la" )
[ snip ]
INSTALL
test -z "/home/dan/src/gerbv/gerbv_inst/lib" || /usr/bin/mkdir -p
"/home/dan/src/gerbv/gerbv_inst/lib"
/bin/sh ../libtool --mode=install /usr/bin/install -c libgerbv.la
'/home/dan/src/gerbv/gerbv_inst/lib'
libtool: install: /usr/bin/install -c .libs/libgerbv.dll.a
/home/dan/src/gerbv/gerbv_inst/lib/libgerbv.dll.a
libtool: install: base_file=`basename libgerbv.la`
libtool: install: dlpath=`/bin/sh 2>&1 -c '. .libs/'libgerbv.la'i; echo
libgerbv-1.dll'`
libtool: install: dldir=/home/dan/src/gerbv/gerbv_inst/lib/`dirname
../bin/libgerbv-1.dll`
libtool: install: test -d /home/dan/src/gerbv/gerbv_inst/lib/../bin || mkdir
-p /home/dan/src/gerbv/gerbv_inst/lib/../bin
libtool: install: /usr/bin/install -c .libs/libgerbv-1.dll
/home/dan/src/gerbv/gerbv_inst/lib/../bin/libgerbv-1.dll
libtool: install: chmod a+x
/home/dan/src/gerbv/gerbv_inst/lib/../bin/libgerbv-1.dll
libtool: install: if test -n '' && test -n 'strip --strip-unneeded'; then eval
'strip --strip-unneeded
/home/dan/src/gerbv/gerbv_inst/lib/../bin/libgerbv-1.dll' || exit 0; fi
libtool: install: /usr/bin/install -c .libs/libgerbv.lai
/home/dan/src/gerbv/gerbv_inst/lib/libgerbv.la
libtool: install: /usr/bin/install -c .libs/libgerbv.a
/home/dan/src/gerbv/gerbv_inst/lib/libgerbv.a
libtool: install: chmod 644 /home/dan/src/gerbv/gerbv_inst/lib/libgerbv.a
libtool: install: ranlib /home/dan/src/gerbv/gerbv_inst/lib/libgerbv.a
C:\MinGW\bin\ranlib.exe: '/home/dan/src/gerbv/gerbv_inst/lib/libgerbv.a': No
such file
make[2]: *** [install-libLTLIBRARIES] Error 1
_______________________________________________
http://lists.gnu.org/mailman/listinfo/libtool