Skip to content

Commit

Permalink
Code autogenerated from Kurento/doc-kurento@7bd646f
Browse files Browse the repository at this point in the history
  • Loading branch information
jenkinskurento committed May 3, 2022
1 parent 6fc18d4 commit 115f8fb
Show file tree
Hide file tree
Showing 532 changed files with 5,404 additions and 1,965 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ langdoc-client-java: langdoc-init
cd kurento-java
[ "false" = "true" ] && git checkout "6.16.0"
cd kurento-client || { echo "ERROR: 'cd' failed, ls:"; ls -lA; exit 1; }
mvn --batch-mode --quiet -Psnapshots clean package \
mvn --batch-mode --quiet -Psnapshot clean package \
-DskipTests || { echo "ERROR: 'mvn clean' failed"; exit 1; }
mvn --batch-mode --quiet javadoc:javadoc \
-DreportOutputDirectory="$(DESTPATH)" -DdestDir="client-javadoc" \
Expand Down
23 changes: 11 additions & 12 deletions configure.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
# File checked with ShellCheck (https://www.shellcheck.net/)
#Checked with ShellCheck (https://www.shellcheck.net/)

#/ Initialization script for Kurento documentation.
#/
Expand All @@ -14,20 +14,19 @@
# Shell setup
# ===========

# Shell options for strict error checking
# Bash options for strict error checking.
set -o errexit -o errtrace -o pipefail -o nounset
shopt -s inherit_errexit 2>/dev/null || true

# Help message (extracted from script headers)
usage() {
grep '^#/' "$0" | cut --characters=4-
exit 0
}
REGEX='^(-h|--help)$'
if [[ "${1:-}" =~ $REGEX ]]; then
usage
fi
# Trace all commands (to stderr).
#set -o xtrace

# Help message.
# Extracts and prints text from special comments in the script header.
function usage { grep '^#/' "${BASH_SOURCE[-1]}" | cut -c 4-; exit 0; }
if [[ "${1:-}" =~ ^(-h|--help)$ ]]; then usage; fi

# Log function
# Log function.
BASENAME="$(basename "$0")" # Complete file name
log() { echo "[$BASENAME] $*"; }

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# source python_modules/bin/activate
#
# # Install packages
# python -m pip install --upgrade -r requirements.txt
# python3 -m pip install --upgrade -r requirements.txt

Sphinx~=3.5.4
sphinx-rtd-theme~=0.5.2
2 changes: 1 addition & 1 deletion source/_templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<!--
Override the Read the Docs version, which could also be "stable" or "latest".
We always want the real, actual version, so "stable" shows e.g. "6.15.0".
We always want the real, actual version, so "stable" shows e.g. "6.12.0".
-->
{% set current_version = version %}

Expand Down
60 changes: 44 additions & 16 deletions source/dev/dev_guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,10 @@ Application Servers can be developed in Java, JavaScript with Node.js, or JavaSc

There are several repositories that contain sample code for developers that use Kurento or want to develop a custom Kurento module. Currently these are:

- `kms-datachannelexample <https://github.com/Kurento/kms-datachannelexample>`__
- `kms-gstreamer-plugin-sample <https://github.com/Kurento/kms-gstreamer-plugin-sample>`__
- `kms-opencv-plugin-sample <https://github.com/Kurento/kms-opencv-plugin-sample>`__
- `kms-plugin-sample <https://github.com/Kurento/kms-plugin-sample>`__
- `kms-datachannelexample <https://github.com/Kurento/kms-datachannelexample>`__

- `kurento-tutorial-java <https://github.com/Kurento/kurento-tutorial-java>`__
- `kurento-tutorial-js <https://github.com/Kurento/kurento-tutorial-js>`__
- `kurento-tutorial-node <https://github.com/Kurento/kurento-tutorial-node>`__
Expand Down Expand Up @@ -174,12 +175,13 @@ This command will install the basic set of tools that are needed for the next st

