unispeech / unimrcp

Open source cross-platform implementation of MRCP protocol
http://www.unimrcp.org
Apache License 2.0
374 stars 165 forks source link

How to build with cmake #317

Closed poor1017 closed 1 year ago

poor1017 commented 1 year ago

Hi

I found a build directory, and I run cd build; cmake .., then I got the following error:

CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

-- The C compiler identification is GNU 10.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/gcc-10 - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Checking for one of the modules 'apr-1;apr'
-- Dynamic APR library not found, trying static
CMake Error at /opt/cmake-3.23.0/share/cmake-3.23/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find APR (missing: APR_LIBRARIES APR_INCLUDE_DIRS)
Call Stack (most recent call first):
  /opt/cmake-3.23.0/share/cmake-3.23/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  build/cmake/FindAPR.cmake:278 (find_package_handle_standard_args)
  CMakeLists.txt:34 (find_package)

-- Configuring incomplete, errors occurred!
See also "/root/Workstation/web/bak/unimrcp/CMakeFiles/CMakeOutput.log".

How to build unimrcp with cmake?

Thank you!

achaloyan commented 1 year ago

This question is answered on the discussion group.

https://groups.google.com/g/unimrcp/c/_-g4YaKgid4