[nmglug] Parapin

a akaluta at taosnet.com
Fri Jun 26 12:24:55 PDT 2009



Looking to install parapin as USER SPACE C LIBRARY MODE. Following are
segments of: INSTALL,MAKE,MAKEFILE-2.6 AND MAKE RESULTS IN TERMINAL,of
what I have tried.Can anyone set me on the right track?
Antonio



----------------------------------------------------------------------------
--------------------------------------------------------------------------------
	Build and Install instructions for the parapin system

			     Version 1.0

	      Al Hooton (ahooton at users.sourceforge.net)



------------------------------------------------------------------

NOTE: Support for 2.4.x kernels in parapin is now deprecated,
and will be removed in the next production release after 1.5.  If you
build for a 2.4.x kernel you will receive a deprecation warning, but
the build should still succeed.  If for some reason you can not
upgrade to 2.6 kernels, please plan to use an archived version of
parapin in the future.

------------------------------------------------------------------


	 Building and installing parapin is fairly simple, but there
are a few things you must do prior to typing "make".  These steps are
necessary to deal with differences in parapin to support running on
both 2.4 kernels and 2.6 kernels.

	 The parapin system can be built for kernel trees other than
the one that is currently booted on your machine.  However, this
*requires* editing the main Makefile as described below.
INSTALL
	 Note that you do *not* have be root to build parapin, but you
will most likely need to be root in order to install the libraries and
modules in their standard system locations.

Version-specific setup scripts
------------------------------
	 The instructions below are slightly different if you are
running 2.4 kernels or 2.6 kernels:

2.6 kernels: run "setup-2.6.sh"
# ./setup-2.6.sh

2.4 kernels: run "setup-2.4.sh"
# ./setup-2.4.sh

         The "setup-*" scripts copy "Makefile-<kernel-version>" to
"Makefile".  If you run a setup script a second time, it will ask
before trying overwrite "Makefile".  There should not be any reason to
run one of these scripts a second time, but if you find a need to do
so be careful -- any edits you have made to Makefile so parapin will
build on your system will be lost.
------------------------------------------------------------------------------
-------------------------------------------------------------------------------
Makefile

#
#
# Parapin Makefile-2.6 -- build parapin for 2.6 kernels
#
# original author Jeremy Elson, First released 30 March 2000
#
# Currently maintained by Al Hooton (al at hootons.org)
#
# $Id: Makefile-2.6,v 1.10 2007/12/16 17:38:17 ahooton Exp $
#

# Set this to be the location of your Linux kernel header files (and
# modules, if you're using the kernel modules).  If you are building
# for the kernel you are running, the lines below with "uname" in the
# paths will usually work.  If you're installing the libs or kernel
modules,
# you will have to run make as root.  If you are building for a
# different kernel than you are running, you will need to edit these
# paths to explicitly point to the target kernel source and lib trees.
# You may also need to edit these if you're running an SMP
# kernel on some distros.
LINUX_SRC = /usr/src/linux-`uname -r`/
LINUX_MODULES := /lib/modules/`uname -r`/kernel/
------------------------------------------------------------------------------
------------------------------------------------------------------------------

Makefile-2.6
# $Id: Makefile-2.6,v 1.10 2007/12/16 17:38:17 ahooton Exp $
#

# Set this to be the location of your Linux kernel header files (and
# modules, if you're using the kernel modules).  If you are building
# for the kernel you are running, the lines below with "uname" in the
# paths will usually work.  If you're installing the libs or kernel
modules,
# you will have to run make as root.  If you are building for a
# different kernel than you are running, you will need to edit these
# paths to explicitly point to the target kernel source and lib trees.
# You may also need to edit these if you're running an SMP
# kernel on some distros.
LINUX_SRC = /usr/src/linux-`uname -r`/
LINUX_MODULES := /lib/modules/`uname -r`/kernel/
------------------------------------------------------------------------------
------------------------------------------------------------------------------


MAKE TERMINAL

a at HillBilly-HotRod:~/parapin/parapin-1.5.1-beta1$ make
find: `/usr/src/linux-2.6.28-13-generic/include/linux': No such file or
directory
cc -O2 -g -Wall  -c parapin.c;
ar -cr libparapin.a parapin.o
cc -O2 -g -Wall  -I. -L. examples/inputtest.c -o examples/inputtest
-lparapin
cc -O2 -g -Wall  -I. -L. examples/outputtest.c -o examples/outputtest
-lparapin
examples/outputtest.c: In function ‘main’:
examples/outputtest.c:51: warning: ignoring return value of ‘fgets’,
declared with attribute warn_unused_result
cc -O2 -g -Wall  -I. -L. examples/adc0831.c -o examples/adc0831
-lparapin
cc -O2 -g -Wall  -I. -L. examples/ppdrv-test.c -o examples/ppdrv-test
-lparapin
a at HillBilly-HotRod:~/parapin/parapin-1.5.1-beta1$ cp Makefile-2.6
Makefile
a at HillBilly-HotRod:~/parapin/parapin-1.5.1-beta1$ make
find: `/usr/src/linux-2.6.28-13-generic/include/linux': No such file or
directory
make: Nothing to be done for `default'.




More information about the nmglug mailing list