Prev: Re[2]: wxChoice or wxComboBox in wxHTMLWindow, winXP, wxPython 2.8.4
Next: segfault with wxGIFDecoder::dgif ()
From: Eiso AB on 8 Jun 2007 10:42 in trying to compile wxGTK-2.8.4 under Centos5 I'm getting an error at this point after make [...] /software/src/WX/wxGTK-2.8.4/buildgtk/bk-deps g++ -c -o coredll_clipbrd.o -I.pch/wxprec_coredll -D__WXGTK__ -DWXUSINGDLL -DWXMAKINGDLL_CORE -DwxUSE_BASE=0 -fPIC -DPIC -DWX_PRECOMP -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/home/e.ab/software/src/WX/wxGTK-2.8.4/buildgtk/lib/wx/include/gtk2-ansi-release-2.8 -I../include -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -pthread -Wall -Wundef -Wno-ctor-dtor-privacy -O2 -fno-strict-aliasing -I/usr/include/libgnomeprintui-2.2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/libgnomeprint-2.2 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/libart-2.0 -I/usr/include/libxml2 -I/usr/include/libpng12 ../src/gtk/clipbrd.cpp .../src/gtk/clipbrd.cpp: In function 'void selection_handler(GtkWidget*, GtkSelectionData*, guint, guint, void*)': .../src/gtk/clipbrd.cpp:254: error: cast from 'void*' to 'guint' loses precision make: *** [coredll_clipbrd.o] Error 1 configure gives me this setup: Configured wxWidgets 2.8.4 for `x86_64-unknown-linux-gnu' Which GUI toolkit should wxWidgets use? GTK+ 2 with support for gnomeprint Should wxWidgets be compiled into single library? no Should wxWidgets be compiled in debug mode? no Should wxWidgets be linked as a shared library? yes Should wxWidgets be compiled in Unicode mode? no What level of wxWidgets compatibility should be enabled? wxWidgets 2.4 no wxWidgets 2.6 yes Which libraries should wxWidgets use? jpeg sys png sys regex sys tiff sys zlib sys odbc no expat sys libmspack no sdl no Any idea what I should do to get past this point? Or is it a bug? thanks-Eiso -- --------------------------------------------------------------------- To unsubscribe, e-mail: wx-users-unsubscribe(a)lists.wxwidgets.org For additional commands, e-mail: wx-users-help(a)lists.wxwidgets.org
From: Vadim Zeitlin on 8 Jun 2007 16:01 On Fri, 08 Jun 2007 16:42:01 +0200 Eiso AB <e.ab(a)chem.leidenuniv.nl> wrote: EA> in trying to compile wxGTK-2.8.4 under Centos5 I'm getting an error EA> at this point after make .... EA> ../src/gtk/clipbrd.cpp: In function 'void selection_handler(GtkWidget*, EA> GtkSelectionData*, guint, guint, void*)': EA> EA> ../src/gtk/clipbrd.cpp:254: error: cast from 'void*' to 'guint' loses precision The line 254 contains GPOINTER_TO_UINT() macro which is supposed to cast guint to "void *" correctly even on 64 bit platforms. If this results in an error for you it looks like a wrong glibconfig.h (where this macro is defined) is used or maybe you use some ancient GTK+ version which had a bug in it. For the reference, I can build wx 2.8.4 just fine under 64 bit Linux and the macro is defined like this here: #define GPOINTER_TO_UINT(p) ((guint) (gulong) (p)) Regards, VZ -- TT-Solutions: wxWidgets consultancy and technical support http://www.tt-solutions.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: wx-users-unsubscribe(a)lists.wxwidgets.org For additional commands, e-mail: wx-users-help(a)lists.wxwidgets.org
From: Eiso AB on 11 Jun 2007 10:15
Vadim Zeitlin <vadim <at> wxwidgets.org> writes: > > On Fri, 08 Jun 2007 16:42:01 +0200 Eiso AB [...] wrote: > > EA> in trying to compile wxGTK-2.8.4 under Centos5 I'm getting an error > EA> at this point after make > ... > EA> ../src/gtk/clipbrd.cpp: In function 'void selection_handler(GtkWidget*, > EA> GtkSelectionData*, guint, guint, void*)': > EA> > EA> ../src/gtk/clipbrd.cpp:254: error: cast from 'void*' to 'guint' loses > precision > > The line 254 contains GPOINTER_TO_UINT() macro which is supposed to cast > guint to "void *" correctly even on 64 bit platforms. If this results in an > error for you it looks like a wrong glibconfig.h (where this macro is > defined) is used or maybe you use some ancient GTK+ version which had a bug > in it. > > For the reference, I can build wx 2.8.4 just fine under 64 bit Linux and > the macro is defined like this here: > > #define GPOINTER_TO_UINT(p) ((guint) (gulong) (p)) > > Regards, > VZ > thanks, I installed some extra rpms: compat-glibc.i386 compat-glibc.x86_64 compat-glibc-headers.x86_64 glib-devel.i386 and now make finished ok. [not sure which of the packages actually made the difference] Eiso --------------------------------------------------------------------- To unsubscribe, e-mail: wx-users-unsubscribe(a)lists.wxwidgets.org For additional commands, e-mail: wx-users-help(a)lists.wxwidgets.org |