
Software Driver Installation
Linux
(c) Spectrum Instrumentation GmbH
35
Installing the library only without a kernel (for remote devices)
The kernel driver module only contains the basic hardware functions that are necessary to access locally installed card level products. The
main part of the driver is located inside a dynamically loadable library that is delivered with the driver. This library is available in two different
versions:
• spcm_linux_32b+6.so - supporting +.so.6 on 32 bit systems
• spcm_linux_64b+6.so - supporting +.so.6 on 64 bit systems
The matching version is installed automatically in the “
/usr/lib”
or “
/usr/lib64/”
or “
/usr/lib/x86_64-linux-gnu”
directory
(depending on your Linux distribution) by the kernel driver install script for card level products. The library is renamed for easy access to
libspcm_linux.so.
For digitizerNETBOX/generatorNETBOX/hybridNETBOX products and also for evaluating or using only the software simulated demo cards
the library is installed with a separate install script:
To access the driver library one must include the library in the compilation:
To start programming the cards under Linux please use the standard C/C++ examples which are all running under Linux and Windows.
Control Center
The Spectrum Control Center is also available for Linux and needs to be installed sep
-
arately. The features of the Control Center are described in a later chapter in deeper
detail. The Control Center has been tested under all Linux distributions for which Spec
-
trum delivers pre-compiled kernel modules. The following packages need to be in
-
stalled to run the Control Center:
• X-Server
• expat
• freetype
• fontconfig
• libpng
• libspcm_linux (the Spectrum linux driver library)
Installation
Use the supplied packages in either *.deb or *.rpm format found in the driver section
of the CD by double clicking the package file root rights from a X-Windows window.
The Control Center is installed under KDE, Gnome or Unity in the system/system tools
section. It may be located directly in this menu or under a „More Programs“ menu. The
final location depends on the used Linux distribution. The program itself is installed as
/usr/bin/spcmcontrol
and may be started directly from here.
Manual Installation
To manually install the Control Center, first extract the files from the rpm matching your
distribution:
You get the directory structure and the files contained in the rpm package. Copy the binary spcmcontrol to
/usr/bin
. Copy the .desktop
file to
/usr/share/applications
. Run ldconfig to update your systems library cache. Finally you can run spcmcontrol.
sh install_libonly.sh
gcc -o test_prg -lspcm_linux test.cpp
rpm2cpio spcmcontrol-{Version}.rpm > ~/spcmcontrol-{Version}.cpio
cd ~/
cpio -id < spcmcontrol-{Version}.cpio
Image 20: Device Manager showing a new Spectrum card
Содержание M2p.59 Series
Страница 190: ......