Open yuxx0218 opened 4 years ago
Ok. I switch to x86-Release configuration, and get the directory. However there are not any .exe file.
------ 生成 已启动: 项目: CMakeLists,配置: Release ------ [1/2] Linking CXX shared library chocrlite.dll FAILED: chocrlite.dll chocrlite.lib cmd.exe /C "cd . && "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E vs_link_dll --intdir=CMakeFiles\chocrlite.dir --rc=C:\PROGRA~2\WI3CF2~1\10\bin\100183~1.0\x86\rc.exe --mt=C:\PROGRA~2\WI3CF2~1\10\bin\100183~1.0\x86\mt.exe --manifests -- C:\PROGRA~2\MIB055~1\2019\COMMUN~1\VC\Tools\MSVC\1427~1.291\bin\Hostx86\x86\link.exe /nologo CMakeFiles\chocrlite.dir\src\chocrlite.cpp.obj CMakeFiles\chocrlite.dir\src\ocr.cpp.obj CMakeFiles\chocrlite.dir\src\ZUtil.cpp.obj CMakeFiles\chocrlite.dir\src\clipper.cpp.obj CMakeFiles\chocrlite.dir\src\RRLib.cpp.obj /out:chocrlite.dll /implib:chocrlite.lib /pdb:chocrlite.pdb /dll /version:5.1 /machine:X86 /INCREMENTAL:NO /VERSION:"5.1" -LIBPATH:E:\WORKS\Project\T20201~1\CH7566~1\NCNN_P~1\ocr\ncnn\lib -LIBPATH:E:\ocr4win\opencv\build-x86\lib\Release -LIBPATH:E:\ocr4win\opencv\build-x86\3rdparty\lib\Release ncnn.lib opencv_world3411.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ." LINK: command "C:\PROGRA~2\MIB055~1\2019\COMMUN~1\VC\Tools\MSVC\1427~1.291\bin\Hostx86\x86\link.exe /nologo CMakeFiles\chocrlite.dir\src\chocrlite.cpp.obj CMakeFiles\chocrlite.dir\src\ocr.cpp.obj CMakeFiles\chocrlite.dir\src\ZUtil.cpp.obj CMakeFiles\chocrlite.dir\src\clipper.cpp.obj CMakeFiles\chocrlite.dir\src\RRLib.cpp.obj /out:chocrlite.dll /implib:chocrlite.lib /pdb:chocrlite.pdb /dll /version:5.1 /machine:X86 /INCREMENTAL:NO /VERSION:5.1 -LIBPATH:E:\WORKS\Project\T20201~1\CH7566~1\NCNN_P~1\ocr\ncnn\lib -LIBPATH:E:\ocr4win\opencv\build-x86\lib\Release -LIBPATH:E:\ocr4win\opencv\build-x86\3rdparty\lib\Release ncnn.lib opencv_world3411.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTFILE:chocrlite.dll.manifest" failed (exit code 1181) with the following output: E:\WORKS\Project\t20201009 invoice number ocr\chineseocr_lite_20201023_ncnn\ncnn_project\ocr\out\build\x86-Release\LINK : fatal error LNK1181: 无法打开输入文件“ncnn.lib” ninja: build stopped: subcommand failed.
Following the README file in "ncnn_project" directory, I open "CMakeLists.txt" by VS. However, I got a "x64-Debug" directory in "./ocr/out/build", instead of "x86-Release".