Author Topic: Cross compile hidapi for raspberry  (Read 10057 times)

powerboy2988

  • Member
  • ***
  • Posts: 5
Cross compile hidapi for raspberry
« on: April 02, 2016, 10:07:25 am »

 Hi,

 I want cross compile hidapi , but i have a problem,

 I read your web site : http://janaxelson.com/hidapi.htm


 1- I did download libusb from http://www.libusb.org/ and put in hidapi directory .
 Build Libusb. From the libusb source directory, run:
    ./configure --host=$HOST --prefix=$STAGING
        make
    make install
 // This Step Is OK

 2- I did downoad libudev from https://github.com/gentoo/eudev and put in hidapi directory.
 Build libudev. From the libudev source directory, run:
    ./configure --disable-gudev --disable-introspection --disable-hwdb \
        --host=$HOST --prefix=$STAGING
    make
    make install

// This Step Is Ok


  Building HIDAPI
 ----------------

 Build HIDAPI:

    PKG_CONFIG_DIR= \
    PKG_CONFIG_LIBDIR=$STAGING/lib/pkgconfig:$STAGING/share/pkgconfig \
    PKG_CONFIG_SYSROOT_DIR=$STAGING \
    ./configure --host=$HOST --prefix=$STAGING

 // This Step Is Ok

 but when i run make command , i get this error :

 hossein@Hossein:~/Projects/ARM_Raspberry/hidapi$ make
 make  all-recursive
make[1]: Entering directory `/home/hossein/Projects/ARM_Raspberry/hidapi'
Making all in linux
 make[2]: Entering directory `/home/hossein/Projects/ARM_Raspberry/hidapi/linux'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/hossein/Projects/ARM_Raspberry/hidapi/linux'
 Making all in libusb
 make[2]: Entering directory `/home/hossein/Projects/ARM_Raspberry/hidapi/libusb'
 make[2]: *** No rule to make target `@MAINTAINER_MODE_TRUE@', needed by `Makefile.in'.  Stop.
 make[2]: Leaving directory `/home/hossein/Projects/ARM_Raspberry/hidapi/libusb'
 make[1]: *** [all-recursive] Error 1
 make[1]: Leaving directory `/home/hossein/Projects/ARM_Raspberry/hidapi'
 make: *** [all] Error 2


I did search, but i couldn`t solve,

 What can i do?


Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: Cross compile hidapi for raspberry
« Reply #1 on: April 02, 2016, 10:16:33 am »
A search on this error message will bring up some discussions that might help:

No rule to make target `@MAINTAINER_MODE_TRUE@'

Or you might try posting the question to:

http://www.linuxquestions.org