gst-omx plugin build error: size of array ‘_GStaticAssertCompileTimeAssertion_1’ is negative

Sebastian Dröge sebastian at centricular.com
Sat Apr 15 07:12:49 UTC 2017


On Thu, 2017-04-13 at 05:54 +0000, Hao Kai wrote:
> Dear All:
> 
> I encountered a weird compiling problem on gst-omx.
> 
> my build env:
> 
>     gst-omx Version: Tag 1.11.90
>     OS Description: Ubuntu 16.04.2 LTS 64bit
>     Cerbero version: Tag 1.11.90
> 
> Before building gst-omx, I have successfully built gstreamer sdk 1.0
> for tag 1.11.90 with target cross-android.cbc
> 
> My gst-omx Build Command: 
> 
>     $./autogen.sh --host=arm-linux-androideabi --disable-gtk-doc --
> with-omx-target=generic --enable-static --
> prefix=/home/leon/tools/cerbero/omx --enable-static-plugins --
> disable-fatal-warnings
>     $make
> 
> Then I got the following error msg:
> 
> gstomxbufferpool.c: In function ‘gst_omx_memory_allocator_get_type’:
> /home/leon/tools/cerbero/build/dist/android_arm/include/glib-
> 2.0/glib/gmacros.h:232:53: error: size of array
> ‘_GStaticAssertCompileTimeAssertion_1’ is negative
>  #define G_STATIC_ASSERT(expr) typedef char G_PASTE
> (_GStaticAssertCompileTimeAssertion_, __COUNTER__)[(expr) ? 1 : -1]
> G_GNUC_UNUSED

Usually that means that you're using GLib headers that are not for your
target platform, e.g. 64 bit GLib headers and 32 bit target platform.

-- 
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170415/c0127970/attachment-0001.sig>


More information about the gstreamer-devel mailing list