Discussion:
build wxWidget3.0.0 with gtk at suse11: error: ‘gdk_cairo_create’ was not declared in this scope
Mahmoud Eltahawy
2014-03-10 10:15:22 UTC
Permalink
Hi all,
Please I try to build wxWidget @ suse11 with gtk but I got this error:

./src/generic/graphicc.cpp:1868: error: ‘gdk_cairo_create’ was not declared
in this scope
./src/generic/graphicc.cpp: In member function ‘virtual void
wxCairoContext::DoDrawText(const wxString&, wxDouble, wxDouble)’:
./src/generic/graphicc.cpp:2082: error: ‘PangoLayout’ was not declared in
this scope
./src/generic/graphicc.cpp:2082: error: ‘layout’ was not declared in this
scope
./src/generic/graphicc.cpp:2082: error: ‘pango_cairo_create_layout’ was not
declared in this scope
./src/generic/graphicc.cpp:2084: error: ‘const class wxNativeFontInfo’ has
no member named ‘description’
./src/generic/graphicc.cpp:2084: error: ‘pango_layout_set_font_description’
was not declared in this scope
./src/generic/graphicc.cpp:2085: error: ‘pango_layout_set_text’ was not
declared in this scope
./src/generic/graphicc.cpp:2086: error: ‘const class wxFont’ has no member
named ‘GTKSetPangoAttrs’
./src/generic/graphicc.cpp:2089: error: ‘pango_cairo_show_layout’ was not
declared in this scope
./src/generic/graphicc.cpp:2091: error: ‘g_object_unref’ was not declared
in this scope
./src/generic/graphicc.cpp: In member function ‘virtual void
wxCairoContext::GetTextExtent(const wxString&, wxDouble*, wxDouble*,
wxDouble*, wxDouble*) const’:
./src/generic/graphicc.cpp:2129: error: ‘PangoLayout’ was not declared in
this scope
./src/generic/graphicc.cpp:2129: error: ‘layout’ was not declared in this
scope
./src/generic/graphicc.cpp:2129: error: ‘pango_cairo_create_layout’ was not
declared in this scope
./src/generic/graphicc.cpp:2131: error: ‘const class wxNativeFontInfo’ has
no member named ‘description’
./src/generic/graphicc.cpp:2131: error: ‘pango_layout_set_font_description’
was not declared in this scope
./src/generic/graphicc.cpp:2137: error: ‘pango_layout_set_text’ was not
declared in this scope


can you please help?

Thanks
Mahmoud
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Vadim Zeitlin
2014-03-10 12:40:37 UTC
Permalink
On Mon, 10 Mar 2014 03:15:22 -0700 (PDT) Mahmoud Eltahawy wrote:

ME> Hi all,
ME> Please I try to build wxWidget @ suse11 with gtk but I got this error:
ME>
ME> ./src/generic/graphicc.cpp:1868: error: ‘gdk_cairo_create’ was not declared
ME> in this scope

This is exceedingly strange, it really should be there, in gdk/gdkcairo.h
header to be precise. Did you configure wxWidgets with some special
arguments? Which version of GTK+ do you have on your system (this can be
checked by running "pkg-config --modversion gtk+-2.0" if you're not sure)?

Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
Mahmoud Eltahawy
2014-05-04 13:42:39 UTC
Permalink
Hi Vadim
I configure with
Post by Vadim Zeitlin
./configure CPPFLAGS="-I/usr/include/cairo" --with-gtk=1
and I have gtk+ 1.2.10


Thanks
Mahmoud
Post by Vadim Zeitlin
ME> Hi all,
ME>
ME> ./src/generic/graphicc.cpp:1868: error: ‘gdk_cairo_create’ was not declared
ME> in this scope
This is exceedingly strange, it really should be there, in gdk/gdkcairo.h
header to be precise. Did you configure wxWidgets with some special
arguments? Which version of GTK+ do you have on your system (this can be
checked by running "pkg-config --modversion gtk+-2.0" if you're not sure)?
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Vadim Zeitlin
2014-05-04 14:23:03 UTC
Permalink
On Sun, 4 May 2014 06:42:39 -0700 (PDT) Mahmoud Eltahawy wrote:

ME> Hi Vadim
ME> I configure with
ME> >> ./configure CPPFLAGS="-I/usr/include/cairo" --with-gtk=1
ME> and I have gtk+ 1.2.10

Sorry, we don't really support GTK+ 1.x any longer. Some people still
use it so it must still build in some configurations and the problem
probably shouldn't be that difficult to fix, but you're on your own here, I
don't think it makes sense to spend any time on GTK+ 1.x nowadays, when
GTK+ 3 becomes more and more prevalent. Please use it or GTK+ 2 if you want
things to work out of the box.

Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
Loading...