[anjuta-list] build 32-bit program in debian jessie 64-bit



i got error:
Building in directory: /home/herryawan/Project/samplegui/Debug
make
make  all-recursive
make[1]: Entering directory '/home/herryawan/Project/samplegui/Debug'
make[1]: Entering directory '/home/herryawan/Project/samplegui/Debug'
Making all in src
make[2]: Entering directory
'/home/herryawan/Project/samplegui/Debug/src'
make[2]: Entering directory
'/home/herryawan/Project/samplegui/Debug/src'
CC       main.o
CC       samplegui.o
In file included from /usr/include/glib-2.0/glib/gthread.h:32:0,
from /usr/include/glib-2.0/glib/gasyncqueue.h:32,
from /usr/include/glib-2.0/glib.h:32,
from /usr/include/gtk-3.0/gdk/gdkconfig.h:13,
from /usr/include/gtk-3.0/gdk/gdk.h:30,
from /usr/include/gtk-3.0/gtk/gtk.h:30,
from /home/herryawan/Project/samplegui/src/samplegui.h:11,
from /home/herryawan/Project/samplegui/src/samplegui.c:7:
/home/herryawan/Project/samplegui/src/samplegui.c: In function
‘samplegui_get_type’:
/usr/include/glib-2.0/glib/gatomic.h:108:5: warning: cast to pointer
from integer of different size [-Wint-to-pointer-cast]
(gpointer) __atomic_load_8 ((atomic), __ATOMIC_SEQ_CST);
\
^
/usr/include/glib-2.0/glib/gthread.h:250:7: note: in expansion of macro
‘g_atomic_pointer_get’
(!g_atomic_pointer_get (location) &&                             \
^
/usr/include/glib-2.0/gobject/gtype.h:1697:7: note: in expansion of
macro ‘g_once_init_enter’
(g_once_init_enter (&g_define_type_id__volatile))  \
^
/usr/include/glib-2.0/gobject/gtype.h:1476:60: note: in expansion of
macro ‘_G_DEFINE_TYPE_EXTENDED_BEGIN’
#define G_DEFINE_TYPE_EXTENDED(TN, t_n, T_P, _f_, _C_)
_G_DEFINE_TYPE_EXTENDED_BEGIN (TN, t_n, T_P, _f_) {_C_;}
_G_DEFINE_TYPE_EXTENDED_END()
^
/usr/include/glib-2.0/gobject/gtype.h:1334:43: note: in expansion of
macro ‘G_DEFINE_TYPE_EXTENDED’
#define G_DEFINE_TYPE(TN, t_n, T_P)       G_DEFINE_TYPE_EXTENDED (TN,
t_n, T_P, 0, {})
^
/home/herryawan/Project/samplegui/src/samplegui.c:19:1: note: in
expansion of macro ‘G_DEFINE_TYPE’
G_DEFINE_TYPE (Samplegui, samplegui, GTK_TYPE_APPLICATION);
^
/home/herryawan/Project/samplegui/src/samplegui.c: In function
‘samplegui_new_window’:
/home/herryawan/Project/samplegui/src/samplegui.c:37:20: warning: unused
variable ‘priv’ [-Wunused-variable]
SampleguiPrivate *priv = SAMPLEGUI_APPLICATION(app)->priv;
^
CCLD     samplegui
/usr/bin/ld: cannot find -lgtk-3
/usr/bin/ld: cannot find -lgdk-3
/usr/bin/ld: cannot find -lpangocairo-1.0
/usr/bin/ld: cannot find -lpango-1.0
/usr/bin/ld: cannot find -latk-1.0
/usr/bin/ld: cannot find -lcairo-gobject
/usr/bin/ld: cannot find -lcairo
/usr/bin/ld: cannot find -lgdk_pixbuf-2.0
/usr/bin/ld: cannot find -lgio-2.0
/usr/bin/ld: cannot find -lgobject-2.0
/usr/bin/ld: cannot find -lglib-2.0
collect2: error: ld returned 1 exit status
make[2]: *** [samplegui] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
/home/herryawan/Project/samplegui/Debug/src/Makefile:453: recipe for
target 'samplegui' failed
make[2]: Leaving directory '/home/herryawan/Project/samplegui/Debug/src'
make[2]: Leaving directory '/home/herryawan/Project/samplegui/Debug/src'
/home/herryawan/Project/samplegui/Debug/Makefile:486: recipe for target
'all-recursive' failed
make[1]: Leaving directory '/home/herryawan/Project/samplegui/Debug'
make[1]: Leaving directory '/home/herryawan/Project/samplegui/Debug'
/home/herryawan/Project/samplegui/Debug/Makefile:396: recipe for target
'all' failed
Completed unsuccessfully
Total time taken: 1 secs

when i build my project with added -m32 in C compiler flags.
how to solve that?
are anjuta compatible with cross compiler??



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