LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   cannot build wxGTK3 (https://www.linuxquestions.org/questions/linux-software-2/cannot-build-wxgtk3-4175551795/)

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?

knudfl 08-28-2015 06:41 AM

? Which version of Slackware64 ? ?

? Slackware64 - 14.1 ?
. http://www.linuxquestions.org/linux/...Ask_a_Question

. http://www.catb.org/~esr/faqs/smart-questions.html


-

Francexi 08-28-2015 07:01 AM

Yes, 14.1

knudfl 08-28-2015 08:11 AM

No issues here, # sh wxGTK3.Slackbuild
http://slackbuilds.org/repository/14...?search=wxgtk3
... The package is created OK.

? Are you sure your original glib2-2.36.4-x86_64-1(.txz) is OK ?
... May be reinstall the package.

? Are you compiling with webkitgtk ? Any webkitgtk or webkitgtk3 installed ?


-

Francexi 09-03-2015 08:34 AM

uhm, i'm using a multilib glibc package by alien. webkitgtk is not installed

knudfl 09-03-2015 11:57 AM

Re #5.

My question (post #4) was about glib2-2*. ( The gnome glib.)
https://en.wikipedia.org/wiki/GLib

Glibc is the "Gnu libc", the fundamental library of any Linux OS.
? What's the package name of your "alien multilib glibc" ?
Can't you just temporarily uninstall the critical multilib *glib* packages while compiling wxGTK3 ?

Please list your glib* packages :
$ ls /var/log/packages/glib2*
$ ls /var/log/packages/glibc*


All times are GMT -5. The time now is 11:05 PM.