From bd46483efa5cd1d6ba1c1b5bfdf622350f4ec217 Mon Sep 17 00:00:00 2001 From: KangLin Date: Mon, 5 Apr 2021 11:23:21 +0800 Subject: [PATCH] Modify INSTALL --- INSTALL | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/INSTALL b/INSTALL index 40ce960..2245e27 100644 --- a/INSTALL +++ b/INSTALL @@ -55,6 +55,8 @@ examples and documentation. III. BUILD +1) Use autoconfigure build + If you are sure that you system is ready for the build (see the section "Extra libraries and Utilities" below) then you can build the system. First, you have to run the configure script: @@ -152,6 +154,60 @@ NOTE: On most modern systems, the build will produce dynamically linked executables. If you want statically linked executables, you have to modify, accordingly, the Makefile.in template file. +2) Use cmake build + +If you are sure that you system is ready for the build (see the section +"Extra libraries and Utilities" below) and cmake tools then you can build +the system. +First, create build directory. you have to run the follow script: + + $ cd coturn + $ mkdir build + +Then you have to run the configure script: + + $ cmake .. + +It will create a Makefile customized for your system. + +By default, the generated Makefile will install everything to: + + - /usr on Solaris. + - /usr/pkg on NetBSD. + - /usr/local everywhere else. + +The binaries will be copied to the bin subdirectory of the installation +destination, config files copied to etc subdirectory. The default SQLite database +will be created in var/db/turndb. There will be +also documents, examples and some other files, in separate directories. + +You can change the root configured destination directory by +setting CMAKE_INSTALL_PREFIX variable in the +configure command line. For example: + + $ cmake .. -DCMAKE_INSTALL_PREFIX=/opt + +Build the project: + + $ cmake --build . + +Install all files(runtime programmes and develop library): + + $ cmake --build . --target install + +Remove all installed: + + $ cmake --build . --target uninstall + +If you want to only install runtime programmes(programmes, configure files, +script files and database): + + $ cmake --build . --target install-runtime + +Remove all installed: + + $ cmake --build . --target uninstall-runtime + IV. OPENSSL If you are using the OpenSSL that is coming with your system, and you are