Francexi |
08-26-2015 08:55 AM |
cannot build wxGTK3
I'm trying to build a Slackware package under Slackware64 14.1 using a script from Slackbuild. The shell give me this error
Code:
In file included from /usr/include/glib-2.0/glib/gtypes.h:32:0,
from /usr/include/glib-2.0/glib/galloca.h:32,
from /usr/include/glib-2.0/glib.h:30,
from /usr/include/glib-2.0/gobject/gbinding.h:28,
from /usr/include/glib-2.0/glib-object.h:23,
from /usr/include/glib-2.0/gio/gioenums.h:28,
from /usr/include/glib-2.0/gio/giotypes.h:28,
from /usr/include/glib-2.0/gio/gio.h:26,
from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30,
from /usr/include/gtk-2.0/gdk/gdk.h:32,
from /usr/include/gtk-2.0/gtk/gtk.h:32,
from ./include/wx/gtk/private.h:14,
from ./src/gtk/clipbrd.cpp:36:
./src/gtk/clipbrd.cpp: In function 'void selection_handler(GtkWidget*, GtkSelectionData*, guint, guint, gpointer)':
/usr/lib/glib-2.0/include/glibconfig.h:86:48: error: cast from 'gpointer {aka void*}' to 'guint {aka unsigned int}' loses precision [-fpermissive]
#define GPOINTER_TO_UINT(p) ((guint) (guint) (p))
^
./src/gtk/clipbrd.cpp:279:27: note: in expansion of macro 'GPOINTER_TO_UINT'
guint timestamp = GPOINTER_TO_UINT (signal_data);
^
/usr/lib/glib-2.0/include/glibconfig.h:86:48: error: cast from 'gpointer {aka void*}' to 'guint {aka unsigned int}' loses precision [-fpermissive]
#define GPOINTER_TO_UINT(p) ((guint) (guint) (p))
^
./src/gtk/clipbrd.cpp:299:16: note: in expansion of macro 'GPOINTER_TO_UINT'
GPOINTER_TO_UINT( signal_data )
^
In file included from /usr/include/glib-2.0/gobject/gobject.h:28:0,
from /usr/include/glib-2.0/gobject/gbinding.h:29,
from /usr/include/glib-2.0/glib-object.h:23,
from /usr/include/glib-2.0/gio/gioenums.h:28,
from /usr/include/glib-2.0/gio/giotypes.h:28,
from /usr/include/glib-2.0/gio/gio.h:26,
from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30,
from /usr/include/gtk-2.0/gdk/gdk.h:32,
from /usr/include/gtk-2.0/gtk/gtk.h:32,
from ./include/wx/gtk/private.h:14,
from ./src/gtk/clipbrd.cpp:36:
./src/gtk/clipbrd.cpp: In member function 'virtual bool wxClipboard::AddData(wxDataObject*)':
/usr/lib/glib-2.0/include/glibconfig.h:89:51: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
#define GUINT_TO_POINTER(u) ((gpointer) (guint) (u))
^
/usr/include/glib-2.0/gobject/gsignal.h:472:73: note: in definition of macro 'g_signal_connect'
g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0)
^
./src/gtk/clipbrd.cpp:651:23: note: in expansion of macro 'GUINT_TO_POINTER'
GUINT_TO_POINTER (gtk_get_current_event_time()) );
^
make: *** [coredll_gtk_clipbrd.o] Errore 1
anyone can help me?
|