30
M2i.30xx / M2i.30xx-exp Manual
Linux
Software Driver Installation
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 sepa-
rately. The features of the Control Center are described in a later chapter in deeper de-
tail. The Control Center has been tested under all Linux distributions for which Spectrum
delivers pre-compiled kernel modules. The following packages need to be installed 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.
Troubleshooting
If you get a message like the following after starting spcmcontrol:
Run ldd spcm_control in the directory where spcm_control resides to see the dependencies of the program. The output may look like this:
As seen in the output, one of the libraries isn’t found inside the library cache of the system. Be sure that this library has been properly installed.
You may then run ldconfig. If this still doesn’t help please add the library path to /etc/ld.so.conf and run ldconfig again.
If the libspcm_linux.so is quoted as missing please make sure that you have installed the card driver properly before. If any other library is
stated as missing please install the matching package of your distribution.
gcc -o test_prg -lspcm_linux test.cpp
rpm2cpio spcmcontrol-{Version}.rpm > ~/spcmcontrol-{Version}.cpio
cd ~/
cpio -id < spcmcontrol-{Version}.cpio
spcm_control: error while loading shared libraries: libz.so.1: cannot open shared object file
: No such file
or directory
libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x4019e000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x401ad000)
libz.so.1 => not found
libdl.so.2 => /lib/libdl.so.2 (0x402ba000)
libpthread.so.0 => /lib/tls/libpthread.so.0 (0x402be000)
+.so.6 => /usr/lib/+.so.6 (0x402d0000)