On 8/5/10, Fundu <[email protected]> wrote:
> ok so i tried .
>
> set the environment to
> TOOLCHAIN=/usr/local/arm/4.3.2
> PATH=$PATH:$TOOLCHAIN/bin
> CC='arm-none-linux-gnueabi-gcc -march=armv4t -mtune=arm920t'
> CROSS_COMPILE=arm-none-linux-gnueabi-
> CC CROSS_COMPILE
> LIBUSB_CFLAGS=-I/usr/include # has libusb.h
> LIBUSB_libs="-L/usr/local/arm/4.3.2/arm-none-linux-gnueabi/libc/armv4t/usr/lib/
> -lusb" # has libusb-1.0.so
>
> and here's the error
>  ./configure --host=arm-linux --disable-libhal
>

Fundu, Hello.

That triplet is not compilant at all, leaving appart the herachy you
also opted for.

That `--host=arm-linux' clearly says you don't have much clue on what
you're doing either.

In any case, libusb or whatever other library you migth need to link
with and it's dependencies, should be cross-compiled for that target
(arm) and installed under it's corresponding herachy (preferrably).

Then you should set PKG_CONFIG_PATH or similar, such like the build
environment uses the arm's libusb.pc and not your host's one.

Read the autoconf/automake manual and set up the project properly,
will save you a lot of time and hardcoding you shouldn't even be doing
when it comes to cross-compilation.

Regards,

> but heres the error i get. don't know why libusb.h cannot be found.
>
> 1) what am i missing .
>
> 2) do i need to build ccid and libmusclecard too.
>
>
> checking for strlcpy... no
> checking for strlcat... no
> checking for inline... inline
> checking for -fvisibility=hidden... yes
> checking for dlopen in -ldl... yes
> checking for socket in -lsocket... no
> checking for LIBUSB... no
> no
> checking for libusb-config... no
> configure: WARNING: libusb-config not found.
> checking libusb-1.0/libusb.h usability... no
> checking libusb-1.0/libusb.h presence... no
> checking for libusb-1.0/libusb.h... no
> configure: error: libusb.h not found, use ./configure LIBUSB_CFLAGS=...
>
>
>
> _______________________________________________
> Muscle mailing list
> [email protected]
> http://lists.drizzle.com/mailman/listinfo/muscle
>
_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to