{"action":"created","issue":{"url":"https://api.github.com/repos/alexa/avs-device-sdk/issues/825","repository_url":"https://api.github.com/repos/alexa/avs-device-sdk","labels_url":"https://api.github.com/repos/alexa/avs-device-sdk/issues/825/labels{/name}","comments_url":"https://api.github.com/repos/alexa/avs-device-sdk/issues/825/comments","events_url":"https://api.github.com/repos/alexa/avs-device-sdk/issues/825/events","html_url":"https://github.com/alexa/avs-device-sdk/issues/825","id":337796479,"node_id":"MDU6SXNzdWUzMzc3OTY0Nzk=","number":825,"title":"gettext fails to build on Android platform","user":{"login":"WksKing","id":20762778,"node_id":"MDQ6VXNlcjIwNzYyNzc4","avatar_url":"https://avatars2.githubusercontent.com/u/20762778?v=4","gravatar_id":"","url":"https://api.github.com/users/WksKing","html_url":"https://github.com/WksKing","followers_url":"https://api.github.com/users/WksKing/followers","following_url":"https://api.github.com/users/WksKing/following{/other_user}","gists_url":"https://api.github.com/users/WksKing/gists{/gist_id}","starred_url":"https://api.github.com/users/WksKing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WksKing/subscriptions","organizations_url":"https://api.github.com/users/WksKing/orgs","repos_url":"https://api.github.com/users/WksKing/repos","events_url":"https://api.github.com/users/WksKing/events{/privacy}","received_events_url":"https://api.github.com/users/WksKing/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-03T08:33:59Z","updated_at":"2018-07-03T09:33:17Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n    I can successfully build the AVS device SDK following the [Reference Guide to build Device SDK on Android.docx], and can run a test app on Android without GStreamer supported.\r\n    I'd like to add the mediaPlayer function test, so I need to cross-compile the GStreamer with the toolchains in android NDK packages, the GStreamer depends on glib and libxml, when I tried to build glib, it gave me an error:\r\n```\r\nchecking for perl... /usr/bin/perl\r\nchecking for a Python interpreter with version >= 2.5... python\r\nchecking for python... /home/king/AndroidDevelop/android-studio-sdk/android-sdk-linux/ndk/toolchains/android-ndk-r16/toolchain-armeabi-v7a/android-23/bin/python\r\nchecking for python version... 2.7\r\nchecking for python platform... linux2\r\nchecking for python script directory... ${prefix}/lib/python2.7/site-packages\r\nchecking for python extension module directory... ${exec_prefix}/lib/python2.7/site-packages\r\nchecking for iconv_open... no\r\nchecking for libiconv_open in -liconv... yes\r\nchecking for ZLIB... yes\r\nchecking for LIBFFI... yes\r\nchecking locale.h usability... yes\r\nchecking locale.h presence... yes\r\nchecking for locale.h... yes\r\nchecking for LC_MESSAGES... yes\r\nchecking libintl.h usability... no\r\nchecking libintl.h presence... no\r\nchecking for libintl.h... no\r\nconfigure: error: \r\n*** You must have either have gettext support in your C library, or use the\r\n*** GNU gettext library. (http://www.gnu.org/software/gettext/gettext.html\r\n\r\nmake: *** [config.status] Error 1\r\n```\r\n\r\nSo I downloaded the gettext source code(gettext-0.18.3) and build, but got another error, I searched much time, but can't find a right answer:\r\n```\r\n/bin/sh ../libtool  --tag=CC   --mode=compile /home/king/AndroidDevelop/android-studio-sdk/android-sdk-linux/ndk/toolchains/android-ndk-r16/toolchain-armeabi-v7a/android-23/bin/arm-linux-androideabi-gcc -std=gnu99 -DHAVE_CONFIG_H -DEXEEXT=\\\"\\\" -DEXEEXT=\\\"\\\" -DEXEEXT=\\\"\\\" -I. -I..  -I../intl -I../intl -I.. -I.. -DDEPENDS_ON_LIBICONV=1 -DDEPENDS_ON_LIBINTL=1 -DLIBXML_STATIC    -I./libcroco  -I/home/king/Project/AVS_Android/android_workplace/BUILD/debug/android-23/armeabi-v7a/install/include  -g -O2 -c -o spawn_faction_addclose.lo spawn_faction_addclose.c\r\nlibtool: compile:  /home/king/AndroidDevelop/android-studio-sdk/android-sdk-linux/ndk/toolchains/android-ndk-r16/toolchain-armeabi-v7a/android-23/bin/arm-linux-androideabi-gcc -std=gnu99 -DHAVE_CONFIG_H -DEXEEXT=\\\"\\\" -DEXEEXT=\\\"\\\" -DEXEEXT=\\\"\\\" -I. -I.. -I../intl -I../intl -I.. -I.. -DDEPENDS_ON_LIBICONV=1 -DDEPENDS_ON_LIBINTL=1 -DLIBXML_STATIC -I./libcroco -I/home/king/Project/AVS_Android/android_workplace/BUILD/debug/android-23/armeabi-v7a/install/include -g -O2 -c spawn_faction_addclose.c  -fPIC -DPIC -o .libs/spawn_faction_addclose.o\r\nspawn_faction_addclose.c: In function 'posix_spawn_file_actions_addclose':\r\nspawn_faction_addclose.c:50:19: error: request for member '_used' in something not a structure or union\r\n   if (file_actions->_used == file_actions->_allocated\r\n                   ^\r\nspawn_faction_addclose.c:50:42: error: request for member '_allocated' in something not a structure or union\r\n   if (file_actions->_used == file_actions->_allocated\r\n                                          ^\r\nspawn_faction_addclose.c:59:24: error: request for member '_actions' in something not a structure or union\r\n     rec = &file_actions->_actions[file_actions->_used];\r\n                        ^\r\nspawn_faction_addclose.c:59:47: error: request for member '_used' in something not a structure or union\r\n     rec = &file_actions->_actions[file_actions->_used];\r\n                                               ^\r\nspawn_faction_addclose.c:64:19: error: request for member '_used' in something not a structure or union\r\n     ++file_actions->_used;\r\n                   ^\r\nmake[3]: *** [spawn_faction_addclose.lo] Error 1\r\nmake[3]: Leaving directory `/home/king/Project/AVS_Android/android_workplace/GStreamer/5_gettext/gettext-0.18.3/gettext-tools/gnulib-lib'\r\nmake[2]: *** [install] Error 2\r\nmake[2]: Leaving directory `/home/king/Project/AVS_Android/android_workplace/GStreamer/5_gettext/gettext-0.18.3/gettext-tools/gnulib-lib'\r\nmake[1]: *** [install-recursive] Error 1\r\nmake[1]: Leaving directory `/home/king/Project/AVS_Android/android_workplace/GStreamer/5_gettext/gettext-0.18.3/gettext-tools'\r\nmake: *** [install-recursive] Error 1\r\n```\r\n\r\nbuild command is:\r\n```\r\ncd gettext-0.18.3\r\n./configure --prefix=\"${INSTALL_TARGET}\" --host=arm-linux-androideabi\r\nmake\r\nmake install\r\n```\r\n\r\nPlease help.\r\n\r\n\r\nThanks\r\nKing"},"comment":{"url":"https://api.github.com/repos/alexa/avs-device-sdk/issues/comments/402077921","html_url":"https://github.com/alexa/avs-device-sdk/issues/825#issuecomment-402077921","issue_url":"https://api.github.com/repos/alexa/avs-device-sdk/issues/825","id":402077921,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMjA3NzkyMQ==","user":{"login":"mmabluesky","id":17948377,"node_id":"MDQ6VXNlcjE3OTQ4Mzc3","avatar_url":"https://avatars2.githubusercontent.com/u/17948377?v=4","gravatar_id":"","url":"https://api.github.com/users/mmabluesky","html_url":"https://github.com/mmabluesky","followers_url":"https://api.github.com/users/mmabluesky/followers","following_url":"https://api.github.com/users/mmabluesky/following{/other_user}","gists_url":"https://api.github.com/users/mmabluesky/gists{/gist_id}","starred_url":"https://api.github.com/users/mmabluesky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmabluesky/subscriptions","organizations_url":"https://api.github.com/users/mmabluesky/orgs","repos_url":"https://api.github.com/users/mmabluesky/repos","events_url":"https://api.github.com/users/mmabluesky/events{/privacy}","received_events_url":"https://api.github.com/users/mmabluesky/received_events","type":"User","site_admin":false},"created_at":"2018-07-03T09:33:17Z","updated_at":"2018-07-03T09:33:17Z","author_association":"NONE","body":"I suggest you write your own Android platform mediaPlayer ,  such as based on ffmpeg or ndkMediacodec"}}
{"actor":{"display_login":"mmabluesky"}}