{"action":"created","issue":{"url":"https://api.github.com/repos/Kurento/bugtracker/issues/56","repository_url":"https://api.github.com/repos/Kurento/bugtracker","labels_url":"https://api.github.com/repos/Kurento/bugtracker/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/Kurento/bugtracker/issues/56/comments","events_url":"https://api.github.com/repos/Kurento/bugtracker/issues/56/events","html_url":"https://github.com/Kurento/bugtracker/issues/56","id":144356301,"number":56,"title":"Successfull build on raspberry pi arm v7 64bit","user":{"login":"chetanbnaik","id":7589914,"avatar_url":"https://avatars.githubusercontent.com/u/7589914?v=3","gravatar_id":"","url":"https://api.github.com/users/chetanbnaik","html_url":"https://github.com/chetanbnaik","followers_url":"https://api.github.com/users/chetanbnaik/followers","following_url":"https://api.github.com/users/chetanbnaik/following{/other_user}","gists_url":"https://api.github.com/users/chetanbnaik/gists{/gist_id}","starred_url":"https://api.github.com/users/chetanbnaik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chetanbnaik/subscriptions","organizations_url":"https://api.github.com/users/chetanbnaik/orgs","repos_url":"https://api.github.com/users/chetanbnaik/repos","events_url":"https://api.github.com/users/chetanbnaik/events{/privacy}","received_events_url":"https://api.github.com/users/chetanbnaik/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Kurento/bugtracker/labels/kms","name":"kms","color":"fbca04"},{"url":"https://api.github.com/repos/Kurento/bugtracker/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-29T18:59:40Z","updated_at":"2016-05-23T15:48:05Z","closed_at":"2016-03-31T05:33:48Z","body":"Dear All,\r\n\r\nThis post wants to talk about 3 things:\r\n--> the build procedure that I followed.\r\n--> possible error in kms-elements build on ARM architecture?\r\n--> python binding like any other plugin of gstreamer?\r\n\r\nI have somehow managed to build the kms-elements on my raspberry pi 2 model b. It took lots of efforts and stackoverflow, to compile it successfully. I am yet to try out the installation.\r\n\r\nBut at the end of building the kms-elements, when I try to do \"gst-inspect-1.5 webrtcednpoint\", I get the following error:\r\n```\r\n(gst-inspect-1.5:27954): GLib-GObject-WARNING **: invalid (NULL) pointer instance\r\n\r\n(gst-inspect-1.5:27954): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed\r\n\r\n(gst-inspect-1.5:27954): GLib-GObject-WARNING **: invalid (NULL) pointer instance\r\n\r\n(gst-inspect-1.5:27954): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed\r\n\r\n(gst-inspect-1.5:27954): GLib-GObject-WARNING **: invalid (NULL) pointer instance\r\n\r\n(gst-inspect-1.5:27954): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed\r\n\r\n(gst-inspect-1.5:27954): GLib-GObject-WARNING **: invalid (NULL) pointer instance\r\n\r\n(gst-inspect-1.5:27954): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed\r\n\r\n(gst-inspect-1.5:27954): GLib-GObject-WARNING **: invalid (NULL) pointer instance\r\n\r\n(gst-inspect-1.5:27954): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed\r\n\r\n(gst-inspect-1.5:27954): GLib-GObject-WARNING **: invalid (NULL) pointer instance\r\n\r\n(gst-inspect-1.5:27954): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed\r\n\r\n(gst-inspect-1.5:27954): GLib-GObject-WARNING **: invalid (NULL) pointer instance\r\n\r\n(gst-inspect-1.5:27954): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed\r\n\r\n(gst-inspect-1.5:27954): GLib-GObject-WARNING **: invalid (NULL) pointer instance\r\n\r\n(gst-inspect-1.5:27954): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed\r\n\r\n(gst-inspect-1.5:27954): GLib-GObject-WARNING **: invalid (NULL) pointer instance\r\n\r\n(gst-inspect-1.5:27954): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed\r\n\r\n(gst-inspect-1.5:27954): GLib-GObject-WARNING **: invalid (NULL) pointer instance\r\n\r\n(gst-inspect-1.5:27954): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed\r\n\r\n(gst-inspect-1.5:27954): GLib-GObject-WARNING **: invalid (NULL) pointer instance\r\n\r\n(gst-inspect-1.5:27954): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed\r\n\r\n(gst-inspect-1.5:27954): GStreamer-CRITICAL **: gst_bin_add: assertion 'GST_IS_ELEMENT (element)' failed\r\n```\r\nand then the usual information is displayed.\r\n\r\nThese errors are not shown for any of the other kms-elements. For eg. gst-inspect-1.5 httpendpoint works nicely.\r\n\r\nMy original aim was to have build kms from source, and also have the python bindings for the kms-elements\r\nThe step-by-step procedure used here is:\r\n\r\nFirst, lets install all the needed dependencies.\r\n\r\n`sudo apt-get install git build-essential cmake pkg-config automake autoconf flex bison python-pip python-dev libffi-dev libboost-all-dev libssl-dev libtool gettext libfam-dev maven gobject-introspection python-cairo-dev gnome-common`\r\n\r\n\r\n\r\nInstallation of GLib 2.46, needed for \"libnice\"\r\n```\r\n→ wget http://ftp.gnome.org/pub/gnome/sources/glib/2.46/glib-2.46.2.tar.xz\r\n\r\ntar xvf glib-2.46.2.tar.xz\r\n\r\ncd glib-2.46.2\r\n\r\n./autogen.sh\r\n\r\n./configure\r\n\r\nmake\r\n\r\nsudo make install\r\n```\r\n\r\n\r\n\r\n\r\nInstallation of pygobject\r\n```\r\nsudo apt-get install libgirepository1.0-dev libcairo2-dev\r\n→ wget http://ftp.gnome.org/pub/GNOME/sources/pygobject/3.18/pygobject-3.18.2.tar.xz\r\ntar xvf pygobject-3.18.2.tar.xz\r\n./autogen.sh --prefix=/usr/local --with-python=python\r\nmake\r\nmake install\r\n```\r\n\r\n\r\nKMS-cmake-utils\r\n\r\n\r\n```\r\ngit clone https://github.com/Kurento/kms-cmake-utils\r\n\r\ncd kms-cmake-utils\r\n\r\nmkdir build\r\n\r\ncd build\r\n\r\ncmake ..\r\n\r\nsudo make install\r\n```\r\n\r\n\r\n\r\n------------------------------------\r\n\r\ngit clone https://github.com/Kurento/kurento-module-creator\r\n```\r\ncd kurento-module-creator\r\n\r\ngit checkout v3.0.10\r\n\r\n\r\nsudo apt-get install maven\r\n\r\nmvn package\r\n\r\nsudo cp ./target/kurento-module-creator-3.0.10.jar ./target/kurento-module-creator-jar-with-dependencies.jar /usr/local/bin\r\n\r\nsudo cp ./target/classes/FindKurentoModuleCreator.cmake /usr/local/share/cmake-3.0/Modules/\r\n\r\nvi ./scripts/kurento-module-creator → change\r\n\r\nsudo cp ./scripts/kurento-module-creator /usr/local/bin\r\n\r\n```\r\n\r\n\r\n------------------------------------\r\n```\r\ngit clone https://github.com/Kurento/jsoncpp\r\n\r\ncd jsoncpp\r\n\r\nmkdir -p build/debug\r\ncd build/debug\r\ncmake -DCMAKE_BUILD_TYPE=debug -DBUILD_STATIC_LIBS=ON -DBUILD_SHARED_LIBS=OFF -G \"Unix Makefiles\" ../..\r\n\r\nsudo make install\r\n```\r\n\r\n\r\n\r\n------------------------------------\r\n```\r\ngit clone https://github.com/Kurento/kms-jsonrpc\r\n\r\ncd kms-jsonrpc\r\n\r\nmkdir build\r\n\r\ncd build\r\n\r\ncmake -DCMAKE_MODULE_PATH=/usr/local/share/cmake-3.0/Modules/ ..\r\n\r\nsudo make install\r\n```\r\n\r\n\r\n\r\n------------------------------------\r\n```\r\ngit clone https://github.com/Kurento/gstreamer.git\r\n\r\ncd gstreamer\r\n\r\n./autogen.sh\r\n\r\n./configure\r\n\r\nmake\r\n\r\nsudo make install\r\n```\r\n\r\n\r\n\r\n------------------------------------\r\n```\r\nsudo apt-get install libasound2-dev libvorbis-dev libvisual-0.4-dev libogg-dev libtheora-dev libpango1.0-dev libvpx-dev\r\n\r\ngit clone https://github.com/Kurento/gst-plugins-base.git\r\n\r\ncd gst-plugins-base\r\n\r\n./autogen.sh\r\n\r\n./configure\r\n\r\nmake\r\n\r\nsudo make install\r\n```\r\n\r\n\r\n\r\nNow, the actual KMS-CORE\r\n\r\n------------------------------------\r\n```\r\nsudo apt-get install libsigc++-2.0-dev libglibmm-2.4-dev uuid-dev\r\n\r\ngit clone https://github.com/Kurento/kms-core\r\n\r\ncd kms-core\r\n\r\nmkdir build\r\n\r\ncd build\r\n\r\ncmake -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_MODULE_PATH=/usr/local/share/cmake-3.0/Modules ..\r\n```\r\n\r\n\r\n\r\nbut this is where a warning is thrown and I have to modify line 99 in\r\n```\r\nvi ../src/gst-plugins/kmsaudiomixer.c\r\n\r\n  GST_LOG_OBJECT (pad, \"Modifing latency query. New latency %lld\",\r\n\r\n   100       LATENCY * GST_MSECOND);\r\n```\r\n\r\n\r\n\r\nthe warning is something like: \"error: format ‘%ld’ expects argument of type ‘long int’, but argument 8 has type ‘long long int’ \"\r\n\r\n\r\n\r\nthe compilation fails again due to a similar warning, and I have to modify line 104.\r\n\r\nvi ../src/server/implementation/MediaSet.cpp\r\n```\r\n104     GST_INFO (\"Destroying %d pipelines that are already alive\", pipes.size() );\r\n```\r\n\r\n\r\n\r\nafter this, the compilation is successful.\r\n\r\nsudo make install\r\n\r\n------------------------------------\r\n```\r\ngit clone https://github.com/sctplab/usrsctp\r\n\r\ncd usrsctp\r\n\r\n./bootstrap\r\n\r\n./configure\r\n\r\nmake\r\n\r\nsudo make install\r\n```\r\n\r\n\r\n\r\n------------------------------------\r\n```\r\ngit clone https://github.com/Kurento/openwebrtc-gst-plugins\r\n\r\ncd openwebrtc-gst-plugins\r\n\r\nmkdir build\r\n\r\n./autogen\r\n\r\n./configure\r\n\r\nmake\r\n\r\nsudo make install\r\n```\r\n\r\n\r\n\r\n------------------------------------\r\n```\r\nsudo apt-get install libgupnp-1.0-dev gir1.2-gupnp-1.0 libgupnp-igd-1.0-dev gir1.2-gupnpigd-1.0\r\n\r\n\r\ngit clone https://github.com/Kurento/libnice\r\n\r\nsudo apt-get install gtk-doc-tools\r\n\r\ncd libnice\r\n\r\nvi configure.ac → change the [ LIBNICE_RELEASE=”yes” ]\r\n\r\n./autogen.sh\r\n\r\n./configure\r\n\r\nmake\r\n\r\nsudo make install\r\n```\r\n\r\n\r\n\r\n------------------------------------\r\n```\r\ngit clone https://github.com/Kurento/kms-elements\r\n\r\ncd kms-elements\r\n\r\n/src/gst-plugins/kmscompositemixer.c:299:3: error: format ‘%ld’ expects argument of type ‘long int’, but argument 8 has type ‘long long int’ [-Werror=format=]\r\n\r\n GST_LOG_OBJECT (pad, \"Modifing latency query. New latency %ld\",\r\n\r\nmkdir build\r\n\r\ncd build\r\n\r\ncmake -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_MODULE_PATH=/usr/local/share/cmake-3.0/Modules ..\r\n\r\nsudo make install\r\n```\r\n\r\n\r\n\r\n------------------------------------\r\n```\r\n→ Install gst-python from https://gstreamer.freedesktop.org/src/gst-python/gst-python-1.7.1.tar.xz\r\n\r\nvi configure “ Change am__api_version = 1.14 and GST_\r\n\r\n./configure --prefix=/usr/local --with-pygi-overrides-dir=/usr/local/lib/python2.7/site-packages/gi/overrides\r\n\r\nmake\r\n\r\nmake install\r\n```\r\n\r\nAfter this, I was expecting to have a successful build, but gst-inspect-1.5 on webrtcendpoint throws few wanrings and errors. Should this be expected? I can find this out only when I try it using it in an application. Has anybody else experience similar problems?"},"comment":{"url":"https://api.github.com/repos/Kurento/bugtracker/issues/comments/221015124","html_url":"https://github.com/Kurento/bugtracker/issues/56#issuecomment-221015124","issue_url":"https://api.github.com/repos/Kurento/bugtracker/issues/56","id":221015124,"user":{"login":"gianpi90","id":12224681,"avatar_url":"https://avatars.githubusercontent.com/u/12224681?v=3","gravatar_id":"","url":"https://api.github.com/users/gianpi90","html_url":"https://github.com/gianpi90","followers_url":"https://api.github.com/users/gianpi90/followers","following_url":"https://api.github.com/users/gianpi90/following{/other_user}","gists_url":"https://api.github.com/users/gianpi90/gists{/gist_id}","starred_url":"https://api.github.com/users/gianpi90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gianpi90/subscriptions","organizations_url":"https://api.github.com/users/gianpi90/orgs","repos_url":"https://api.github.com/users/gianpi90/repos","events_url":"https://api.github.com/users/gianpi90/events{/privacy}","received_events_url":"https://api.github.com/users/gianpi90/received_events","type":"User","site_admin":false},"created_at":"2016-05-23T15:48:05Z","updated_at":"2016-05-23T15:48:05Z","body":"How do you resolve the issue?\r\nI follow this guide, but the errors still remain.\r\nWhen I delete cache I have also the error:\r\n\r\n`** (gst-plugin-scanner:6304): CRITICAL **: can't find gi.repository.Gst`\r\n\r\nI have installed gir1.2-gst but this doesn't fix the issue.\r\nI have installed the server also, and it fails due to this error."}}
{"actor":{"display_login":"gianpi90"}}