Sofile and typelib are installed, but cannot be found on Ubuntu
A build log and trying to import it in pygobject:
exalm@exalm-Standard-PC-i440FX-PIIX-1996:~/libhandy$ meson _build -Dexamples=false
The Meson build system
Version: 0.47.2
Source dir: /home/exalm/libhandy
Build dir: /home/exalm/libhandy/_build
Build type: native build
Project name: libhandy
Project version: 0.0.6
Native C compiler: cc (gcc 8.2.0 "cc (Ubuntu 8.2.0-7ubuntu1) 8.2.0")
Build machine cpu family: x86_64
Build machine cpu: x86_64
Configuring config.h using configuration
Compiler for C supports arguments -Wcast-align: YES
Compiler for C supports arguments -Wdate-time: YES
Compiler for C supports arguments -Wdeclaration-after-statement: YES
Compiler for C supports arguments -Werror=format-security -Werror=format=2: YES
Compiler for C supports arguments -Wendif-labels: YES
Compiler for C supports arguments -Werror=incompatible-pointer-types: YES
Compiler for C supports arguments -Werror=missing-declarations: YES
Compiler for C supports arguments -Werror=overflow: YES
Compiler for C supports arguments -Werror=return-type: YES
Compiler for C supports arguments -Werror=shift-count-overflow: YES
Compiler for C supports arguments -Werror=shift-overflow=2: YES
Compiler for C supports arguments -Werror=implicit-fallthrough=3: YES
Compiler for C supports arguments -Wformat-nonliteral: YES
Compiler for C supports arguments -Wformat-security: YES
Compiler for C supports arguments -Winit-self: YES
Compiler for C supports arguments -Wmaybe-uninitialized: YES
Compiler for C supports arguments -Wmissing-field-initializers: YES
Compiler for C supports arguments -Wmissing-include-dirs: YES
Compiler for C supports arguments -Wmissing-noreturn: YES
Compiler for C supports arguments -Wnested-externs: YES
Compiler for C supports arguments -Wno-missing-field-initializers -Wmissing-field-initializers: YES
Compiler for C supports arguments -Wno-sign-compare -Wsign-compare: YES
Compiler for C supports arguments -Wno-strict-aliasing -Wstrict-aliasing: YES
Compiler for C supports arguments -Wno-unused-parameter -Wunused-parameter: YES
Compiler for C supports arguments -Wold-style-definition: YES
Compiler for C supports arguments -Wpointer-arith: YES
Compiler for C supports arguments -Wredundant-decls: YES
Compiler for C supports arguments -Wshadow: YES
Compiler for C supports arguments -Wstrict-prototypes: YES
Compiler for C supports arguments -Wswitch-default: YES
Compiler for C supports arguments -Wswitch-enum: YES
Compiler for C supports arguments -Wtype-limits: YES
Compiler for C supports arguments -Wundef: YES
Compiler for C supports arguments -Wunused-function: YES
Compiler for C supports arguments -fstack-protector-strong: YES
Found pkg-config: /usr/bin/pkg-config (0.29.1)
Native dependency glib-2.0 found: YES 2.58.1
Configuring hdy-version.h using configuration
Program sed found: YES (/bin/sed)
Program gen-public-types.sh found: YES (/bin/sh /home/exalm/libhandy/src/gen-public-types.sh)
Native dependency glib-2.0 found: YES 2.58.1
Native dependency gio-2.0 found: YES 2.58.1
Native dependency gmodule-2.0 found: YES 2.58.1
Native dependency gtk+-3.0 found: YES 3.24.1
Library m found: YES
Library rt found: YES
Checking if "ld_supports_version_script" links: YES
Native dependency gobject-introspection-1.0 found: YES 1.58.0
Native dependency gladeui-2.0 found: YES 3.22.1
Program xmllint found: YES (/usr/bin/xmllint)
Configuring run using configuration
Message:
------
Handy 0 (0.0)
Tests: true
Examples: false
Documentation: false
Introspection: true
Vapi: true
Glade Catalog: true
------
Build targets in project: 23
Found ninja-1.8.2 at /usr/bin/ninja
exalm@exalm-Standard-PC-i440FX-PIIX-1996:~/libhandy$ ninja -C _build install
ninja: Entering directory `_build'
[50/53] Generating Handy-0.0.gir with a custom command.
src/hdy-main.c:23: Warning: Handy: invalid "optional" annotation: only valid for out parameters
src/hdy-main.c:26: Warning: Handy: invalid "optional" annotation: only valid for out parameters
[52/53] Installing files.
Installing src/hdy-enums.h to /usr/local/include/libhandy-0.0
Installation failed due to insufficient permissions.
Attempting to use polkit to gain elevated privileges...
Installing src/hdy-enums.h to /usr/local/include/libhandy-0.0
Installing src/libhandy-0.0.so.0 to /usr/local/lib/x86_64-linux-gnu
Installing src/Handy-0.0.gir to /usr/local/share/gir-1.0
Installing src/Handy-0.0.typelib to /usr/local/lib/x86_64-linux-gnu/girepository-1.0
Installing src/libhandy-0.0.vapi to /usr/local/share/vala/vapi
Installing glade/libglade-handy.so to /usr/lib/x86_64-linux-gnu/glade/modules
Installing /home/exalm/libhandy/src/handy.h to /usr/local/include/libhandy-0.0
Installing /home/exalm/libhandy/src/hdy-action-row.h to /usr/local/include/libhandy-0.0
Installing /home/exalm/libhandy/src/hdy-arrows.h to /usr/local/include/libhandy-0.0
Installing /home/exalm/libhandy/src/hdy-column.h to /usr/local/include/libhandy-0.0
Installing /home/exalm/libhandy/src/hdy-combo-row.h to /usr/local/include/libhandy-0.0
Installing /home/exalm/libhandy/src/hdy-dialer-button.h to /usr/local/include/libhandy-0.0
Installing /home/exalm/libhandy/src/hdy-dialer-cycle-button.h to /usr/local/include/libhandy-0.0
Installing /home/exalm/libhandy/src/hdy-dialer.h to /usr/local/include/libhandy-0.0
Installing /home/exalm/libhandy/src/hdy-enum-value-object.h to /usr/local/include/libhandy-0.0
Installing /home/exalm/libhandy/src/hdy-expander-row.h to /usr/local/include/libhandy-0.0
Installing /home/exalm/libhandy/src/hdy-fold.h to /usr/local/include/libhandy-0.0
Installing /home/exalm/libhandy/src/hdy-header-group.h to /usr/local/include/libhandy-0.0
Installing /home/exalm/libhandy/src/hdy-leaflet.h to /usr/local/include/libhandy-0.0
Installing /home/exalm/libhandy/src/hdy-list-box.h to /usr/local/include/libhandy-0.0
Installing /home/exalm/libhandy/src/hdy-main.h to /usr/local/include/libhandy-0.0
Installing /home/exalm/libhandy/src/hdy-search-bar.h to /usr/local/include/libhandy-0.0
Installing /home/exalm/libhandy/src/hdy-string-utf8.h to /usr/local/include/libhandy-0.0
Installing /home/exalm/libhandy/src/hdy-title-bar.h to /usr/local/include/libhandy-0.0
Installing /home/exalm/libhandy/_build/src/hdy-version.h to /usr/local/include/libhandy-0.0
Installing /home/exalm/libhandy/_build/meson-private/libhandy-0.0.deps to /usr/local/share/vala/vapi
Installing /home/exalm/libhandy/_build/meson-private/libhandy-0.0.pc to /usr/local/lib/x86_64-linux-gnu/pkgconfig
Installing /home/exalm/libhandy/glade/libhandy.xml to /usr/share/glade/catalogs
Running custom install script '/usr/bin/python3 /usr/bin/meson --internal gettext install --subdir=po --localedir=share/locale --pkgname=libhandy'
exalm@exalm-Standard-PC-i440FX-PIIX-1996:~/libhandy$ example
bash: /usr/local/bin/example: No such file or directory
exalm@exalm-Standard-PC-i440FX-PIIX-1996:~/libhandy$ python3
Python 3.6.7 (default, Oct 22 2018, 11:32:17)
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import gi
>>> from gi.repository import Handy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3/dist-packages/gi/importer.py", line 133, in load_module
'introspection typelib not found' % namespace)
ImportError: cannot import name Handy, introspection typelib not found
>>> from gi.repository import Retro
__main__:1: PyGIWarning: Retro was imported without specifying a version first. Use gi.require_version('Retro', '0.14') before import to ensure that the right version gets loaded.
>>>
When building without -Dexamples=false
, running example
gives:
exalm@exalm-Standard-PC-i440FX-PIIX-1996:~/libhandy$ example
example: error while loading shared libraries: libhandy-0.0.so.0: cannot open shared object file: No such file or directory