You are here: Forum Home → ANT Developers Forums → ANT General Questions → Thread
Dynastream Developer
Dynastream Developer
It should work, but hasn't been tested by us yet. Let us know how it goes!
pi@raspberrypi:~/Downloads/ANT-SDK_Linux_3.8.200/DEMO_LIB $ ./demo
USB Device number?
1
Segmentation fault
Dynastream Developer
@hisoft, I am guessing it is failing because it can't find the USB stick. Try using '0' instead of '1', the USB enumeration starts at 0.
It is also possible something else is using the stick or you don't have the drivers installed properly.
Sorry you just get a hard seg fault instead of a useful error, looks like the demo is set up with asserts to flag when the connection doesn't work, but will just try to dereference the null pointer on production.
Dynastream Developer
You likely need to run with elevated privileges to access the libusb stack in your OS then, try running the demo using sudo.
Dynastream Developer
Going back to what I said about drivers, I just noticed the package we released is missing the dependencies list. Please make sure the following are installed on your system, according to your OS:
Debian:
-gcc/g++
-make
-libpthread-stubs0-dev
-pkg-config
-libglib2.0-dev
-libgirepository1.0-dev
-gperf
-libudev-dev
RedHat:
-gcc/g++
-make
-libxcb-devel
-pkgconfig
-gobject-introspection-devel
-gperf
-libudev-devel
Mac OSX:
-xcode tools
-clang
-make
pi@raspberrypi:~/Downloads/ANT-SDK_Linux_3.8.200/DEMO_LIB $ ./demo
USB Device number?
0
Segmentation fault
pi@raspberrypi:~/Downloads/ANT-SDK_Linux_3.8.200/DEMO_LIB $ sudo ./demo
USB Device number?
0
pi@raspberrypi:~/Downloads/ANT-SDK_Linux_3.8.200/DEMO_LIB $
Dynastream Developer
sudo apt-get install libglib2.0-dev
sudo apt-get install libgirepository1.0-dev
sudo apt-get install libudev-dev
sudo apt-get install libusb-dev
sudo apt-get install libusb-1.0.0
sudo apt-get install libusb-1.0-0-dev
export LIBUSB_LIBDIR=/usr/lib/arm-linux-gnueabihf
export LIBUSB_INCDIR=/usr/include/libusb-1.0
Dynastream Developer