Coder Social home page Coder Social logo

Current Tesseract Build Fails about sw HOT 9 CLOSED

rweldin avatar rweldin commented on August 18, 2024
Current Tesseract Build Fails

from sw.

Comments (9)

egorpugin avatar egorpugin commented on August 18, 2024

I've fixed the issue and will ping when the new client build is available.
(I did some internal improvements and cmake integration was broken. I'll add this test to the suite, so it will be checked regularly.)

Thank you.

from sw.

egorpugin avatar egorpugin commented on August 18, 2024

Please update sw and try again.
sw --self-upgrade

from sw.

rweldin avatar rweldin commented on August 18, 2024

from sw.

rweldin avatar rweldin commented on August 18, 2024

Hello Egor, I'm still having issues building the current version of Tesseract after upgrading sw. Same options as noted above. If you need any other information please let me know. Thanks!

[218/219] C:/Users/AdminWeldin/.sw/storage/tmp/cfg/105254/loc.sw.self.4794de-0.0.16.dll
Exception in file D:/dev/cppan2/client2/src/sw/core/build.cpp:681, function loadPackages: cannot load package org.sw.demo.facebook.zstd.zstd-1.4.4 with current settings
{"native":{"configuration":"debug","library":"shared","mt":"false","program":{"asm":"com.Microsoft.VisualStudio.VC.ml-19.16.27039","c":"com.Microsoft.VisualStudio.VC.cl-19.16.27039","cpp":"com.Microsoft.VisualStudio.VC.cl-19.16.27039","lib":"com.Microsoft.VisualStudio.VC.lib-19.16.27039","link":"com.Microsoft.VisualStudio.VC.link-19.16.27039"},"stdlib":{"c":"com.Microsoft.Windows.SDK.ucrt-10.0.18362.0","cpp":"com.Microsoft.VisualStudio.VC.libcpp-19.16.27039","kernel":"com.Microsoft.Windows.SDK.um-10.0.18362.0"}},"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
available targets:
sw command: C:/.sw/sw.exe -shared -platform x64 -compiler msvc-19.16 -d R:/tesseract-master/win64/.sw/cmake -config d,msr,rwdi,r integrate -cmake-deps R:/tesseract-master/win64/.sw/cmake/sw.txt -cmake-file-version 4
CMake Error at C:/Users/AdminWeldin/.sw/storage/etc/sw/static/SWConfig.cmake:227 (message):
sw: non-zero exit code: 1
Call Stack (most recent call first):
CMakeLists.txt:213 (sw_execute)

-- Configuring incomplete, errors occurred!
See also "R:/tesseract-master/win64/CMakeFiles/CMakeOutput.log".

sw --version
sw.client.sw version 1.0.0
git revision 1ea6bfe
assembled on
20.04.2020 17:50:02 UTC
20.04.2020 12:50:02 Central Daylight Time

from sw.

egorpugin avatar egorpugin commented on August 18, 2024

I tried your exact command with VS2017, works for me. Probably sw is not able to detect compiler on your system or something like this.

Update sw client again and do following:
Add -DSW_DEBUG=1 parameter to cmake command line. You'll see exact sw commands.
Copy sw command, add -trace parameter and run it. Post logs here.

from sw.

rweldin avatar rweldin commented on August 18, 2024

from sw.

egorpugin avatar egorpugin commented on August 18, 2024

Seems I tested wrong case locally (sw cmake tess integration example).
I've just tried usual tesseract master as you do and it also works with log below.
(VS build of training tools does not work because of -DBUILD_SHARED_LIBS=1, they use static linking, -DBUILD_SHARED_LIBS=0 helps.)

Is it possible that cmake uses old sw? Maybe you have it somewhere on the system?

d:\dev\tesseract\win64>cmake -G "Visual Studio 15 2017 Win64" -DBUILD_SHARED_LIBS=1 -DSW_BUILD_SHARED_LIBS=0 ..
-- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.18363.
-- The C compiler identification is MSVC 19.16.27039.0
-- The CXX compiler identification is MSVC 19.16.27039.0
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
Configuring tesseract version 5.0.0-alpha-648-gcdebe...
-- Setting build type to 'Release' as none was specified.
-- target changed from "" to "auto"
-- Detected CPU: skylake-avx512
-- Performing Test check_cxx_compiler_flag__arch_AVX2
-- Performing Test check_cxx_compiler_flag__arch_AVX2 - Success
-- Found SW: D:/dev/path/links/sw.exe
-- sw: processing dependencies
[177/179] D:/dev/swst/pkg/67/22/d8fc/src/sdir/sw.cpp
[178/179] D:/dev/swst/tmp/cfg/105254/loc.sw.self.903a19-0.0.16.dll
Performing 4 check(s): org.sw.demo.gnome.pango.pangocairo-1.44.7 (pango), config 163530
Performing 4 check(s): org.sw.demo.gnome.pango.pangocairo-1.44.7 (pango), config 762157
Performing 4 check(s): org.sw.demo.gnome.pango.pangocairo-1.44.7 (pango), config 184365
Performing 4 check(s): org.sw.demo.gnome.pango.pangocairo-1.44.7 (pango), config 371634
[183/221] D:/dev/swst/pkg/16/ee/7042/src/sdir/sw.cpp
[192/221] D:/dev/swst/pkg/ef/91/56e5/src/sdir/sw.cpp
[202/221] D:/dev/swst/tmp/cfg/105254/loc.sw.self.807083-0.0.16.dll
[219/221] D:/dev/swst/tmp/cfg/105254/loc.sw.self.a262c2-0.0.16.dll
Performing 16 check(s): org.sw.demo.cairographics.cairo-1.17.2 (cairo), config 163530
Performing 16 check(s): org.sw.demo.cairographics.cairo-1.17.2 (cairo), config 762157
Performing 16 check(s): org.sw.demo.cairographics.cairo-1.17.2 (cairo), config 184365
Performing 16 check(s): org.sw.demo.cairographics.cairo-1.17.2 (cairo), config 371634
Performing 8 check(s): org.sw.demo.unicode.icu.stub.common-66.1.0 (common), config 163530
Performing 8 check(s): org.sw.demo.unicode.icu.stub.common-66.1.0 (common), config 762157
Performing 8 check(s): org.sw.demo.unicode.icu.stub.common-66.1.0 (common), config 184365
Performing 8 check(s): org.sw.demo.unicode.icu.stub.common-66.1.0 (common), config 371634
Performing 23 check(s): org.sw.demo.freedesktop.fontconfig.fontconfig-2.13.92 (fontconfig), config 163530
Performing 23 check(s): org.sw.demo.freedesktop.fontconfig.fontconfig-2.13.92 (fontconfig), config 762157
Performing 23 check(s): org.sw.demo.freedesktop.fontconfig.fontconfig-2.13.92 (fontconfig), config 184365
Performing 23 check(s): org.sw.demo.freedesktop.fontconfig.fontconfig-2.13.92 (fontconfig), config 371634
Performing 17 check(s): org.sw.demo.freedesktop.pixman-0.40.0 (pixman), config 163530
Performing 17 check(s): org.sw.demo.freedesktop.pixman-0.40.0 (pixman), config 762157
Performing 17 check(s): org.sw.demo.freedesktop.pixman-0.40.0 (pixman), config 184365
Performing 17 check(s): org.sw.demo.freedesktop.pixman-0.40.0 (pixman), config 371634
Performing 90 check(s): org.sw.demo.gnome.glib.glib-2.64.1 (glib), config 163530
Performing 90 check(s): org.sw.demo.gnome.glib.glib-2.64.1 (glib), config 762157
Performing 90 check(s): org.sw.demo.gnome.glib.glib-2.64.1 (glib), config 184365
Performing 90 check(s): org.sw.demo.gnome.glib.glib-2.64.1 (glib), config 371634
Performing 6 check(s): org.sw.demo.gnu.gettext.intl-0.20.1 (intl), config 163530
Performing 6 check(s): org.sw.demo.gnu.gettext.intl-0.20.1 (intl), config 762157
Performing 6 check(s): org.sw.demo.gnu.gettext.intl-0.20.1 (intl), config 184365
Performing 6 check(s): org.sw.demo.gnu.gettext.intl-0.20.1 (intl), config 371634
Performing 6 check(s): org.sw.demo.pcre.pcre8-8.44.0 (pcre), config 163530
Performing 6 check(s): org.sw.demo.pcre.pcre8-8.44.0 (pcre), config 762157
Performing 6 check(s): org.sw.demo.pcre.pcre8-8.44.0 (pcre), config 184365
Performing 6 check(s): org.sw.demo.pcre.pcre8-8.44.0 (pcre), config 371634
Performing 4 check(s): org.sw.demo.libffi-3.3.0 (libffi), config 163530
Performing 4 check(s): org.sw.demo.libffi-3.3.0 (libffi), config 762157
Performing 4 check(s): org.sw.demo.libffi-3.3.0 (libffi), config 184365
Performing 4 check(s): org.sw.demo.libffi-3.3.0 (libffi), config 371634
-- Performing Test COMPILER_SUPPORTS_MARCH_NATIVE
-- Performing Test COMPILER_SUPPORTS_MARCH_NATIVE - Failed
-- Looking for include file dlfcn.h
-- Looking for include file dlfcn.h - not found
-- Looking for include file inttypes.h
-- Looking for include file inttypes.h - found
-- Looking for include file limits.h
-- Looking for include file limits.h - found
-- Looking for include file malloc.h
-- Looking for include file malloc.h - found
-- Looking for include file memory.h
-- Looking for include file memory.h - found
-- Looking for include file stdbool.h
-- Looking for include file stdbool.h - found
-- Looking for include file stdint.h
-- Looking for include file stdint.h - found
-- Looking for include file stdlib.h
-- Looking for include file stdlib.h - found
-- Looking for include file string.h
-- Looking for include file string.h - found
-- Looking for include file sys/ipc.h
-- Looking for include file sys/ipc.h - not found
-- Looking for include file sys/shm.h
-- Looking for include file sys/shm.h - not found
-- Looking for include file sys/stat.h
-- Looking for include file sys/stat.h - found
-- Looking for include file sys/types.h
-- Looking for include file sys/types.h - found
-- Looking for include file sys/wait.h
-- Looking for include file sys/wait.h - not found
-- Looking for include file unistd.h
-- Looking for include file unistd.h - not found
-- Looking for include file cairo/cairo-version.h
-- Looking for include file cairo/cairo-version.h - not found
-- Looking for include file CL/cl.h
-- Looking for include file CL/cl.h - not found
-- Looking for include file OpenCL/cl.h
-- Looking for include file OpenCL/cl.h - not found
-- Looking for include file pango-1.0/pango/pango-features.h
-- Looking for include file pango-1.0/pango/pango-features.h - not found
-- Looking for include file tiffio.h
-- Looking for include file tiffio.h - not found
-- Looking for include file unicode/uchar.h
-- Looking for include file unicode/uchar.h - not found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of long long int
-- Check size of long long int - done
-- Check size of off_t
-- Check size of off_t - done
-- Check size of mbstate_t
-- Check size of mbstate_t - done
-- Check size of wchar_t
-- Check size of wchar_t - done
-- Check size of _Bool
-- Check size of _Bool - done
-- Check if the system is big endian
-- Searching 16 bit integer
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
--
-- General configuration for Tesseract 5.0.0-alpha-648-gcdebe
-- --------------------------------------------------------
-- Build type: Release
-- Compiler: MSVC
-- Used standard: C++17
-- CXX compiler options: /DWIN32 /D_WINDOWS /W3 /GR /EHsc /utf-8 /MP /MD /O2 /Ob2 /DNDEBUG
-- Linker options: /machine:x64
-- Install directory: C:/Program Files/tesseract
-- Architecture flags: /arch:AVX2
-- Vector unit list: sse2;sse3;ssse3;sse4.1;sse4.2;avx;fma;bmi2;avx2;avx512f;avx512vl;avx512cd;avx512dq;avx512bw
-- HAVE_AVX: ON
-- HAVE_AVX2: ON
-- HAVE_FMA: ON
-- HAVE_SSE4_1: ON
-- MARCH_NATIVE_OPT: OFF
-- simd_flags:  -DHAVE_SSE4_1 -DHAVE_AVX -DHAVE_FMA -DHAVE_AVX2 -DHAVE_AVX512F -DHAVE_AVX512VL -DHAVE_AVX512CD -DHAVE_AVX512DQ -DHAVE_AVX512BW
-- --------------------------------------------------------
-- Build with sw [SW_BUILD]: ON
-- Build with openmp support [OPENMP_BUILD]: OFF
-- Disable disable graphics (ScrollView) [GRAPHICS_DISABLED]: OFF
-- Disable the legacy OCR engine [DISABLED_LEGACY_ENGINE]: OFF
-- Build training tools [BUILD_TRAINING_TOOLS]: ON
-- Build tests [BUILD_TESTS]: OFF
-- Use system ICU Library [USE_SYSTEM_ICU]: OFF
-- --------------------------------------------------------
--
-- Configuring done
-- Generating done
-- Build files have been written to: D:/dev/tesseract/win64

from sw.

rweldin avatar rweldin commented on August 18, 2024

Egor, I did not have another version of sw.exe on my computer. I ended up deleting the existing storage directory and started from scratch; the current version of sw worked fine. If you'd like me to do any additional testing please let me know. Thank you!

from sw.

egorpugin avatar egorpugin commented on August 18, 2024

No, it's ok.
Feel free to report any new issues.

from sw.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.