sw icon indicating copy to clipboard operation
sw copied to clipboard

CMake Error for SW: Non-zero exit code

Open Sree0211 opened this issue 11 months ago • 10 comments

Describe the bug I tried to input tesseract lib into my Cmakelists for my OCR task. But I get sw:non-zero exit code: Access is denied.

This is the message I get.

Selecting Windows SDK version to target Windows 10.0.19045. The CXX compiler identification is MSVC 19.0.24215.1 Detecting CXX compiler ABI info Detecting CXX compiler ABI info - done Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe - skipped Detecting CXX compile features Detecting CXX compile features - done OpenCV ARCH: x64 OpenCV RUNTIME: vc14 OpenCV STATIC: OFF Found OpenCV: C:/opencv/build (found suitable version "4.2.0", minimum required is "4.2") Found OpenCV 4.2.0 in C:/opencv/build/x64/vc14/lib You might need to add C:\opencv\build\x64\vc14\bin to your PATH to be able to run your applications. Found SW: C:/SW Client
sw: processing dependencies sw command: C:/SW Client -shared -platform x64 -compiler msvc-19.0 -d C:/git/OCR_Test/Build/.sw/cmake -config d,msr,rwdi,r integrate -cmake-deps C:/git/OCR_Test/Build/.sw/cmake/sw.txt -cmake-file-version 9 CMake Error at C:/Users/sreenath/.sw/storage/etc/sw/static/SWConfig.cmake:267 (message): sw: non-zero exit code: Access is denied Call Stack (most recent call first): CMakeLists.txt:28 (sw_execute)

Configuring incomplete, errors occurred! See also "C:/git/OCR_Test/Build/CMakeFiles/CMakeOutput.log".

I even did sw --self-upgrade C:\SW Client>sw --self-upgrade Downloading signature file: https://software-network.org//client/sw-master-windows_x86_64-client.zip.sha512.sig Downloading the latest client: https://software-network.org//client/sw-master-windows_x86_64-client.zip Unpacking Replacing client

C:\SW Client>Waiting old program to exit... Success!

Could you please help me with this. I can paste mc CMakeLists if needed

Sree0211 avatar Mar 22 '24 13:03 Sree0211