[yocto] Cannot load Gtk3: Could not lookup GType

Maciej Pijanowski maciej.pijanowski at 3mdeb.com
Sun May 28 06:10:12 PDT 2017


Hello,
I'm trying to port custom perl application from Debian into Yocto (morty).
I'm stuck at testing Gtk3 perl module. It looks to me that all necessary
components are already there. It looks to me that the issue is rather 
related
to Gtk3 or it's dependencies, rather than perl and it's modules. What do 
you think?
I'm certainly not a Gtk expert. Do you have any idea how could I further 
debug
this? Any hints what could be the issue?

```
root at qemux86-64:~/Gtk3-0.009# perl Makefile.PL
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Gtk3
Writing MYMETA.yml and MYMETA.json

root at qemux86-64:~/Gtk3-0.009# make
cp lib/Gtk3.pm blib/lib/Gtk3.pm

root at qemux86-64:~/Gtk3-0.009# make
Skip blib/lib/Gtk3.pm (unchanged)
root at qemux86-64:~/Gtk3-0.009# make test
PERL_DL_NONLAZY=1 "/usr/bin/perl5.22.1" "-MExtUtils::Command::MM" 
"-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 
'blib/lib', 'blib/arch')" t/*.t
t/00-init.t .................... Bailout called.  Further testing 
stopped:  Cannot load Gtk3: Could not lookup GType from function 
gdk_rectangle_get_type at t/00-init.t line 9.
FAILED--Further testing stopped: Cannot load Gtk3: Could not lookup 
GType from function gdk_rectangle_get_type at t/00-init.t line 9.
make: *** [Makefile:814: test_dynamic] Error 255
```

I'm running in qemu right now. My setup is:

* Perl verion: This is perl 5, version 22, subversion 1 (v5.22.1) built 
for x86_64-linux
* Relevant libraries:
libcairo-gobject.so.2.11400.6
libcairo.so.2.11400.6
libgtk-3.so.0
libatk-1.0.so.0.22009.1
libgobject-2.0.so.0.4902.0
libpangocairo-1.0.so.0.4000.1
libgdk-3.so.0.1800.5
libgdk_pixbuf-2.0.so.0.3200.3

* Relevant perl modules:
Cairo/GObject.pm
Cairo.pm
Glib/Object/Introspection.pm
Glib.pm

Thanks for any feedback

-- 
Maciej Pijanowski
Embedded Systems Engineer
http://3mdeb.com | @3mdeb_com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20170528/a6705075/attachment.html>


More information about the yocto mailing list