Professional Documents
Culture Documents
= Building OSCAM =
The OSCAM building (compilation) process is fairly straight forward. You get OSCAM
from
subversion (svn) then go to the directory where the OSCAM source code is and
compile
it by running `make`. In the usual case no extra programs and libraries are
required,
except `gcc` (or `clang`), `make`, libc and subversion to get the source code.
The full documentation of the build system and lots of examples is available
at [[http://www.streamboard.tv/oscam/browser/trunk/README.build]].
=== Building OSCAM with support for smartreader (libusb) === #libusb
To build OSCAM with libusb (smartreader) support on you have to
install libusb first. If your distribution do not have libusb
or libusb-dev package installed you have to install them or
install libusb from source.
Now to build OSCAM with libusb support you need the following commands:
{{{
#!sh
make USE_LIBUSB=1
# To build OSCAM with static libusb you have to change LIB_LIBUSB variable to point
to the static library
make USR_LIBUSB=1 LIB_USBLIB=/usr/local/lib/libusb-1.0.a
# Since OS X is kind of special to build with static libusb you have to use the
following command
make USE_LIBUSB=1 LIBUSB_LIB="/usr/local/lib/libusb-1.0.a -lobjc -framework IOKit
-framework CoreFoundation"
}}}
=== Building OSCAM with PCSC support === #pcsc
=== Building OSCAM with SH4 with STAPI support === #sh4_stapi
All of the examples posted in this page should work just fine. If there
is a special OS X case it'll be pointed out (libusb static build require
listing of additional libraries, see [#libusb].