.. code-block:: shell
sudo apt-get update && sudo apt-get install --no-install-recommends \
sudo apt-get update ; sudo apt-get install --no-install-recommends \
build-essential \
ca-certificates \
cmake \
git \
gnupg
gnupg \
pkg-config
Expand All @@ -202,8 +204,6 @@ Run these commands to add the Kurento repository to your system configuration:
deb [arch=amd64] http://ubuntu.openvidu.io/dev $DISTRIB_CODENAME kms6
EOF
sudo apt-get update
Install build dependencies
Expand All @@ -213,7 +213,7 @@ Run:
.. code-block:: shell
sudo apt-get update && sudo apt-get install --no-install-recommends \
sudo apt-get update ; sudo apt-get install --no-install-recommends \
kurento-media-server-dev
Expand All @@ -226,23 +226,51 @@ Run:
.. code-block:: shell
git clone https://github.com/Kurento/kms-omni-build.git
cd kms-omni-build
cd kms-omni-build/
git submodule update --init --recursive
git submodule update --remote
.. note::
``--recursive`` and ``--remote`` are not used together, because each individual submodule may have their own submodules that might be expected to check out some specific commit, and we don't want to update those.
*OPTIONAL*: Change to the *master* branch of each submodule, if you will be working with the latest version of the code:
(Optional) If you want to work and make commits on the submodules, switch them to the tip of their branch, to avoid being in a *detached HEAD*:
.. code-block:: shell
REF=master
git checkout "$REF" || true
git submodule foreach "git checkout master"
Switching branches on kms-omni-build
------------------------------------
(Optional)
*kms-omni-build* is a git repo that contains submodules. As such, you must remember that **git submodule state is not carried over when switching branches**. So simply running ``git checkout`` or ``git switch`` on *kms-omni-build* won't have the intended effect.
To switch to an already existing feature branch just on a single submodule, ``cd`` into it and use *git checkout* or *git switch*.
To switch to a branch on *kms-omni-build* itself and all submodules, run this:
.. code-block:: shell
REF=<BranchName>
# Before checkout: Deinit submodules.
# Needed because submodule state is not carried over when switching branches.
git submodule deinit --all
git checkout $REF || true
# After checkout: Re-init submodules.
git submodule update --init --recursive
git submodule update --remote
git submodule foreach "git checkout $REF || true"
You can also set *REF* to any other branch or tag, such as ``REF=6.12.0``. This will bring the code to the state it had in that version release.
You can set *REF* to any git branch or tag. For example, ``REF=6.12.0`` will bring the code to the state it had in that version release.
Expand Down Expand Up @@ -332,7 +360,7 @@ Now, install all debug symbols that are relevant to KMS:
.. code-block:: shell
sudo apt-get update && sudo apt-get install --no-install-recommends \
sudo apt-get update ; sudo apt-get install --no-install-recommends \
kurento-dbg
Expand All @@ -349,7 +377,7 @@ Let's see a couple examples that show the difference between the same stack trac
$ cat /var/log/kurento-media-server/errors.log
Segmentation fault (thread 139667051341568, pid 14132)
Stack trace:
[kurento::MediaElementImpl::mediaFlowInStateChange(int, char*, KmsElementPadType)]
[kurento::MediaElementImpl::mediaFlowInStateChanged(int, char*, KmsElementPadType)]
/usr/lib/x86_64-linux-gnu/libkmscoreimpl.so.6:0x1025E0
[g_signal_emit]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0:0x2B08F
Expand All @@ -365,7 +393,7 @@ Let's see a couple examples that show the difference between the same stack trac
$ cat /var/log/kurento-media-server/errors.log
Segmentation fault (thread 140672899761920, pid 15217)
Stack trace:
[kurento::MediaElementImpl::mediaFlowInStateChange(int, char*, KmsElementPadType)]
[kurento::MediaElementImpl::mediaFlowInStateChanged(int, char*, KmsElementPadType)]
/home/kurento/kms-omni-build/kms-core/src/server/implementation/objects/MediaElementImpl.cpp:479
[g_signal_emit]
/build/glib2.0-prJhLS/glib2.0-2.48.2/./gobject/gsignal.c:3443
Expand Down Expand Up @@ -646,7 +674,7 @@ What to do when you are developing a new feature that spans across KMS and the p
cd <module> # E.g. kms-filters
rm -rf build
mkdir build && cd build
mkdir build ; cd build
cmake .. -DGENERATE_JAVA_CLIENT_PROJECT=TRUE -DDISABLE_LIBRARIES_GENERATION=TRUE
cd java
mvn clean install
Expand Down

0 comments on commit 115f8fb

Please sign in to comment.