fabiovix / py-ads1256

Python Library with C wrappers to read 8 channels from the Texas Instruments ADS1256 ADC chip
29 stars 18 forks source link

Problem with autoreconf -vfi #11

Open tvitsj opened 5 years ago

tvitsj commented 5 years ago

Hi! This is perfect for my use. Unfortunately, it won't work.. When using the command autoreconf -vfi, i get this (all good before this point):

pi@raspberrypi:~/Downloads/bcm2835-1.50 $ autoreconf -vfi autoreconf: Entering directory .' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --force -I m4 aclocal: warning: couldn't open directory 'm4': No such file or directory autoreconf: configure.ac: tracing autoreconf: configure.ac: not using Libtool autoreconf: running: /usr/bin/autoconf --force autoreconf: running: /usr/bin/autoheader --force autoreconf: running: automake --add-missing --copy --force-missing autoreconf: Leaving directory.'

pi@raspberrypi:~/Downloads/bcm2835-1.50 $ ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking for style of include used by make... GNU checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking dependency style of gcc... gcc3 checking for clock_gettime in -lrt... yes checking for doxygen... no configure: WARNING: Doxygen not found - continuing without Doxygen support checking for ranlib... ranlib checking for gcc... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking whether gcc understands -c and -o together... (cached) yes checking dependency style of gcc... (cached) gcc3 checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating doc/Makefile config.status: creating config.h config.status: executing depfiles commands

pi@raspberrypi:~/Downloads/bcm2835-1.50 $ make make all-recursive make[1]: Entering directory '/home/pi/Downloads/bcm2835-1.50' Making all in src make[2]: Entering directory '/home/pi/Downloads/bcm2835-1.50/src' gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT bcm2835.o -MD -MP -MF .deps/bcm2835.Tpo -c -o bcm2835.o bcm2835.c mv -f .deps/bcm2835.Tpo .deps/bcm2835.Po rm -f libbcm2835.a ar cru libbcm2835.a bcm2835.o ar: u' modifier ignored sinceD' is the default (see `U') ranlib libbcm2835.a make[2]: Leaving directory '/home/pi/Downloads/bcm2835-1.50/src' Making all in doc make[2]: Entering directory '/home/pi/Downloads/bcm2835-1.50/doc' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/home/pi/Downloads/bcm2835-1.50/doc' make[2]: Entering directory '/home/pi/Downloads/bcm2835-1.50' make[2]: Leaving directory '/home/pi/Downloads/bcm2835-1.50' make[1]: Leaving directory '/home/pi/Downloads/bcm2835-1.50'

pi@raspberrypi:~/Downloads/bcm2835-1.50 $ sudo make check Making check in src make[1]: Entering directory '/home/pi/Downloads/bcm2835-1.50/src' make test make[2]: Entering directory '/home/pi/Downloads/bcm2835-1.50/src' gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT test.o -MD -MP -MF .deps/test.Tpo -c -o test.o test.c test.c: In function ‘main’: test.c:16:9: warning: implicit declaration of function ‘geteuid’ [-Wimplicit-function-declaration] if (geteuid() == 0 && !getenv("FAKEROOTKEY")) ^~~ mv -f .deps/test.Tpo .deps/test.Po gcc -g -O2 -o test test.o ./libbcm2835.a -lrt make[2]: Leaving directory '/home/pi/Downloads/bcm2835-1.50/src' make check-TESTS make[2]: Entering directory '/home/pi/Downloads/bcm2835-1.50/src' make[3]: Entering directory '/home/pi/Downloads/bcm2835-1.50/src' PASS: test

Testsuite summary for bcm2835 1.50

TOTAL: 1

PASS: 1

SKIP: 0

XFAIL: 0

FAIL: 0

XPASS: 0

ERROR: 0

============================================================================ make[3]: Leaving directory '/home/pi/Downloads/bcm2835-1.50/src' make[2]: Leaving directory '/home/pi/Downloads/bcm2835-1.50/src' make[1]: Leaving directory '/home/pi/Downloads/bcm2835-1.50/src' Making check in doc make[1]: Entering directory '/home/pi/Downloads/bcm2835-1.50/doc' make[1]: Nothing to be done for 'check'. make[1]: Leaving directory '/home/pi/Downloads/bcm2835-1.50/doc' make[1]: Entering directory '/home/pi/Downloads/bcm2835-1.50' make[1]: Leaving directory '/home/pi/Downloads/bcm2835-1.50' pi@raspberrypi:~/Downloads/bcm2835-1.50 $ sudo make install Making install in src make[1]: Entering directory '/home/pi/Downloads/bcm2835-1.50/src' make[2]: Entering directory '/home/pi/Downloads/bcm2835-1.50/src' /bin/mkdir -p '/usr/local/lib' /usr/bin/install -c -m 644 libbcm2835.a '/usr/local/lib' ( cd '/usr/local/lib' && ranlib libbcm2835.a ) /bin/mkdir -p '/usr/local/include' /usr/bin/install -c -m 644 bcm2835.h '/usr/local/include' make[2]: Leaving directory '/home/pi/Downloads/bcm2835-1.50/src' make[1]: Leaving directory '/home/pi/Downloads/bcm2835-1.50/src' Making install in doc make[1]: Entering directory '/home/pi/Downloads/bcm2835-1.50/doc' make[2]: Entering directory '/home/pi/Downloads/bcm2835-1.50/doc' make[2]: Nothing to be done for 'install-exec-am'. make[2]: Nothing to be done for 'install-data-am'. make[2]: Leaving directory '/home/pi/Downloads/bcm2835-1.50/doc' make[1]: Leaving directory '/home/pi/Downloads/bcm2835-1.50/doc' make[1]: Entering directory '/home/pi/Downloads/bcm2835-1.50' make[2]: Entering directory '/home/pi/Downloads/bcm2835-1.50' make[2]: Nothing to be done for 'install-exec-am'. make[2]: Nothing to be done for 'install-data-am'. make[2]: Leaving directory '/home/pi/Downloads/bcm2835-1.50' make[1]: Leaving directory '/home/pi/Downloads/bcm2835-1.50'

After this, I ran these commands sudo apt-get install git build-essential python-dev cd ~ git clone https://github.com/fabiovix/py-ads1256.git cd py-ads1256 sudo python setup.py install

When trying to run the examples to test, i get segmentation fault..

Hope you can help me. Using this in a bachelors project.