File: INSTALL

package info (click to toggle)
codec2 0.8.1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 21,628 kB
  • sloc: ansic: 58,934; makefile: 841; objc: 826; asm: 331; python: 209; sh: 74
file content (58 lines) | stat: -rw-r--r-- 1,615 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
==========================
 Building and Installing
==========================

NOTES:
  - Builds against system libraries by default.
  - Has NSIS packaing support for Windows (WIN32) targets. *nix systems should
    rely on 'make install' as the packages (RPM & DEB) created by CPack are
    questionable.

To compile codec2 a basic development environment and cmake are required.
If they are not installed, at a command prompt, type

Debian/Ubuntu distros:
$ sudo apt-get install build-essential cmake 

Fedora/RH distros:
$ sudo dnf groupinstall "Development Tools" \
  "C Development Tools and Libraries"
$ sudo dnf install cmake samplerate-devel speexdsp-devel

To test the cmake build make a directory anywhere underneath (or outside of)
the source directory.

Linux command line example:

$ cd /path/to/codec2
$ mkdir build_linux
$ cd build_linux
$ cmake ../ 

Install prefix defaults to /usr/local, use CMAKE_INSTALL_PREFIX to override.

(if no errors)
$ make
(as root)
$ make install

=====================
 Windows
=====================

Unlike FreeDV (fdmdv2), codec2 is not currently provided as a separate
installer, instead the windows version uses a static build of codec2.

Additionally, while MSYS2+MinGW should work, windows builds are currently
produced by cross compiling from linux.

Install MinGW & the mysys shell
   + pwd -W prints true Win32 directory
   + I also installed emacs, "tortise svn", and "cmake", and built and installed speex

$ cd codec2-dev
$ mkdir build_win32
$ cd build_win32
$ cmake -DSPEEXDSP_INCLUDE_DIR=/usr/local/include/ -G "MSYS Makefiles" ..
$ make
$ make package