Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

msvc debug: fix wrong lib name in generated pkgconfig file #4008

Merged

Conversation

autoantwort
Copy link
Contributor

Fixes #4007

@zdenop
Copy link
Contributor

zdenop commented Jan 31, 2023

git fetch origin pull/4008/head:pr4008
git checkout pr4008
cmake -Bbuild.msvc_pr -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%INSTALL_DIR% -DCMAKE_PREFIX_PATH=%INSTALL_DIR% -DSW_BUILD=OFF -DBUILD_SHARED_LIBS=ON -DENABLE_LTO=ON -DFAST_FLOAT=ON -DOPENMP_BUILD=ON

produce error:

-- Setting policy CMP0091 to NEW
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.19042.
-- Configuring tesseract version 5.3.0-18-g68025...
-- IPO / LTO supported
-- CMAKE_SYSTEM_PROCESSOR=<AMD64>
>> OpenMP_FOUND TRUE version: 2.0
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
--
-- General configuration for Tesseract 5.3.0-18-g68025
-- --------------------------------------------------------
-- Build type: Release 64 bits
-- Compiler: MSVC
-- Used standard: C++17
-- CXX compiler options: /DWIN32 /D_WINDOWS /W3 /GR /EHsc /utf-8 /MP -openmp:llvm /O2 /Ob2 /DNDEBUG /wd4244 /wd4305 /wd4267 /wd4251 /wd4275 /wd4005 /wd4068
-- Compile definitions = HAVE_AVX;HAVE_AVX2;HAVE_AVX512F;HAVE_FMA;HAVE_SSE4_1;_CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_DEPRECATE;CMAKE_BUILD;HAVE_CONFIG_H
-- Linker options: /machine:x64
-- Install directory: F:/win64
-- HAVE_AVX: ON
-- HAVE_AVX2: ON
-- HAVE_AVX512F: ON
-- HAVE_FMA: ON
-- HAVE_SSE4_1: ON
-- MARCH_NATIVE_OPT:
-- HAVE_NEON: FALSE
-- Link-time optimization: TRUE
-- --------------------------------------------------------
-- Build with sw [SW_BUILD]: OFF
-- Build with openmp support [OPENMP_BUILD]: ON
-- Build with libarchive support [HAVE_LIBARCHIVE]: ON
-- Build with libcurl support [HAVE_LIBCURL]: ON
-- Enable float for LSTM [FAST_FLOAT]: ON
-- 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
-- Install tesseract configs [INSTALL_CONFIGS]: ON
-- --------------------------------------------------------
--
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Found the following ICU libraries:
--   uc (required): F:/win64/lib/icuuc.lib
--   i18n (required): F:/win64/lib/icuin.lib
>> ICU_FOUND TRUE 67.1 F:/win64/lib/icuuc.lib;F:/win64/lib/icuin.lib F:/win64/include
-- Configuring done
CMake Error in CMakeLists.txt:
  Evaluation file to be written multiple times with different content.  This
  is generally caused by the content evaluating the configuration type,
  language, or location of object files:

   F:/Projects/Community/tesseract/build.msvc_pr/tesseract.pc


CMake Error in CMakeLists.txt:
  Evaluation file to be written multiple times with different content.  This
  is generally caused by the content evaluating the configuration type,
  language, or location of object files:

   F:/Projects/Community/tesseract/build.msvc_pr/tesseract.pc


CMake Error in CMakeLists.txt:
  Evaluation file to be written multiple times with different content.  This
  is generally caused by the content evaluating the configuration type,
  language, or location of object files:

   F:/Projects/Community/tesseract/build.msvc_pr/tesseract.pc


CMake Error in CMakeLists.txt:
  Evaluation file to be written multiple times with different content.  This
  is generally caused by the content evaluating the configuration type,
  language, or location of object files:

   F:/Projects/Community/tesseract/build.msvc_pr/tesseract.pc


CMake Error in CMakeLists.txt:
  Evaluation file to be written multiple times with different content.  This
  is generally caused by the content evaluating the configuration type,
  language, or location of object files:

   F:/Projects/Community/tesseract/build.msvc_pr/tesseract.pc


CMake Error in CMakeLists.txt:
  Evaluation file to be written multiple times with different content.  This
  is generally caused by the content evaluating the configuration type,
  language, or location of object files:

   F:/Projects/Community/tesseract/build.msvc_pr/tesseract.pc


CMake Error in CMakeLists.txt:
  Evaluation file to be written multiple times with different content.  This
  is generally caused by the content evaluating the configuration type,
  language, or location of object files:

   F:/Projects/Community/tesseract/build.msvc_pr/tesseract.pc


CMake Error in CMakeLists.txt:
  Evaluation file to be written multiple times with different content.  This
  is generally caused by the content evaluating the configuration type,
  language, or location of object files:

   F:/Projects/Community/tesseract/build.msvc_pr/tesseract.pc


CMake Error in CMakeLists.txt:
  Evaluation file to be written multiple times with different content.  This
  is generally caused by the content evaluating the configuration type,
  language, or location of object files:

   F:/Projects/Community/tesseract/build.msvc_pr/tesseract.pc


-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.

@autoantwort autoantwort force-pushed the fix-msvc-debug-pkgconfig-file branch from 68025aa to 4305f44 Compare January 31, 2023 12:42
@autoantwort
Copy link
Contributor Author

This should be fixed now :)

@zdenop zdenop merged commit 1c09782 into tesseract-ocr:main Jan 31, 2023
@zdenop
Copy link
Contributor

zdenop commented Jan 31, 2023

thanks.

@autoantwort autoantwort deleted the fix-msvc-debug-pkgconfig-file branch February 1, 2023 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

msvc debug generates wrong pkgconfig file
2 participants