How to build with cmake

32 views
Skip to first unread message

陈宇

unread,
Apr 28, 2023, 10:40:42 AM4/28/23
to UniMRCP
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!


How to build unimrcp with cmake?

Thank you, everybody!

Arsen Chaloyan

unread,
Apr 28, 2023, 6:10:13 PM4/28/23
to uni...@googlegroups.com
Hi,

The build directory in the source tree serves a bit different purpose. If you want to have a separate build directory for cmake, then I'd suggest the following procedure:
  • mkdir .build
  • cd .build
  • cmake .. -DAPR_LIBRARY=/usr/local/apr/lib/libapr-1.so -DAPR_INCLUDE_DIR=/usr/local/apr/include/apr-1 -DAPU_LIBRARY=/usr/local/apr/lib/libaprutil-1.so -DAPU_INCLUDE_DIR=/usr/local/apr/include/apr-1

--
You received this message because you are subscribed to the Google Groups "UniMRCP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to unimrcp+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/unimrcp/1e25f4ec-c253-4cb4-a0d2-47793b678957n%40googlegroups.com.


--
Arsen Chaloyan
Author of UniMRCP
http://www.unimrcp.org
Reply all
Reply to author
Forward
0 new messages