Thanks
Sorry for my persecute
Finally i could cross compile without any error, i following these commands :
mkdir hid
cd hid
git clone git://git.libusb.org/libusb.git
git clone git://github.com/signal11/hidapi.git
git clone
https://github.com/gentoo/eudev.gitexport STAGING=$HOME/out
export HOST=arm-linux
CROSS_COMPILE=arm-none-linux-gnueabi-
CXX=/home/hossein/opt/gcc-4.7-linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf-g++
CC=/home/hossein/opt/gcc-4.7-linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf-gcc
export CC CROSS_COMPILE
cd libusb
./configure --host=$HOST --prefix=$STAGING
make
sudo make install
cd ../eudev
./configure --disable-gudev --disable-introspection --disable-hwdb --host=$HOST --prefix=$STAGING
make
sudo make install
cd ../hidapi
./bootstrap
PKG_CONFIG_DIR= PKG_CONFIG_LIBDIR=$STAGING/lib/pkgconfig:$STAGING/share/pkgconfig PKG_CONFIG_SYSROOT_DIR=$STAGING ./configure --host=$HOST --prefix=$STAGING
make
sudo make install
/////
But when i compile in Qt, i get these errors :
hossein@hossein-laptop:~/hid/hidapi/hidtest$ arm-linux-gnueabihf-g++ hidtest.cpp -o myTest
/tmp/ccX4fi6L.o: In function `main':
hidtest.cpp:(.text+0x14): undefined reference to `hid_init'
hidtest.cpp:(.text+0x44): undefined reference to `hid_enumerate'
hidtest.cpp:(.text+0x11c): undefined reference to `hid_free_enumeration'
hidtest.cpp:(.text+0x154): undefined reference to `hid_open'
hidtest.cpp:(.text+0x198): undefined reference to `hid_get_manufacturer_string'
hidtest.cpp:(.text+0x1e8): undefined reference to `hid_get_product_string'
hidtest.cpp:(.text+0x238): undefined reference to `hid_get_serial_number_string'
hidtest.cpp:(.text+0x29c): undefined reference to `hid_get_indexed_string'
hidtest.cpp:(.text+0x2d8): undefined reference to `hid_set_nonblocking'
hidtest.cpp:(.text+0x2f0): undefined reference to `hid_read'
hidtest.cpp:(.text+0x338): undefined reference to `hid_send_feature_report'
hidtest.cpp:(.text+0x38c): undefined reference to `hid_get_feature_report'
hidtest.cpp:(.text+0x3b0): undefined reference to `hid_error'
hidtest.cpp:(.text+0x470): undefined reference to `hid_write'
hidtest.cpp:(.text+0x494): undefined reference to `hid_error'
hidtest.cpp:(.text+0x4cc): undefined reference to `hid_write'
hidtest.cpp:(.text+0x504): undefined reference to `hid_read'
hidtest.cpp:(.text+0x5cc): undefined reference to `hid_close'
hidtest.cpp:(.text+0x5d0): undefined reference to `hid_exit'
...
I dont know what can i do for solve these errors , i searching a lot in web and read a lot of web pages and documents, but i cant do anything...
Thanks a lot