On Sun, Mar 10, 2013 at 1:23 PM, Xiaofan Chen <[email protected]> wrote:
> I have issues builing libusbx under Ubuntu with or
> without the "--disable-shared option", maybe the MinGW
> cross-compiler is too old. I will try out MinGW-w64 cross
> compiler later.
>
> ../configure --enable-maintainer-mode --build=i586-mingw32msvc
> --disable-shared --enable-examples-build --enable-tests-build
> ...
Just want to point out that there is a mistake here. --build
should be --host.
Still it works fine under Ubuntu 12.04 LTS when I switched
from MinGW.org to MinGW-w64 cross compiler (32bit
and 64bit)
../configure --enable-maintainer-mode --host=i686-w64-mingw32 \
--disable-shared --enable-examples-build --enable-tests-build
On the other hand, I am not so sure what --disable-shared really
works here.
Under Darwin and Linux, libusb-1.0.so is not built when --disable-shared
is used. So --disable-shared seems to work fine there. Maybe this is
something related to libtool.
mymacmini:.libs xiaofanc$ ls
libusb-1.0.a libusb-1.0.la libusb-1.0.lai
mcuee@Ubuntu1204VM:~/Desktop/build/libusbx/libusbx/build/libusb/.libs$ ls
libusb-1.0.a libusb-1.0.la libusb-1.0.lai
Under the cross build, somehow libusb-1.0.dll.a is still built but
libusb-1.0.dll
is not built even though the output seems to indicate that.
make[1]: Leaving directory
`/home/mcuee/Desktop/build/libusbx/libusbx/buildwin32'
mcuee@Ubuntu1204VM:~/Desktop/build/libusbx/libusbx/buildwin32$ make
make all-recursive
make[1]: Entering directory
`/home/mcuee/Desktop/build/libusbx/libusbx/buildwin32'
Making all in libusb
make[2]: Entering directory
`/home/mcuee/Desktop/build/libusbx/libusbx/buildwin32/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-poll_windows.lo
CC libusb_1_0_la-windows_usb.lo
GEN libusb-1.0.lo
CC libusb_1_0_la-threads_windows.lo
CCLD libusb-1.0.la
GEN libusb-1.0.dll
make[2]: Leaving directory
`/home/mcuee/Desktop/build/libusbx/libusbx/buildwin32/libusb'
Making all in doc
make[2]: Entering directory
`/home/mcuee/Desktop/build/libusbx/libusbx/buildwin32/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory
`/home/mcuee/Desktop/build/libusbx/libusbx/buildwin32/doc'
Making all in examples
make[2]: Entering directory
`/home/mcuee/Desktop/build/libusbx/libusbx/buildwin32/examples'
CC listdevs.o
CCLD listdevs.exe
CC xusb.o
CCLD xusb.exe
CC fxload-ezusb.o
CC fxload-fxload.o
CCLD fxload.exe
make[2]: Leaving directory
`/home/mcuee/Desktop/build/libusbx/libusbx/buildwin32/examples'
Making all in tests
make[2]: Entering directory
`/home/mcuee/Desktop/build/libusbx/libusbx/buildwin32/tests'
CC stress.o
CC testlib.o
CCLD stress.exe
make[2]: Leaving directory
`/home/mcuee/Desktop/build/libusbx/libusbx/buildwin32/tests'
make[2]: Entering directory
`/home/mcuee/Desktop/build/libusbx/libusbx/buildwin32'
make[2]: Leaving directory
`/home/mcuee/Desktop/build/libusbx/libusbx/buildwin32'
make[1]: Leaving directory
`/home/mcuee/Desktop/build/libusbx/libusbx/buildwin32'
mcuee@Ubuntu1204VM:~/Desktop/build/libusbx/libusbx/buildwin32$ ls
./libusb/.libs/
libusb-1.0.a libusb-1.0.dll.a libusb-1.0.la libusb-1.0.lai
--
Xiaofan
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
libusbx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libusbx-devel