|
From: Benno S. <ben...@go...> - 2007-12-05 02:15:50
|
Thank you very much Brian, I installed the "file" utility from http://gnuwin32.sourceforge.net/ and now it builds the shared DLL. but the thing that is not working is the make install it seems like the variable $dldir is not set here's the relevant output ------------------- /bin/sh ../mkinstalldirs /usr/local/lib /bin/sh ../libtool --mode=install /bin/install -c libgig.la/usr/local/lib/libgig.la /bin/install -c .libs/libgig.dll.a /usr/local/lib/libgig.dll.a base_file=`basename ${file}` dlpath=`/bin/sh 2>&1 -c '. .libs/'${base_file}'i;echo $dlname'` dldir=/usr/local/lib/`dirname $dlpath` test -d $dldir || mkdir -p $dldir /bin/install -c .libs/libgig-6.dll $dldir/libgig-6.dll /bin/install -c .libs/libgig.lai /usr/local/lib/libgig.la ---------------------------------------------------------------------- Libraries have been installed in: /usr/local/lib If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `PATH' environment variable during execution - add LIBDIR to the `LD_RUN_PATH' environment variable during linking - use the `-Wl,--rpath -Wl,LIBDIR' linker flag See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- any idea how I can fix this. i'd like the lib compilable out of the box on both linux and mingw. thanks in advance for your help, cheers, Benno 2007/12/5, Brian Dessent <br...@de...>: > > Benno Senoner wrote: > > > basically mingw has only this file in the mingw tree > > /mingw/lib/librpcrt4.a > > That is an import library for the DLL RPCRT4.DLL which is part of the > operating system and is located in %SystemRoot%\System32\. > > > are there some files missing (dll import lib ?) > > By any chance do you have the 'file' utility installed? Libtool uses it > and you get strange errors like this when it's missing. If you don't > you can download it at the SF download page, there is both a MSYS binary > and a mingwPORT package. > > Brian > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: The Future of Linux Business White Paper > from Novell. From the desktop to the data center, Linux is going > mainstream. Let it simplify your IT future. > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > _______________________________________________ > MinGW-users mailing list > Min...@li... > > You may change your MinGW Account Options or unsubscribe at: > https://lists.sourceforge.net/lists/listinfo/mingw-users > |