2016-12-02 14:02:45 +05:30
|
|
|
For building CCExtractor using cmake follow steps below..
|
2014-11-25 15:00:39 +05:30
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
2016-11-28 19:53:09 -08:00
|
|
|
Step 2) create a separate directory where you want to build the target.
|
|
|
|
|
In Unix you can do it using following commands.
|
2014-11-25 15:00:39 +05:30
|
|
|
~> cd ccextractor
|
|
|
|
|
~> mkdir build
|
|
|
|
|
|
2018-05-15 12:39:23 +05:30
|
|
|
Step 3) make the build system using cmake. Params in [] are optional and have
|
|
|
|
|
been explained later in the document.
|
2025-08-24 23:23:44 +05:30
|
|
|
~> cmake [-DWITH_FFMPEG=ON] [-DWITH_OCR=ON]
|
2018-05-15 12:39:23 +05:30
|
|
|
[-DWITH_HARDSUBX=ON] ../src/
|
2014-11-25 15:00:39 +05:30
|
|
|
|
|
|
|
|
Step 4) Compile the code.
|
|
|
|
|
~> make
|
|
|
|
|
~> make install
|
|
|
|
|
|
|
|
|
|
Step 5) Use CCextractor as you would like
|
2014-11-26 17:53:12 +05:30
|
|
|
|
|
|
|
|
|
|
|
|
|
If you want to build CCExtractor with FFMpeg you need to pass
|
|
|
|
|
cmake -DWITH_FFMPEG=ON ../src/
|
|
|
|
|
|
2015-04-17 22:50:57 +06:00
|
|
|
If you want to build CCExtractor with OCR you need to pass
|
|
|
|
|
cmake -DWITH_OCR=ON ../src/
|
|
|
|
|
|
2018-05-15 12:39:23 +05:30
|
|
|
If you want to build CCExtractor with HARDSUBX support
|
2018-05-31 22:16:00 +05:30
|
|
|
cmake -DWITH_HARDSUBX=ON ../src/
|
2018-05-15 12:39:23 +05:30
|
|
|
|
2014-11-26 17:53:12 +05:30
|
|
|
Hint for looking all the things you want to set from outside
|
|
|
|
|
cmake -LAH ../src/
|