[prev in list] [next in list] [prev in thread] [next in thread] 

List:       libusb-devel
Subject:    Re: [Libusb-devel] Compiling libusb-pbatard without cygwin
From:       Xiaofan Chen <xiaofanc () gmail ! com>
Date:       2010-05-22 3:22:38
Message-ID: AANLkTimIo7TTg-zP405_XoPNubugtwh8be6zc7ALo4BA () mail ! gmail ! com
[Download RAW message or body]

On Sat, May 22, 2010 at 4:53 AM, Joseph <jmarshall@gcdataconcepts.com> wrote:

> I have been folllowing the excellent link you provided but I am still
> having problems getting ./autogen.sh to work with minGW/msys.  I am
> getting the following error.
>
> $ autogen.sh
> libtoolize: putting auxiliary files in '.' .
> libtoolize: copying file './ltmain.sh'
> libtoolize: putting macros in AC_CONFIG_MACRO_DIR, 'm4' .
> libtoolize: copying file 'm4/libtool.m4'
> libtoolize: copying file 'm4/ltoptions.m4'
> libtoolize: copying file 'm4/ltsugar.m4'
> libtoolize: copying file 'm4/ltversion.m4'
> libtoolize: copying file 'm4/lt~obsolete.m4'
> /bin/m4: unrecognized option '--gnu'
> try '/bin/m4 --help' for more information.
> autom4te-2.64: /bin/m4 failed with exit status: 1
> aclocal: autom4te failed with exit status: 1
>
> Does anyone have any ideas what I might be doing wrong?
>

No issue here with MinGW/MSys under Vista 32bit.

FYI: I have installed the following. I agree MinGW/MSys is not that
straightforward to set up to be able to build libusb-1.0 Windows.
Some of my installation may not be necessary.

mcuee@ACERPC /c/MinGW/DownloadMinGW
$ ls
MinGW-5.1.6.exe
autoconf-7-1-mingw32-bin.tar.lzma
autoconf2.5-2.64-1-mingw32-bin.tar.lzma
automake-4-1-mingw32-bin.tar.lzma
automake1.11-1.11-1-mingw32-bin.tar.lzma
binutils-2.20-1-mingw32-bin.tar.gz
bzip2-1.0.5-2-mingw32-bin.tar.gz
cygutils-dos2unix-1.3.4-1-mingw32-bin.tar.lzma
dbus-mingw-1.2.4-1-bin.tar.bz2
expat-2.0.1-1-mingw32-bin.tar.gz
gcc-core-3.4.5-20060117-3.tar.gz
gcc-g++-3.4.5-20060117-3.tar.gz
gcc-g77-3.4.5-20060117-3.tar.gz
gcc-objc-3.4.5-20060117-3.tar.gz
gendef-1.0.1346-1-mingw32-bin.tar.lzma
gettext-0.17-1-mingw32-bin.tar.lzma
libasprintf-0.17-1-mingw32-dll-0.tar.lzma
libbz2-1.0.5-2-mingw32-dll-2.tar.gz
libcharset-1.13.1-1-mingw32-dll-1.tar.lzma
libexpat-2.0.1-1-mingw32-dll-1.tar.gz
libgettextpo-0.17-1-mingw32-dll-0.tar.lzma
libiconv-1.13.1-1-mingw32-bin.tar.lzma
libiconv-1.13.1-1-mingw32-dll-2.tar.lzma
libintl-0.17-1-mingw32-dll-8.tar.lzma
libltdl-2.2.7a-1-mingw32-dll-7.tar.lzma
liblzma-4.999.9beta_20091209-3-mingw32-dll-1.tar.bz2
libpopt-1.15-1-mingw32-dll-0.tar.lzma
libpthread-2.8.0-3-mingw32-dll-2.tar.lzma
libtool-2.2.7a-1-mingw32-bin.tar.lzma
make-3.81-20090914-mingw32-bin.tar.gz
mingw-catgets-1.0-bin.tar.gz
mingw-utils-0.4-1-mingw32-bin.tar.lzma
mingwrt-3.17-mingw32-dev.tar.gz
mingwrt-3.17-mingw32-dll.tar.gz
pexports-0.44-1-mingw32-bin.tar.lzma
pthreads-w32-2.8.0-3-mingw32-dev.tar.lzma
w32api-3.14-mingw32-dev.tar.gz
xz-4.999.9beta_20091209-3-mingw32-bin.tar.bz2

