You can freely distribute the application you created by using the driver.
To execute the application you created by using API-GPIB(LNX) on another
environment, the following minimum set of files are required.
File Name |
Usage |
config/contec_gpib.conf |
Configuration file |
config/contec_gpib_start.sh |
Script for starting driver |
config/contec_gpib_stop.sh |
Script for stopping driver |
config/cgpib.o |
Device driver |
/usr/lib/libcgpib.so |
Shared library |
/usr/lib/libcgpib.so.1.0 |
Shared library |
Please put the configuration file and device
driver in the same path as script for starting driver.
If you edit the script for starting driver to specify full path of device
driver and so on, it doesn't matter where the configuration file and device
driver are put.
It is necessary to copy the configuration file to /proc after starting driver with insmod command.
The shared library get usable by performing
ldconfig command after libcgpib.so.1.0 is copied to /usr/lib and the symbolic
link to /usr/lib/libcgpib.so is made.
Please refer to treatment of gpib/library/Makefile for details.
For Linux driver, there is version of kernel
in driver. When insmod command is executed, it checks the version. So
the device driver is divided into several files for different version
of kernel.
There is no problem when the versions of kernel are same between developing
environment and runtime environment. It is necessary to pay attention
when the version of developing environment is different from runtime environment.
Please use the device module conforming to runtime environment.
When it is necessary to start driver on every time that system is started, please set to start device driver in /etc/rc.d/rc.local, etc.