File: using_cmake_build.txt

package info (click to toggle)
ccextractor 0.87+ds1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 10,064 kB
  • sloc: ansic: 172,772; makefile: 777; sh: 622; python: 319
file content (39 lines) | stat: -rw-r--r-- 1,244 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
For building CCExtractor using cmake follow steps below..

Step 1) Check you have right version of cmake installed. ( version >= 3.0.2 )
	We are using CMP0037 policy of cmake which was introduced in 3.0.0
	since we have tested our system only with cmake version 3.0.2, I would
	suggest to use 3.0.2 or higher version.


Step 2) create a separate directory where you want to build the target.
	In Unix you can do it using following commands.
	~> cd ccextractor
	~> mkdir build

Step 3) make the build system using cmake. Params in [] are optional and have
been explained later in the document.
	~> cmake [-DWITH_FFMPEG=ON] [-DWITH_OCR=ON] [-DWITH_SHARING=ON]
    [-DWITH_HARDSUBX=ON] ../src/

Step 4) Compile the code.
	~> make
	~> make install

Step 5) Use CCextractor as you would like


If you want to build CCExtractor with FFMpeg you need to pass
cmake -DWITH_FFMPEG=ON ../src/

If you want to build CCExtractor with OCR you need to pass
cmake -DWITH_OCR=ON ../src/

If you want to build CCExtractor with Sharing and Translating service:
cmake -DWITH_SHARING=ON ../src/

If you want to build CCExtractor with HARDSUBX support
cmake -DWITH_HARDSUBX=ON ../src/

Hint for looking all the things you want to set from outside
cmake -LAH ../src/