$ ls
autogen-5.9.2-2-msys-1.0.11-bin.tar.lzma
bash-3.1.17-2-msys-1.0.11-bin.tar.lzma
bison-2.4.1-1-msys-1.0.11-bin.tar.lzma
bsdcpio-2.7.1-1-msys-1.0.11-bin.tar.lzma
bsdtar-2.7.1-1-msys-1.0.11-bin.tar.lzma
coreutils-5.97-2-msys-1.0.11-bin.tar.lzma
crypt-1.1_1-2-msys-1.0.11-bin.tar.lzma
cvs-1.12.13-1-msys-1.0.11-bin.tar.lzma
cygutils-1.3.4-3-msys-1.0.11-bin.tar.lzma
diffutils-2.8.7.20071206cvs-2-msys-1.0.11-bin.tar.lzma
file-5.03-1-msys-1.0.11-bin.tar.lzma
flex-2.5.35-1-msys-1.0.11-bin.tar.lzma
gawk-3.1.7-1-msys-1.0.11-bin.tar.lzma
gdbm-1.8.3-2-msys-1.0.11-bin.tar.lzma
grep-2.5.4-1-msys-1.0.11-bin.tar.lzma
gzip-1.3.12-1-msys-1.0.11-bin.tar.lzma
less-436-1-msys-1.0.11-bin.tar.lzma
libarchive-2.7.1-1-msys-1.0.11-dll-2.tar.lzma
libcrypt-1.1_1-2-msys-1.0.11-dll-0.tar.lzma
libgdbm-1.8.3-2-msys-1.0.11-dll-3.tar.lzma
libguileopts-5.9.2-2-msys-1.0.11-dll-0.tar.lzma
libiconv-1.13.1-1-msys-1.0.11-bin.tar.lzma
libltdl-2.2.7a-1-msys-1.0.11-dll-7.tar.lzma
libmagic-5.03-1-msys-1.0.11-dll-1.tar.lzma
libopts-5.9.2-2-msys-1.0.11-dll-25.tar.lzma
libregex-0.12-1-msys-1.0.11-dll-0.tar.lzma
libregex-1.20090805-1-msys-1.0.11-dll-1.tar.lzma
libtool-2.2.7a-1-msys-1.0.11-bin.tar.lzma
lndir-1.0.1-1-msys-1.0.11-bin.tar.gz
m4-1.4.13-1-msys-1.0.11-bin.tar.lzma
make-3.81-2-msys-1.0.11-bin.tar.lzma
man-1.6f-1-msys-1.0.11-bin.tar.lzma
minires-1.02_1-1-msys-1.0.11-bin.tar.lzma
mktemp-1.6-1-msys-1.0.11-bin.tar.lzma
msysCORE-1.0.12-1-msys-1.0.12-bin.tar.lzma
patch-2.5.9-1-msys-1.0.11-bin.tar.lzma
perl-5.6.1_2-1-msys-1.0.11-bin.tar.lzma
rxvt-2.7.10.20050409-1-msys-1.0.11-bin.tar.lzma
sed-4.2.1-1-msys-1.0.11-bin.tar.lzma
tar-1.22-1-msys-1.0.11-bin.tar.lzma
texinfo-4.13a-1-msys-1.0.11-bin.tar.lzma
vim-7.2-1-msys-1.0.11-bin.tar.lzma
zlib-1.2.3-1-msys-1.0.11-dll.tar.gz

