2: 2015-12-02 (Wed) 18:27:35 iseki ![]() |
Cur: 2015-12-03 (Thu) 03:07:28 iseki ![]() |
||
---|---|---|---|
Line 1: | Line 1: | ||
** YUV変換用ライブラリ [#k3fade91] | ** YUV変換用ライブラリ [#k3fade91] | ||
- | *** Install [#w840d748] | + | - https://code.google.com/p/libyuv/ |
#br | #br | ||
- | mkdir out | ||
- | cd out | ||
- | cmake -DCMAKE_INSTALL_PREFIX="/usr/lib" -DCMAKE_BUILD_TYPE="Release" -DCMAKE_CXX_FLAGS="-fPIC" .. | ||
- | make | ||
- | make install | ||
- | vi CMakeFiles/yuv.dir/link.txt | + | *** 通常の Install [#w840d748] |
+ | # svn checkout http://libyuv.googlecode.com/svn/trunk/ libyuv-read-only | ||
+ | # svn checkout http://libyuv.googlecode.com/svn/trunk/ libyuv-read-only | ||
+ | # mkdir out | ||
+ | # cd out | ||
+ | # cmake -DCMAKE_INSTALL_PREFIX="/usr/lib" -DCMAKE_BUILD_TYPE="Release" -DCMAKE_CXX_FLAGS="-fPIC" .. | ||
+ | # make | ||
+ | # make install | ||
+ | -DCMAKE_CXX_FLAGS="-fPIC" は後で共有ライブラリを作るためのもの | ||
- | /usr/bin/ar cr libyuv.a | + | *** 共有ライブラリ を作る [#hb2e1558] |
- | + | # vi CMakeFiles/yuv.dir/link.txt | |
- | + | リンクコマンドをコピペ | |
- | /usr/bin/ld -shared -o libyuv.so CMakeFiles/yuv.dir/source/compare.cc.o CMakeFiles/yuv.dir/source/compare_common.cc.o CMakeFiles/yuv.dir/source/compare_neon.cc.o CMakeFiles/yuv.dir/source/compare_gcc.cc.o CMakeFiles/yuv.dir/source/compare_win.cc.o CMakeFiles/yuv.dir/source/convert.cc.o CMakeFiles/yuv.dir/source/convert_argb.cc.o CMakeFiles/yuv.dir/source/convert_from.cc.o CMakeFiles/yuv.dir/source/convert_from_argb.cc.o CMakeFiles/yuv.dir/source/convert_jpeg.cc.o CMakeFiles/yuv.dir/source/convert_to_argb.cc.o CMakeFiles/yuv.dir/source/convert_to_i420.cc.o CMakeFiles/yuv.dir/source/cpu_id.cc.o CMakeFiles/yuv.dir/source/mjpeg_decoder.cc.o CMakeFiles/yuv.dir/source/mjpeg_validate.cc.o CMakeFiles/yuv.dir/source/planar_functions.cc.o CMakeFiles/yuv.dir/source/rotate.cc.o CMakeFiles/yuv.dir/source/rotate_argb.cc.o CMakeFiles/yuv.dir/source/rotate_mips.cc.o CMakeFiles/yuv.dir/source/rotate_neon.cc.o CMakeFiles/yuv.dir/source/row_any.cc.o CMakeFiles/yuv.dir/source/row_common.cc.o CMakeFiles/yuv.dir/source/row_mips.cc.o CMakeFiles/yuv.dir/source/row_neon.cc.o CMakeFiles/yuv.dir/source/row_gcc.cc.o CMakeFiles/yuv.dir/source/row_win.cc.o CMakeFiles/yuv.dir/source/scale.cc.o CMakeFiles/yuv.dir/source/scale_any.cc.o CMakeFiles/yuv.dir/source/scale_argb.cc.o CMakeFiles/yuv.dir/source/scale_common.cc.o CMakeFiles/yuv.dir/source/scale_mips.cc.o CMakeFiles/yuv.dir/source/scale_neon.cc.o CMakeFiles/yuv.dir/source/scale_gcc.cc.o CMakeFiles/yuv.dir/source/scale_win.cc.o CMakeFiles/yuv.dir/source/video_common.cc.o | + | リンクコマンドの ar cr libyuv.a を ld -shared -o libyuv.so に変えて実行 |
- | + | # cp libyuv.so を /usr/local/lib にコピー | |
- | + | # ldconfig | |
- | grep Version * | + | # cp README.chromium /usr/lib64/pkgconfig/libyuv.pc |
- | RADME.chromium | + |
- Backup list of libyuv
- Backup diff of libyuv(No. All)
- 1: 2015-12-02 (Wed) 18:23:07 iseki
- 2: 2015-12-02 (Wed) 18:27:35 iseki
- Cur: 2015-12-03 (Thu) 03:07:28 iseki