After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 573713 - Method lookup fails when trying to wrap the gstreamermm Gst::Object class
Method lookup fails when trying to wrap the gstreamermm Gst::Object class
Status: RESOLVED NOTABUG
Product: glibmm
Classification: Bindings
Component: build
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2009-03-02 05:41 UTC by José Alburquerque
Modified: 2009-03-04 23:32 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22


Attachments
gmmproc gstreamermm object migration patch (26.20 KB, patch)
2009-03-02 05:45 UTC, José Alburquerque
none Details | Review

Description José Alburquerque 2009-03-02 05:41:59 UTC
Trying to have gmmproc generate .h and .cc files (from .hg and .ccg files) for the gstreamermm Gst::Object class instead of handwriting them doesn't work because method look up fails though the method defs exist in the .defs file.  The following patch (against gstreamermm's trunk) attempts to migrate its object.{h,cc} files from handwriting them to having .hg and .ccg files that gmmproc can use (so that the virtual functions can also be wrapped), but gmmproc outputs a "method defs lookup failed (1)" message for the methods that are wrapped.
Comment 1 José Alburquerque 2009-03-02 05:45:50 UTC
Created attachment 129830 [details] [review]
gmmproc gstreamermm object migration patch
Comment 2 José Alburquerque 2009-03-04 05:30:36 UTC
I just realized that GstObject only has four signals and two virtual methods and they can be handwritten.

Closing.
Comment 3 Murray Cumming 2009-03-04 22:37:38 UTC
You are just missing the
_DEFS(gstreamermm,gst)
line in the .hg file.

Hand-writing signal wrappers is unpleasant. I would use gmmproc where possible.
Comment 4 José Alburquerque 2009-03-04 23:32:30 UTC
Sorry.  Coding too fast and didn't pay attention to important detail.