mcuee@ACERPC /c/cygwin/home/mcuee/mcu/libusb1win32/git/mingw/libusb-pbatard
$ ./autogen.sh
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... .exe
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking build system type... i686-pc-mingw32
checking host system type... i686-pc-mingw32
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... c:/MinGW/mingw32/bin/ld.exe
checking if the linker (c:/MinGW/mingw32/bin/ld.exe) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /mingw/bin/nm
checking the name lister (/mingw/bin/nm) interface... BSD nm
checking whether ln -s works... no, using cp -p
checking the maximum length of command line arguments... 8192
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert i686-pc-mingw32 paths to i686-pc-mingw32 format... func_
msys_to_mingw_path_convert
checking for c:/MinGW/mingw32/bin/ld.exe option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... file_magic ^x86 archive import|
^x86 DLL
checking for dlltool... dlltool
checking how to associate runtime and link libraries... func_cygming_dll_for_imp
lib
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /mingw/bin/nm output from gcc object... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
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 dlfcn.h... no
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -DDLL_EXPORT -DPIC
checking if gcc PIC flag -DDLL_EXPORT -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (c:/MinGW/mingw32/bin/ld.exe) supports shared li
braries... yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for inline... inline
checking whether gcc and cc understand -c and -o together... yes
checking operating system... Windows
checking for windres... windres
checking sys/timerfd.h usability... no
checking sys/timerfd.h presence... no
checking for sys/timerfd.h... no
checking whether TFD_NONBLOCK is declared... no
checking whether to use timerfd for timing... no (header not available)
checking for struct timespec... no
checking whether compiler supports the -pthread option... no
configure: creating ./config.status
config.status: creating libusb-1.0.pc
config.status: creating Makefile
config.status: creating libusb/Makefile
config.status: creating libusb/libusb-1.0.rc
config.status: creating examples/Makefile
config.status: creating doc/Makefile
config.status: creating doc/doxygen.cfg
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands

mcuee@ACERPC /c/cygwin/home/mcuee/mcu/libusb1win32/git/mingw/libusb-pbatard
$ make
make  all-recursive
make[1]: Entering directory `/c/cygwin/home/mcuee/mcu/libusb1win32/git/mingw/lib
usb-pbatard'
Making all in libusb
make[2]: Entering directory `/c/cygwin/home/mcuee/mcu/libusb1win32/git/mingw/lib
usb-pbatard/libusb'
  CC     libusb_1_0_la-core.lo
  CC     libusb_1_0_la-descriptor.lo
  CC     libusb_1_0_la-io.lo
  CC     libusb_1_0_la-sync.lo
  CC     libusb_1_0_la-threads_windows.lo
  CC     libusb_1_0_la-poll_windows.lo
  CC     libusb_1_0_la-windows_usb.lo
/bin/sh ../libtool   --mode=compile windres  -i libusb-1.0.rc -o libusb-1.0.lo
libtool: compile:  windres -i libusb-1.0.rc  -DDLL_EXPORT -DPIC -o .libs/libusb-
1.0.o
libtool: compile:  windres -i libusb-1.0.rc -o libusb-1.0.o >/dev/null 2>&1
  CCLD   libusb-1.0.la
Creating library file: .libs/libusb-1.0.dll.a
make[2]: Leaving directory `/c/cygwin/home/mcuee/mcu/libusb1win32/git/mingw/libu
sb-pbatard/libusb'
Making all in doc
make[2]: Entering directory `/c/cygwin/home/mcuee/mcu/libusb1win32/git/mingw/lib
usb-pbatard/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/c/cygwin/home/mcuee/mcu/libusb1win32/git/mingw/libu
sb-pbatard/doc'
Making all in examples
make[2]: Entering directory `/c/cygwin/home/mcuee/mcu/libusb1win32/git/mingw/lib
usb-pbatard/examples'
  CC     xusb.o
  CCLD   xusb.exe
  CC     lsusb.o
  CCLD   lsusb.exe
  CC     dpfp.o
  CCLD   dpfp.exe
make[2]: Leaving directory `/c/cygwin/home/mcuee/mcu/libusb1win32/git/mingw/libu
sb-pbatard/examples'
make[2]: Entering directory `/c/cygwin/home/mcuee/mcu/libusb1win32/git/mingw/lib
usb-pbatard'
make[2]: Leaving directory `/c/cygwin/home/mcuee/mcu/libusb1win32/git/mingw/libu
sb-pbatard'
make[1]: Leaving directory `/c/cygwin/home/mcuee/mcu/libusb1win32/git/mingw/libu
sb-pbatard'

-- 
Xiaofan http://mcuee.blogspot.com

------------------------------------------------------------------------------

_______________________________________________
Libusb-devel mailing list
Libusb-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusb-devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic