omerk / pihwm

lightweight C wrappers for Raspberry Pi hardware modules

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Faild to compile pihwm on "Raspberry Pi B 1G RAM"

ethrbh opened this issue · comments

hello,

I have cloned the pihwm project
git clone git://github.com/omerk/pihwm.git

and I tried build it according to the instructions (http://omerk.github.io/pihwm/). I made the build dir and entered into, but there is no configure script found in its main folder. The following folders and files can be found:
pi@raspberrypi ~/ethrbh/temp/pihwm_ethrbh/pihwm $ ls -la
total 44
drwxr-xr-x 6 pi pi 4096 Feb 12 05:06 .
drwxr-xr-x 3 pi pi 4096 Feb 12 05:06 ..
-rwxr-xr-x 1 pi pi 2298 Feb 12 05:06 autogen.sh
-rw-r--r-- 1 pi pi 3658 Feb 12 05:06 configure.ac
drwxr-xr-x 2 pi pi 4096 Feb 12 05:06 demo
drwxr-xr-x 2 pi pi 4096 Feb 12 05:06 doc
drwxr-xr-x 8 pi pi 4096 Feb 12 05:06 .git
-rw-r--r-- 1 pi pi 408 Feb 12 05:06 .gitignore
drwxr-xr-x 2 pi pi 4096 Feb 12 05:06 lib
-rw-r--r-- 1 pi pi 1011 Feb 12 05:06 Makefile.am
-rw-r--r-- 1 pi pi 855 Feb 12 05:06 README.md

What I had to do for step forward:
- install autoconf
- install libtool
- run ./autogen.sh
- run make
- unfortunately make install failed due to some permission problem, but I do not know why it is. Maybe I need be root instead of pi user on the raspberry?!

HW type:
Raspberry Pi B 1G RAM, http://www.raspberrypi.org/products/raspberry-pi-2-model-b/
OS:
pi@raspberrypi ~/ethrbh/temp/pihwm_ethrbh/pihwm_3/pihwm $ uname -a
Linux raspberrypi 3.18.5-v7+ #225 SMP PREEMPT Fri Jan 30 18:53:55 GMT 2015 armv7l GNU/Linux

Here is the log on all the operation I did. Please let me know if I did something wrong. Please also let me know if the documentation is right, but I missed something to not get configure script in the main folder after cloning the tool.

    pi@raspberrypi ~/ethrbh/temp/pihwm_ethrbh/pihwm_3 $ cd pihwm/
    pi@raspberrypi ~/ethrbh/temp/pihwm_ethrbh/pihwm_3/pihwm $ ls -la
    total 44
    drwxr-xr-x 6 pi pi 4096 Feb 12 07:57 .
    drwxr-xr-x 3 pi pi 4096 Feb 12 07:57 ..
    -rwxr-xr-x 1 pi pi 2298 Feb 12 07:57 autogen.sh
    -rw-r--r-- 1 pi pi 3658 Feb 12 07:57 configure.ac
    drwxr-xr-x 2 pi pi 4096 Feb 12 07:57 demo
    drwxr-xr-x 2 pi pi 4096 Feb 12 07:57 doc
    drwxr-xr-x 8 pi pi 4096 Feb 12 07:57 .git
    -rw-r--r-- 1 pi pi  408 Feb 12 07:57 .gitignore
    drwxr-xr-x 2 pi pi 4096 Feb 12 07:57 lib
    -rw-r--r-- 1 pi pi 1011 Feb 12 07:57 Makefile.am
    -rw-r--r-- 1 pi pi  855 Feb 12 07:57 README.md
    pi@raspberrypi ~/ethrbh/temp/pihwm_ethrbh/pihwm_3/pihwm $ 
    pi@raspberrypi ~/ethrbh/temp/pihwm_ethrbh/pihwm_3/pihwm $ aaclocal
    pi@raspberrypi ~/ethrbh/temp/pihwm_ethrbh/pihwm_3/pihwm $ 
    pi@raspberrypi ~/ethrbh/temp/pihwm_ethrbh/pihwm_3/pihwm $ ls -la
    total 388
    drwxr-xr-x 7 pi pi   4096 Feb 12 07:57 .
    drwxr-xr-x 3 pi pi   4096 Feb 12 07:57 ..
    -rw-r--r-- 1 pi pi 346857 Feb 12 07:57 aclocal.m4
    -rwxr-xr-x 1 pi pi   2298 Feb 12 07:57 autogen.sh
    drwxr-xr-x 2 pi pi   4096 Feb 12 07:57 autom4te.cache
    -rw-r--r-- 1 pi pi   3658 Feb 12 07:57 configure.ac
    drwxr-xr-x 2 pi pi   4096 Feb 12 07:57 demo
    drwxr-xr-x 2 pi pi   4096 Feb 12 07:57 doc
    drwxr-xr-x 8 pi pi   4096 Feb 12 07:57 .git
    -rw-r--r-- 1 pi pi    408 Feb 12 07:57 .gitignore
    drwxr-xr-x 2 pi pi   4096 Feb 12 07:57 lib
    -rw-r--r-- 1 pi pi   1011 Feb 12 07:57 Makefile.am
    -rw-r--r-- 1 pi pi    855 Feb 12 07:57 README.md
    pi@raspberrypi ~/ethrbh/temp/pihwm_ethrbh/pihwm_3/pihwm $ 
    pi@raspberrypi ~/ethrbh/temp/pihwm_ethrbh/pihwm_3/pihwm $ automake
    configure.ac:50: required file `./compile' not found
    configure.ac:50:   `automake --add-missing' can install `compile'
    configure.ac:36: required file `./config.guess' not found
    configure.ac:36:   `automake --add-missing' can install `config.guess'
    configure.ac:36: required file `./config.sub' not found
    configure.ac:36:   `automake --add-missing' can install `config.sub'
    configure.ac:37: required file `./install-sh' not found
    configure.ac:37:   `automake --add-missing' can install `install-sh'
    configure.ac:36: required file `./ltmain.sh' not found
    configure.ac:37: required file `./missing' not found
    configure.ac:37:   `automake --add-missing' can install `missing'
    demo/Makefile.am: required file `./depcomp' not found
    demo/Makefile.am:   `automake --add-missing' can install `depcomp'
    configure.ac:40: required file `config.h.in' not found
    pi@raspberrypi ~/ethrbh/temp/pihwm_ethrbh/pihwm_3/pihwm $ 
    pi@raspberrypi ~/ethrbh/temp/pihwm_ethrbh/pihwm_3/pihwm $ ls -la
    total 388
    drwxr-xr-x 7 pi pi   4096 Feb 12 07:57 .
    drwxr-xr-x 3 pi pi   4096 Feb 12 07:57 ..
    -rw-r--r-- 1 pi pi 346857 Feb 12 07:57 aclocal.m4
    -rwxr-xr-x 1 pi pi   2298 Feb 12 07:57 autogen.sh
    drwxr-xr-x 2 pi pi   4096 Feb 12 07:58 autom4te.cache
    -rw-r--r-- 1 pi pi   3658 Feb 12 07:57 configure.ac
    drwxr-xr-x 2 pi pi   4096 Feb 12 07:57 demo
    drwxr-xr-x 2 pi pi   4096 Feb 12 07:57 doc
    drwxr-xr-x 8 pi pi   4096 Feb 12 07:57 .git
    -rw-r--r-- 1 pi pi    408 Feb 12 07:57 .gitignore
    drwxr-xr-x 2 pi pi   4096 Feb 12 07:57 lib
    -rw-r--r-- 1 pi pi   1011 Feb 12 07:57 Makefile.am
    -rw-r--r-- 1 pi pi    855 Feb 12 07:57 README.md
    pi@raspberrypi ~/ethrbh/temp/pihwm_ethrbh/pihwm_3/pihwm $ 
    pi@raspberrypi ~/ethrbh/temp/pihwm_ethrbh/pihwm_3/pihwm $ ./autogen.sh 
    I am going to run ./configure with no arguments - if you wish 
    to pass any to it, please specify them on the ./autogen.sh command line.
    Running aclocal -I .  ...
    Running automake --foreign  ...
    configure.ac:50: installing `./compile'
    configure.ac:36: installing `./config.guess'
    configure.ac:36: installing `./config.sub'
    configure.ac:37: installing `./install-sh'
    configure.ac:36: required file `./ltmain.sh' not found
    configure.ac:37: installing `./missing'
    demo/Makefile.am: installing `./depcomp'
    Running autoconf ...
    autoreconf: Entering directory `.'
    autoreconf: configure.ac: not using Gettext
    autoreconf: running: aclocal --force -I m4
    autoreconf: configure.ac: tracing
    autoreconf: running: libtoolize --copy --force
    libtoolize: putting auxiliary files in `.'.
    libtoolize: copying file `./ltmain.sh'
    libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
    libtoolize: copying file `m4/libtool.m4'
    libtoolize: copying file `m4/ltoptions.m4'
    libtoolize: copying file `m4/ltsugar.m4'
    libtoolize: copying file `m4/ltversion.m4'
    libtoolize: copying file `m4/lt~obsolete.m4'
    autoreconf: running: /usr/bin/autoconf --force
    autoreconf: running: /usr/bin/autoheader --force
    autoreconf: running: automake --add-missing --copy --force-missing
    autoreconf: Leaving directory `.'
    Running ./configure ...
    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 how to run the C preprocessor... gcc -E
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking minix/config.h usability... no
    checking minix/config.h presence... no
    checking for minix/config.h... no
    checking whether it is safe to define __EXTENSIONS__... yes
    checking build system type... armv7l-unknown-linux-gnueabihf
    checking host system type... armv7l-unknown-linux-gnueabihf
    checking how to print strings... printf
    checking for a sed that does not truncate output... /bin/sed
    checking for fgrep... /bin/grep -F
    checking for ld used by gcc... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
    checking the name lister (/usr/bin/nm -B) interface... BSD nm
    checking whether ln -s works... yes
    checking the maximum length of command line arguments... 1572864
    checking whether the shell understands some XSI constructs... yes
    checking whether the shell understands "+="... yes
    checking how to convert armv7l-unknown-linux-gnueabihf file names to armv7l-unknown-linux-gnueabihf format... func_convert_file_noop
    checking how to convert armv7l-unknown-linux-gnueabihf file names to toolchain format... func_convert_file_noop
    checking for /usr/bin/ld option to reload object files... -r
    checking for objdump... objdump
    checking how to recognize dependent libraries... pass_all
    checking for dlltool... no
    checking how to associate runtime and link libraries... printf %s\n
    checking for ar... ar
    checking for archiver @FILE support... @
    checking for strip... strip
    checking for ranlib... ranlib
    checking for gawk... no
    checking for mawk... mawk
    checking command to parse /usr/bin/nm -B output from gcc object... ok
    checking for sysroot... no
    checking for mt... mt
    checking if mt is a manifest tool... no
    checking for dlfcn.h... yes
    checking for objdir... .libs
    checking if gcc supports -fno-rtti -fno-exceptions... no
    checking for gcc option to produce PIC... -fPIC -DPIC
    checking if gcc PIC flag -fPIC -DPIC works... yes
    checking if gcc static flag -static works... yes
    checking if gcc supports -c -o file.o... yes
    checking if gcc supports -c -o file.o... (cached) yes
    checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
    checking whether -lc should be explicitly linked in... no
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... yes
    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 whether make sets $(MAKE)... yes
    checking for style of include used by make... GNU
    checking dependency style of gcc... gcc3
    checking whether make supports nested variables... yes
    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 and cc understand -c and -o together... yes
    checking whether make sets $(MAKE)... (cached) yes
    checking return type of signal handlers... void
    checking whether to enable profiling... no
    checking for doxygen... no
    configure: WARNING: Doxygen not found - documentation will not be generated.
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating demo/Makefile
    config.status: creating doc/Doxyfile
    config.status: creating doc/Makefile
    config.status: creating lib/Makefile
    config.status: creating config.h
    config.status: executing libtool commands
    config.status: executing depfiles commands
    pi@raspberrypi ~/ethrbh/temp/pihwm_ethrbh/pihwm_3/pihwm $ 
    pi@raspberrypi ~/ethrbh/temp/pihwm_ethrbh/pihwm_3/pihwm $ ls -la
    total 1388
    drwxr-xr-x 8 pi pi   4096 Feb 12 08:00 .
    drwxr-xr-x 3 pi pi   4096 Feb 12 07:57 ..
    -rw-r--r-- 1 pi pi  38134 Feb 12 07:59 aclocal.m4
    -rwxr-xr-x 1 pi pi   2298 Feb 12 07:57 autogen.sh
    drwxr-xr-x 2 pi pi   4096 Feb 12 07:59 autom4te.cache
    -rwxr-xr-x 1 pi pi   7274 Feb 12 07:59 compile
    -rwxr-xr-x 1 pi pi  44826 Feb 12 07:59 config.guess
    -rw-r--r-- 1 pi pi   2803 Feb 12 08:00 config.h
    -rw-r--r-- 1 pi pi   2578 Feb 12 07:59 config.h.in
    -rw-r--r-- 1 pi pi      0 Feb 12 07:58 config.h.in~
    -rw-r--r-- 1 pi pi  27241 Feb 12 08:00 config.log
    -rwxr-xr-x 1 pi pi  62138 Feb 12 08:00 config.status
    -rwxr-xr-x 1 pi pi  35543 Feb 12 07:59 config.sub
    -rwxr-xr-x 1 pi pi 434211 Feb 12 07:59 configure
    -rw-r--r-- 1 pi pi   3658 Feb 12 07:57 configure.ac
    drwxr-xr-x 3 pi pi   4096 Feb 12 08:00 demo
    -rwxr-xr-x 1 pi pi  20899 Feb 12 07:59 depcomp
    drwxr-xr-x 2 pi pi   4096 Feb 12 08:00 doc
    drwxr-xr-x 8 pi pi   4096 Feb 12 07:57 .git
    -rw-r--r-- 1 pi pi    408 Feb 12 07:57 .gitignore
    -rwxr-xr-x 1 pi pi  13998 Feb 12 07:59 install-sh
    drwxr-xr-x 3 pi pi   4096 Feb 12 08:00 lib
    -rwxr-xr-x 1 pi pi 293276 Feb 12 08:00 libtool
    -rw-r--r-- 1 pi pi 283670 Feb 12 07:59 ltmain.sh
    drwxr-xr-x 2 pi pi   4096 Feb 12 07:59 m4
    -rw-r--r-- 1 pi pi  25542 Feb 12 08:00 Makefile
    -rw-r--r-- 1 pi pi   1011 Feb 12 07:57 Makefile.am
    -rw-r--r-- 1 pi pi  25197 Feb 12 07:59 Makefile.in
    -rwxr-xr-x 1 pi pi  10346 Feb 12 07:59 missing
    -rw-r--r-- 1 pi pi    855 Feb 12 07:57 README.md
    -rw-r--r-- 1 pi pi     23 Feb 12 08:00 stamp-h1
    pi@raspberrypi ~/ethrbh/temp/pihwm_ethrbh/pihwm_3/pihwm $ 
    pi@raspberrypi ~/ethrbh/temp/pihwm_ethrbh/pihwm_3/pihwm $ make
    make  all-recursive
    make[1]: Entering directory '/home/pi/ethrbh/temp/pihwm_ethrbh/pihwm_3/pihwm'
    Making all in lib
    make[2]: Entering directory '/home/pi/ethrbh/temp/pihwm_ethrbh/pihwm_3/pihwm/lib'
      CC     pi_gpio.lo
      CC     pi_i2c.lo
      CC     pi_pwm.lo
      CC     pi_spi.lo
      CC     pihwm.lo
      CCLD   libpihwm.la
    make[2]: Leaving directory '/home/pi/ethrbh/temp/pihwm_ethrbh/pihwm_3/pihwm/lib'
    Making all in demo
    make[2]: Entering directory '/home/pi/ethrbh/temp/pihwm_ethrbh/pihwm_3/pihwm/demo'
      CC     board_info.o
      CCLD   board_info
      CC     check_kernel_modules.o
      CCLD   check_kernel_modules
      CC     gpio_int.o
      CCLD   gpio_int
      CC     gpio_test.o
      CCLD   gpio_test
      CC     gpio_ledborg.o
      CCLD   gpio_ledborg
      CC     i2c_ads1015.o
      CCLD   i2c_ads1015
      CC     i2c_hmc6352.o
      CCLD   i2c_hmc6352
      CC     i2c_mcp23008.o
      CCLD   i2c_mcp23008
      CC     pwm_demo.o
      CCLD   pwm_demo
      CC     spi_test.o
      CCLD   spi_test
      CC     spi_bb_mcp3202.o
      CCLD   spi_bb_mcp3202
      CC     spi_mcp3002.o
      CCLD   spi_mcp3002
    make[2]: Leaving directory '/home/pi/ethrbh/temp/pihwm_ethrbh/pihwm_3/pihwm/demo'
    Making all in doc
    make[2]: Entering directory '/home/pi/ethrbh/temp/pihwm_ethrbh/pihwm_3/pihwm/doc'
    make[2]: Nothing to be done for 'all'.
    make[2]: Leaving directory '/home/pi/ethrbh/temp/pihwm_ethrbh/pihwm_3/pihwm/doc'
    make[2]: Entering directory '/home/pi/ethrbh/temp/pihwm_ethrbh/pihwm_3/pihwm'
    make[2]: Leaving directory '/home/pi/ethrbh/temp/pihwm_ethrbh/pihwm_3/pihwm'
    make[1]: Leaving directory '/home/pi/ethrbh/temp/pihwm_ethrbh/pihwm_3/pihwm'
    pi@raspberrypi ~/ethrbh/temp/pihwm_ethrbh/pihwm_3/pihwm $ 
    pi@raspberrypi ~/ethrbh/temp/pihwm_ethrbh/pihwm_3/pihwm $ ls -la
    total 1388
    drwxr-xr-x 8 pi pi   4096 Feb 12 08:00 .
    drwxr-xr-x 3 pi pi   4096 Feb 12 07:57 ..
    -rw-r--r-- 1 pi pi  38134 Feb 12 07:59 aclocal.m4
    -rwxr-xr-x 1 pi pi   2298 Feb 12 07:57 autogen.sh
    drwxr-xr-x 2 pi pi   4096 Feb 12 07:59 autom4te.cache
    -rwxr-xr-x 1 pi pi   7274 Feb 12 07:59 compile
    -rwxr-xr-x 1 pi pi  44826 Feb 12 07:59 config.guess
    -rw-r--r-- 1 pi pi   2803 Feb 12 08:00 config.h
    -rw-r--r-- 1 pi pi   2578 Feb 12 07:59 config.h.in
    -rw-r--r-- 1 pi pi      0 Feb 12 07:58 config.h.in~
    -rw-r--r-- 1 pi pi  27241 Feb 12 08:00 config.log
    -rwxr-xr-x 1 pi pi  62138 Feb 12 08:00 config.status
    -rwxr-xr-x 1 pi pi  35543 Feb 12 07:59 config.sub
    -rwxr-xr-x 1 pi pi 434211 Feb 12 07:59 configure
    -rw-r--r-- 1 pi pi   3658 Feb 12 07:57 configure.ac
    drwxr-xr-x 4 pi pi   4096 Feb 12 08:00 demo
    -rwxr-xr-x 1 pi pi  20899 Feb 12 07:59 depcomp
    drwxr-xr-x 2 pi pi   4096 Feb 12 08:00 doc
    drwxr-xr-x 8 pi pi   4096 Feb 12 07:57 .git
    -rw-r--r-- 1 pi pi    408 Feb 12 07:57 .gitignore
    -rwxr-xr-x 1 pi pi  13998 Feb 12 07:59 install-sh
    drwxr-xr-x 4 pi pi   4096 Feb 12 08:00 lib
    -rwxr-xr-x 1 pi pi 293276 Feb 12 08:00 libtool
    -rw-r--r-- 1 pi pi 283670 Feb 12 07:59 ltmain.sh
    drwxr-xr-x 2 pi pi   4096 Feb 12 07:59 m4
    -rw-r--r-- 1 pi pi  25542 Feb 12 08:00 Makefile
    -rw-r--r-- 1 pi pi   1011 Feb 12 07:57 Makefile.am
    -rw-r--r-- 1 pi pi  25197 Feb 12 07:59 Makefile.in
    -rwxr-xr-x 1 pi pi  10346 Feb 12 07:59 missing
    -rw-r--r-- 1 pi pi    855 Feb 12 07:57 README.md
    -rw-r--r-- 1 pi pi     23 Feb 12 08:00 stamp-h1
    pi@raspberrypi ~/ethrbh/temp/pihwm_ethrbh/pihwm_3/pihwm $ 
    pi@raspberrypi ~/ethrbh/temp/pihwm_ethrbh/pihwm_3/pihwm $ ls -la lib
    total 196
    drwxr-xr-x 4 pi pi  4096 Feb 12 08:00 .
    drwxr-xr-x 8 pi pi  4096 Feb 12 08:00 ..
    drwxr-xr-x 2 pi pi  4096 Feb 12 08:00 .deps
    -rw-r--r-- 1 pi pi   940 Feb 12 08:00 libpihwm.la
    drwxr-xr-x 2 pi pi  4096 Feb 12 08:00 .libs
    -rw-r--r-- 1 pi pi 20445 Feb 12 08:00 Makefile
    -rw-r--r-- 1 pi pi  1323 Feb 12 07:57 Makefile.am
    -rw-r--r-- 1 pi pi 20758 Feb 12 07:59 Makefile.in
    -rw-r--r-- 1 pi pi  8792 Feb 12 07:57 pi_gpio.c
    -rw-r--r-- 1 pi pi  1828 Feb 12 07:57 pi_gpio.h
    -rw-r--r-- 1 pi pi   290 Feb 12 08:00 pi_gpio.lo
    -rw-r--r-- 1 pi pi 11236 Feb 12 08:00 pi_gpio.o
    -rw-r--r-- 1 pi pi  5132 Feb 12 07:57 pihwm.c
    -rw-r--r-- 1 pi pi  1898 Feb 12 07:57 pihwm.h
    -rw-r--r-- 1 pi pi   284 Feb 12 08:00 pihwm.lo
    -rw-r--r-- 1 pi pi  7424 Feb 12 08:00 pihwm.o
    -rw-r--r-- 1 pi pi  5028 Feb 12 07:57 pi_i2c.c
    -rw-r--r-- 1 pi pi  1333 Feb 12 07:57 pi_i2c.h
    -rw-r--r-- 1 pi pi   287 Feb 12 08:00 pi_i2c.lo
    -rw-r--r-- 1 pi pi  7088 Feb 12 08:00 pi_i2c.o
    -rw-r--r-- 1 pi pi  4557 Feb 12 07:57 pi_pwm.c
    -rw-r--r-- 1 pi pi  3813 Feb 12 07:57 pi_pwm.h
    -rw-r--r-- 1 pi pi   287 Feb 12 08:00 pi_pwm.lo
    -rw-r--r-- 1 pi pi  6712 Feb 12 08:00 pi_pwm.o
    -rw-r--r-- 1 pi pi  4515 Feb 12 07:57 pi_spi.c
    -rw-r--r-- 1 pi pi  1372 Feb 12 07:57 pi_spi.h
    -rw-r--r-- 1 pi pi   287 Feb 12 08:00 pi_spi.lo
    -rw-r--r-- 1 pi pi  7432 Feb 12 08:00 pi_spi.o
    pi@raspberrypi ~/ethrbh/temp/pihwm_ethrbh/pihwm_3/pihwm $ 
    pi@raspberrypi ~/ethrbh/temp/pihwm_ethrbh/pihwm_3/pihwm $ make install
    Making install in lib
    make[1]: Entering directory '/home/pi/ethrbh/temp/pihwm_ethrbh/pihwm_3/pihwm/lib'
    make[2]: Entering directory '/home/pi/ethrbh/temp/pihwm_ethrbh/pihwm_3/pihwm/lib'
     /bin/mkdir -p '/usr/local/lib'
     /bin/bash ../libtool   --mode=install /usr/bin/install -c   libpihwm.la '/usr/local/lib'
    libtool: install: /usr/bin/install -c .libs/libpihwm.so.0.0.0 /usr/local/lib/libpihwm.so.0.0.0
    /usr/bin/install: cannot create regular file `/usr/local/lib/libpihwm.so.0.0.0': Permission denied
    Makefile:340: recipe for target 'install-libLTLIBRARIES' failed
    make[2]: *** [install-libLTLIBRARIES] Error 1
    make[2]: Leaving directory '/home/pi/ethrbh/temp/pihwm_ethrbh/pihwm_3/pihwm/lib'
    Makefile:529: recipe for target 'install-am' failed
    make[1]: *** [install-am] Error 2
    make[1]: Leaving directory '/home/pi/ethrbh/temp/pihwm_ethrbh/pihwm_3/pihwm/lib'
    Makefile:357: recipe for target 'install-recursive' failed
    make: *** [install-recursive] Error 1
    pi@raspberrypi ~/ethrbh/temp/pihwm_ethrbh/pihwm_3/pihwm $ 
    pi@raspberrypi ~/ethrbh/temp/pihwm_ethrbh/pihwm_3/pihwm $ 
    pi@raspberrypi ~/ethrbh/temp/pihwm_ethrbh/pihwm_3/pihwm $ 
    pi@raspberrypi ~/ethrbh/temp/pihwm_ethrbh/pihwm_3/pihwm $ 
    pi@raspberrypi ~/ethrbh/temp/pihwm_ethrbh/pihwm_3/pihwm $ 

thanks for your help,
/Robi