<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:"Malgun Gothic";
panose-1:2 11 5 3 2 0 0 2 0 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"Museo Sans 500";}
@font-face
{font-family:"Museo sans";}
@font-face
{font-family:"\@Malgun Gothic";
panose-1:2 11 5 3 2 0 0 2 0 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:#1F4E79;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F4E79">Hi everyone, <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F4E79"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F4E79">I am working on migrating my Android Eclipse project to Android Studio 2.1 using Android NDK v12 and Gradle 2.2.1.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F4E79"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F4E79">Below is the error I see when trying to compile the GStreamer library (version 1.8.1):<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F4E79"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:#1F4E79">GStreamer : [GEN] => gst-build-armeabi-v7a/gstreamer_android.c<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:#1F4E79">GStreamer : [COMPILE] => gst-build-armeabi-v7a/gstreamer_android.c<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:#1F4E79">GStreamer : [LINK] => gst-build-armeabi-v7a/libgstreamer_android.so<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:#1F4E79"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:#1F4E79">/home/slomo/cerbero/android-ndk-r11/platforms/android-9/arch-arm/usr/include/signal.h:113: error: undefined reference to 'bsd_signal'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:#1F4E79">/home/slomo/cerbero/android-ndk-r11/platforms/android-9/arch-arm/usr/include/signal.h:113: error: undefined reference to 'bsd_signal'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:#1F4E79">/home/slomo/cerbero/android-ndk-r11/platforms/android-9/arch-arm/usr/include/signal.h:113: error: undefined reference to 'bsd_signal'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:#1F4E79">/home/slomo/cerbero/android-ndk-r11/platforms/android-9/arch-arm/usr/include/signal.h:113: error: undefined reference to 'bsd_signal'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:#1F4E79">collect2: error: ld returned 1 exit status<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F4E79"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F4E79">Why does it reference API level 9? Is this error based on changes to the Android NDK? If so, is there a patch I can apply to get around this error?
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F4E79"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F4E79">As a side question, are GStreamer releases tested on Android Studio? And what is the connection between android-ndk-r11 and the Android NDK used by Android Studio?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F4E79"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F4E79">Application.mk<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F4E79"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:#1F4E79">APP_ABI := armeabi-v7a<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:#1F4E79">APP_PLATFORM := android-21<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F4E79"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F4E79"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F4E79">Android.mk:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F4E79"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:#1F4E79">LOCAL_PATH := $(call my-dir)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:#1F4E79"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:#1F4E79">include $(CLEAR_VARS)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:#1F4E79"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:#1F4E79">LOCAL_MODULE := Pixa<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:#1F4E79">LOCAL_SRC_FILES := Pixa.c<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:#1F4E79">LOCAL_SHARED_LIBRARIES := gstreamer_android<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:#1F4E79">LOCAL_LDLIBS := -llog -landroid<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:#1F4E79">include $(BUILD_SHARED_LIBRARY)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:#1F4E79"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:#1F4E79">ifndef GSTREAMER_ROOT<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:#1F4E79">ifndef GSTREAMER_ROOT_ANDROID<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:#1F4E79">#$(error GSTREAMER_ROOT_ANDROID is not defined!)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:#1F4E79">GSTREAMER_ROOT_ANDROID := /home/sbis-android/Android/Installation/gstreamer-1.0-android-armv7-1.8.1<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:#1F4E79">endif<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:#1F4E79">GSTREAMER_ROOT := $(GSTREAMER_ROOT_ANDROID)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:#1F4E79">endif<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:#1F4E79">GSTREAMER_NDK_BUILD_PATH := $(GSTREAMER_ROOT)/share/gst-android/ndk-build<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:#1F4E79">include $(GSTREAMER_NDK_BUILD_PATH)/plugins.mk<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:#1F4E79">GSTREAMER_PLUGINS := $(GSTREAMER_PLUGINS_CORE) $(GSTREAMER_PLUGINS_SYS) $(GSTREAMER_PLUGINS_EFFECTS) $(GSTREAMER_PLUGINS_CODECS_RESTRICTED) $(GSTREAMER_PLUGINS_CODECS) $(GSTREAMER_PLUGINS_NET)
$(GSTREAMER_PLUGINS_PLAYBACK) $(GSTREAMER_AGGREGATE_TOP)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:#1F4E79">GSTREAMER_EXTRA_DEPS := gstreamer-video-1.0<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:#1F4E79">include $(GSTREAMER_NDK_BUILD_PATH)/gstreamer-1.0.mk<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F4E79"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F4E79"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F4E79">Gradle task:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F4E79"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:#1F4E79">task ndkBuild(type: Exec, description: 'Compile JNI source via NDK') {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:#1F4E79"> def ndkDir = project.plugins.findPlugin('com.android.application').getNdkFolder()<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:#1F4E79"> println(project.plugins.findPlugin('com.android.application').getNdkFolder())<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:#1F4E79"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:#1F4E79"> commandLine "$ndkDir/ndk-build",<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:#1F4E79"> 'NDK_PROJECT_PATH=build',<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:#1F4E79"> 'APP_BUILD_SCRIPT=src/main/jni/Android.mk',<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:#1F4E79"> 'NDK_APPLICATION_MK=src/main/jni/Application.mk'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New";color:#1F4E79">}<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F4E79"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F4E79">Thanks!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F4E79"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F4E79"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F4E79">Diane Cordero<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F4E79">Software Engineer<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F4E79">340 Storke Road, Suite 101<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F4E79">Goleta, CA 93117<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F4E79">P 805.252.1366<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F4E79"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Museo sans";color:#1F4E79"><img width="205" height="49" id="Picture_x0020_1" src="cid:image001.png@01D1AA04.9365F9E0" alt="SBIS horizontal logo v4"></span><span style="font-size:9.0pt;font-family:"Museo Sans 500";color:#1F4E79"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><i><span style="font-size:9.0pt;font-family:"Museo Sans 500";color:#1F4E79">Confidentiality Notice:</span></i></b><i><span style="font-size:9.0pt;font-family:"Museo Sans 500";color:#1F4E79">
</span></i><i><span lang="DE" style="font-size:9.0pt;font-family:"Museo Sans 500";color:black">This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to which they are addressed. If you are
not the intended addressee, or the person responsible for delivering it to them, you may not copy, forward, disclose, or otherwise use it or any part of it in any way. To do so may be unlawful. If you receive this e-mail in error, please delete it and notify
the sender immediately.<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span style="font-size:9.0pt;font-family:"Museo Sans 500";color:black">The Santa Barbara Imaging Systems logo, Pixa, and the Pixa logo are trademarks of Santa Barbara Imaging Systems. All rights reserved.</span></i><span style="font-size:9.0pt;color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>