Find the answer to your Linux question:
Results 1 to 2 of 2
Hi. Sorry if i'm in the wrong forum, but i couldn't find another more suitable for my issue. I'm trying to cross compile bluez-utils for another linux machine, using my ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2006
    Location
    Leiria, Portugal
    Posts
    8

    Cross-Compiling bluez-utils


    Hi.

    Sorry if i'm in the wrong forum, but i couldn't find another more suitable for my issue.
    I'm trying to cross compile bluez-utils for another linux machine, using my SuSE distro as the host.
    I've already been able to cross-compile bluez-libs, no problem on that.
    However, now i'm trying to cross-compile bluez-utils, and it keeps giving me the same errors:
    main.c:32:33: bluetooth/bluetooth.h: No such file or directory
    main.c:33:27: bluetooth/hci.h: No such file or directory
    main.c:34:31: bluetooth/hci_lib.h: No such file or directory
    make[2]: *** [main.o] Error 1
    make[2]: Leaving directory `/home/jramos/mtm2006/sysapps/36_bluez/bluez-utils-3.2/daemon'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/jramos/mtm2006/sysapps/36_bluez/bluez-utils-3.2'
    make: *** [all] Error 2
    Which means, although the files needed are already on the target (.../usr/include/bluetooth), the make doesn't seem to find them.

    my commands for configure/make are (actually, they are in a script):
    $ CC="${TARGET}-gcc -march" AR=${TARGET}-ar RANLIB=${TARGET}-ranlib
    $ ./configure --prefix=/usr --host=${TARGET} --enable-all
    $ make DESTDIR=${INSTALLDIR}
    What am I doing wrong?

    Thank you in advance.

  2. #2
    Linux Enthusiast KenJackson's Avatar
    Join Date
    Jun 2006
    Location
    Maryland, USA
    Posts
    510
    I think you want to put this on the gcc command line (of course with "..." replaced approprieately):
    -L.../usr/include

    You may be able to pass it into make the same way you do the other variables. Maybe LDFLAGS=-L.../usr/include or CFLAGS=-L.../usr/include. Or since you are already putting '-march' as part of CC, you could add -L too.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •