Interfacing

BCM2835 gpio library

13 2247
I have upload the modified BCM2835 gpio library into the github, you can refer to this for install :
http://wiki.lemaker.org/BCM2835
i am trying to make bcm2835_BP on my BP Pro under raspian and bananian "Raspbian GNU/Linux 7 (wheezy)"
./configure says
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/root/bcm2835_BP/missing: Unknown `--is-lightweight' option
Try `/root/bcm2835_BP/missing --help' for more information
configure: WARNING: 'missing' script is too old or missing
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 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 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

but make
brings up an error
root@roboRasp:~/bcm2835_BP# make
CDPATH="${ZSH_VERSION+.}:" && cd . && aclocal-1.13 -I m4
configure.ac:9: warning: macro 'AM_CONFIG_HEADER' not found in library
cd . && automake-1.13 --gnu
CDPATH="${ZSH_VERSION+.}:" && cd . && autoconf
configure.ac:9: error: possibly undefined macro: AM_CONFIG_HEADER
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
Makefile:325: recipe for target 'configure' failed
make: *** [configure] Error 1

i am on beginner level - what am i doing wrong?
how to build on BP Pro with raspian?

GRAVITY  
Hello.

  1. root@lemaker:/home/bananapi/libs/bcm2835_BP# ./configure
  2. checking for a BSD-compatible install... /usr/bin/install -c
  3. checking whether build environment is sane... yes
  4. /home/bananapi/libs/bcm2835_BP/missing: Unknown `--is-lightweight' option
  5. Try `/home/bananapi/libs/bcm2835_BP/missing --help' for more information
  6. configure: WARNING: 'missing' script is too old or missing
  7. checking for a thread-safe mkdir -p... /bin/mkdir -p
  8. checking for gawk... no
  9. checking for mawk... mawk
  10. checking whether make sets $(MAKE)... yes
  11. checking whether make supports nested variables... yes
  12. checking for style of include used by make... GNU
  13. checking for gcc... gcc
  14. checking whether the C compiler works... yes
  15. checking for C compiler default output file name... a.out
  16. checking for suffix of executables...
  17. checking whether we are cross compiling... no
  18. checking for suffix of object files... o
  19. checking whether we are using the GNU C compiler... yes
  20. checking whether gcc accepts -g... yes
  21. checking for gcc option to accept ISO C89... none needed
  22. checking dependency style of gcc... gcc3
  23. checking for clock_gettime in -lrt... yes
  24. checking for doxygen... no
  25. configure: WARNING: Doxygen not found - continuing without Doxygen support
  26. checking for ranlib... ranlib
  27. checking for gcc... (cached) gcc
  28. checking whether we are using the GNU C compiler... (cached) yes
  29. checking whether gcc accepts -g... (cached) yes
  30. checking for gcc option to accept ISO C89... (cached) none needed
  31. checking dependency style of gcc... (cached) gcc3
  32. checking that generated files are newer than configure... done
  33. configure: creating ./config.status
  34. config.status: creating Makefile
  35. config.status: creating src/Makefile
  36. config.status: creating doc/Makefile
  37. config.status: creating config.h
  38. config.status: executing depfiles commands
  39. root@lemaker:/home/bananapi/libs/bcm2835_BP# make
  40. CDPATH="${ZSH_VERSION+.}:" && cd . && aclocal-1.13 -I m4
  41. configure.ac:9: error: 'AM_CONFIG_HEADER': this macro is obsolete.
  42.     You should use the 'AC_CONFIG_HEADERS' macro instead.
  43. /usr/local/share/aclocal-1.13/obsolete-err.m4:12: AM_CONFIG_HEADER is expanded from...
  44. configure.ac:9: the top level
  45. autom4te: /usr/bin/m4 failed with exit status: 1
  46. aclocal-1.13: error: echo failed with exit status: 1
  47. make: *** [aclocal.m4] Error 1
  48. root@lemaker:/home/bananapi/libs/bcm2835_BP#
Copy the Code



Can u help me, please ?

GRAVITY  
assembly by the instruction does not work

http://wiki.lemaker.org/BCM2835

GRAVITY  
Can somebody help me, please?

try editing the "configure.ac" file....
comment out the line
  1. AM_CONFIG_HEADER(config.h)
Copy the Code

add the line
  1. AC_CONFIG_HEADERS([config.h])
Copy the Code
instead

see if it works..

GRAVITY  
sashijoseph replied at Apr 12, 2016 10:26
try editing the "configure.ac" file....
comment out the line
add the line instead

thank u very match! it works!
can anyone fix problem in repository
http://wiki.lemaker.org/BCM2835 ?

daniren  
Also, if you want to install the BCM GPIO c lib correctly. you must update your automake to 1.3.5 !!!

jobi23  
I want to use the bcm2835 library on an Banana PI (not PRO)
Can I use this library without changes or can you tell me which base adresses i've to use?

My project: I would like to use a C-Berry LCD on the Banana PI instead of the Raspberry PI.
When I compile and run the bcm2835_BP library on the Banana PI, I get an memory access error

jobi23 replied at Jun 09, 2016 04:27
I want to use the bcm2835 library on an Banana PI (not PRO)
Can I use this library without changes o ...

You do not need to change, you can use the pin1 to pin26 on Banana Pi.

You have to log in before you can reply Login | Sign Up

Points Rules