[wip/meson] codegen lib is not installed in correct folder
valac: error while loading shared libraries: libvalacodegen.so: cannot open shared object file: No such file or directory
I have encountered this error before with a Windows installation (with classic autotools files)
'valacodegen_lib' rule seems incorrect
valacodegen_lib = library(
'valacodegen',
valacodegen_sources,
dependencies: [gobject_dep, valacore_dep, valaccode_dep],
install_rpath: pkglibdir,
install_dir: pkglibdir,
install: [ true, false, false ],
vala_header: 'valacodegen.h',
vala_vapi: 'valacodegen.vapi',
)
this rule installs codegen lib inside lib/"arch"/vala-"version" path, which is not the selected library path
install parameter must be set to "true"
install_dir must be an array with a boolean for each vala parameter
like 'valacode_lib' rule
valacore_lib = library(
'vala@0@'.format(vala_version_suffix),
valacore_sources,
valaversion_source,
dependencies: [gobject_dep, gmodule_dep, valagee_dep],
version: '0.0.0',
install: true,
vala_header: 'vala.h',
vala_vapi: 'vala.vapi',
install_dir: [
true,
join_paths (get_option('includedir'), 'vala@0@'.format (vala_version_suffix)),
false
],
)
Edited by Yannick Inizan