1 Star 0 Fork 15

Janisa/OcrLiteNcnn

forked from benjaminwan/OcrLiteNcnn 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
build-default.bat 3.61 KB
一键复制 编辑 原始数据 按行查看 历史
benjaminwan 提交于 2021-10-13 16:05 . 改进编译脚本
@ECHO OFF
chcp 65001
cls
@SETLOCAL
mkdir win-BIN-CPU-x64
pushd win-BIN-CPU-x64
cmake -T "v141,host=x64" -A "x64" ^
-DCMAKE_INSTALL_PREFIX=install ^
-DCMAKE_BUILD_TYPE=Release -DOCR_OUTPUT="BIN" -DOCR_VULKAN="CPU" ..
cmake --build . --config Release -j %NUMBER_OF_PROCESSORS%
cmake --build . --config Release --target install
popd
mkdir win-BIN-CPU-Win32
pushd win-BIN-CPU-Win32
cmake -T "v141,host=x64" -A "Win32" ^
-DCMAKE_INSTALL_PREFIX=install ^
-DCMAKE_BUILD_TYPE=Release -DOCR_OUTPUT="BIN" -DOCR_VULKAN="CPU" ..
cmake --build . --config Release -j %NUMBER_OF_PROCESSORS%
cmake --build . --config Release --target install
popd
mkdir win-JNI-CPU-x64
pushd win-JNI-CPU-x64
cmake -T "v141,host=x64" -A "x64" ^
-DCMAKE_INSTALL_PREFIX=install ^
-DCMAKE_BUILD_TYPE=Release -DOCR_OUTPUT="JNI" -DOCR_VULKAN="CPU" ..
cmake --build . --config Release -j %NUMBER_OF_PROCESSORS%
cmake --build . --config Release --target install
popd
mkdir win-JNI-CPU-Win32
pushd win-JNI-CPU-Win32
cmake -T "v141,host=x64" -A "Win32" ^
-DCMAKE_INSTALL_PREFIX=install ^
-DCMAKE_BUILD_TYPE=Release -DOCR_OUTPUT="JNI" -DOCR_VULKAN="CPU" ..
cmake --build . --config Release -j %NUMBER_OF_PROCESSORS%
cmake --build . --config Release --target install
popd
mkdir win-CLIB-CPU-x64
pushd win-CLIB-CPU-x64
cmake -T "v141,host=x64" -A "x64" ^
-DCMAKE_INSTALL_PREFIX=install ^
-DCMAKE_BUILD_TYPE=Release -DOCR_OUTPUT="CLIB" -DOCR_VULKAN="CPU" ..
cmake --build . --config Release -j %NUMBER_OF_PROCESSORS%
cmake --build . --config Release --target install
popd
mkdir win-CLIB-CPU-Win32
pushd win-CLIB-CPU-Win32
cmake -T "v141,host=x64" -A "Win32" ^
-DCMAKE_INSTALL_PREFIX=install ^
-DCMAKE_BUILD_TYPE=Release -DOCR_OUTPUT="CLIB" -DOCR_VULKAN="CPU" ..
cmake --build . --config Release -j %NUMBER_OF_PROCESSORS%
cmake --build . --config Release --target install
popd
mkdir win-BIN-GPU-x64
pushd win-BIN-GPU-x64
cmake -T "v141,host=x64" -A "x64" ^
-DCMAKE_INSTALL_PREFIX=install ^
-DCMAKE_BUILD_TYPE=Release -DOCR_OUTPUT="BIN" -DOCR_VULKAN="GPU" ..
cmake --build . --config Release -j %NUMBER_OF_PROCESSORS%
cmake --build . --config Release --target install
popd
mkdir win-BIN-GPU-Win32
pushd win-BIN-GPU-Win32
cmake -T "v141,host=x64" -A "Win32" ^
-DCMAKE_INSTALL_PREFIX=install ^
-DCMAKE_BUILD_TYPE=Release -DOCR_OUTPUT="BIN" -DOCR_VULKAN="GPU" ..
cmake --build . --config Release -j %NUMBER_OF_PROCESSORS%
cmake --build . --config Release --target install
popd
mkdir win-JNI-GPU-x64
pushd win-JNI-GPU-x64
cmake -T "v141,host=x64" -A "x64" ^
-DCMAKE_INSTALL_PREFIX=install ^
-DCMAKE_BUILD_TYPE=Release -DOCR_OUTPUT="JNI" -DOCR_VULKAN="GPU" ..
cmake --build . --config Release -j %NUMBER_OF_PROCESSORS%
cmake --build . --config Release --target install
popd
mkdir win-JNI-GPU-Win32
pushd win-JNI-GPU-Win32
cmake -T "v141,host=x64" -A "Win32" ^
-DCMAKE_INSTALL_PREFIX=install ^
-DCMAKE_BUILD_TYPE=Release -DOCR_OUTPUT="JNI" -DOCR_VULKAN="GPU" ..
cmake --build . --config Release -j %NUMBER_OF_PROCESSORS%
cmake --build . --config Release --target install
popd
mkdir win-CLIB-GPU-x64
pushd win-CLIB-GPU-x64
cmake -T "v141,host=x64" -A "x64" ^
-DCMAKE_INSTALL_PREFIX=install ^
-DCMAKE_BUILD_TYPE=Release -DOCR_OUTPUT="CLIB" -DOCR_VULKAN="GPU" ..
cmake --build . --config Release -j %NUMBER_OF_PROCESSORS%
cmake --build . --config Release --target install
popd
mkdir win-CLIB-GPU-Win32
pushd win-CLIB-GPU-Win32
cmake -T "v141,host=x64" -A "Win32" ^
-DCMAKE_INSTALL_PREFIX=install ^
-DCMAKE_BUILD_TYPE=Release -DOCR_OUTPUT="CLIB" -DOCR_VULKAN="GPU" ..
cmake --build . --config Release -j %NUMBER_OF_PROCESSORS%
cmake --build . --config Release --target install
popd
@ENDLOCAL
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/Janisa/ocr-lite-ncnn.git
[email protected]:Janisa/ocr-lite-ncnn.git
Janisa
ocr-lite-ncnn
OcrLiteNcnn
master

搜索帮助