forked from guyt101z/codec2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.cmake
41 lines (33 loc) · 1.17 KB
/
README.cmake
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
The CMake configuration for codec2 should be considered experimental at
this time but has been thouroughly tested on Fedora Linux and cross-compiling
from linux to windows with mingw and has many advanages over the autotools
config.
- Builds against system libraries (default).
- Has experimental NSIS packaing support for Windows (WIN32) targets. *nix
systems should rely on 'make install' as the packages (RPM & DEB) created by
CPack are questionable.
==========================
Building and installing
==========================
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 ../ (defaults to /usr/local, use CMAKE_INSTALL_PREFIX to override)
(if no errors)
$ make
(as root)
$ make install
=====================
Win32
=====================
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