Re: [Vala] Problems with building app with GStreamer in MSYS2/Win64



I found a solution - I had 32-bit version of compiller instaled,

m.

2015-12-09 15:38 GMT+01:00 marcin saepia net <marcin saepia net>:

Hello

I am trying to build simple app written in Vala 0.30 and link them with
windows 64-bit build of GStreamer 1.6.1. I also want to reuse GObject, GLib
and Soup that ship with GStreamer so I don't introduce another dependencies.

I apologize if this is not truly Vala related, but I cannot assess whether
this is related to boilerplate code generated by Vala or not.

I've fetched MSYS2 and added lib/pkgconfig from GStreamer installation dir
to the PKG_CONFIG_PATH and pkg-config correctly recognizes all libraries.

However, when I try to build the app the following error occur.

I've found out that such issue often is related to cross-compilation
issues but I have no clue how to proceed with this exact case. Any
suggestions?

Log below,

thank you

Marcin


 make
make  all-am
make[1]: Wejście do katalogu '/home/Marcin/aktivitis/app/electron-backbone'
gcc -DHAVE_CONFIG_H -I.     -mms-bitfields
-I/c/gstreamer/1.0/x86_64/include/glib-2.0
-I/c/gstreamer/1.0/x86_64/lib/glib-2.0/include  -mms-bitfields
-I/c/gstreamer/1.0/x86_64/include/gstreamer-1.0
-I/c/gstreamer/1.0/x86_64/lib/gstreamer-1.0/include
-I/c/gstreamer/1.0/x86_64/include/glib-2.0
-I/c/gstreamer/1.0/x86_64/lib/glib-2.0/include  -mms-bitfields
-I/c/gstreamer/1.0/x86_64/include/glib-2.0
-I/c/gstreamer/1.0/x86_64/lib/glib-2.0/include  -mms-bitfields
-I/c/gstreamer/1.0/x86_64/include/libsoup-2.4
-I/c/gstreamer/1.0/x86_64/include/libxml2
-I/c/gstreamer/1.0/x86_64/include/glib-2.0
-I/c/gstreamer/1.0/x86_64/lib/glib-2.0/include  -g -O2 -MT
src/library/parsers/app_electron_backbone_daemon-versions_result.o -MD -MP
-MF
src/library/parsers/.deps/app_electron_backbone_daemon-versions_result.Tpo
-c -o src/library/parsers/app_electron_backbone_daemon-versions_result.o
`test -f 'src/library/parsers/versions_result.c' || echo
'./'`src/library/parsers/versions_result.c
In file included from
/c/gstreamer/1.0/x86_64/lib/glib-2.0/include/glibconfig.h:14:0,
                 from
/c/gstreamer/1.0/x86_64/include/glib-2.0/glib/gtypes.h:32,
                 from
/c/gstreamer/1.0/x86_64/include/glib-2.0/glib/galloca.h:32,
                 from /c/gstreamer/1.0/x86_64/include/glib-2.0/glib.h:30,
                 from src/library/parsers/versions_result.c:5:
src/library/parsers/versions_result.c: In function
‘app_electron_parsers_versions_result_get_type’:
/c/gstreamer/1.0/x86_64/include/glib-2.0/glib/gmacros.h:181:53: error:
size of array ‘_GStaticAssertCompileTimeAssertion_0’ is negative
 #define G_STATIC_ASSERT(expr) typedef char G_PASTE
(_GStaticAssertCompileTimeAssertion_, __COUNTER__)[(expr) ? 1 : -1]
G_GNUC_UNUSED
                                                     ^
/c/gstreamer/1.0/x86_64/include/glib-2.0/glib/gmacros.h:178:47: note: in
definition of macro ‘G_PASTE_ARGS’
 #define G_PASTE_ARGS(identifier1,identifier2) identifier1 ## identifier2
                                               ^
/c/gstreamer/1.0/x86_64/include/glib-2.0/glib/gmacros.h:181:44: note: in
expansion of macro ‘G_PASTE’
 #define G_STATIC_ASSERT(expr) typedef char G_PASTE
(_GStaticAssertCompileTimeAssertion_, __COUNTER__)[(expr) ? 1 : -1]
G_GNUC_UNUSED
                                            ^
/c/gstreamer/1.0/x86_64/include/glib-2.0/glib/gthread.h:249:5: note: in
expansion of macro ‘G_STATIC_ASSERT’
     G_STATIC_ASSERT (sizeof *(location) == sizeof (gpointer));       \
     ^
src/library/parsers/versions_result.c:130:6: note: in expansion of macro
‘g_once_init_enter’
  if (g_once_init_enter
(&app_electron_parsers_versions_result_type_id__volatile)) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]