-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vsgi-server-module.vala:67: libvsgi-http.so: cannot open shared object file: No such file or directory #224
Comments
Server modules are loaded dynamically using Have you tried to use Meson built-in support for GResource? |
I don't know any other way to use gresource with Meson, I thought that |
You shouldn't have to pass There's a working example in https://github.com/valum-framework/valum/blob/master/examples/app/meson.build I'm currently investigating how libgda does load its providers. |
In my first attempts I was not passing any project('valabb', 'c', 'vala')
gnome = import('gnome')
dependencies = [
dependency('glib-2.0'),
dependency('gobject-2.0'),
dependency('gio-2.0'),
dependency('libsoup-2.4'),
dependency('vsgi-0.3'),
dependency('valum-0.3'),
dependency('template-glib-1.0'),
]
sources = [
'src/Application.vala',
'src/Controller/IndexController.vala',
'src/Controller/RegisterController.vala',
'src/Controller/Admin/IndexController.vala',
]
sources += gnome.compile_resources(
'template-glib-resources',
'resources/app.gresource.xml',
source_dir: './src'
)
executable(
'valabb',
sources,
dependencies: dependencies
) By the way, my initial work was based on https://github.com/valum-framework/valum/blob/master/examples/template-glib/meson.build |
Some problem |
Is this still happening in the current trunk? I think we've addressed this in valum-framework/vsgi#6 by passing Maybe @colinkiama could have a look? |
I replicated the template-glib example and managed to get it working but only after adding the linker flags and rpath like I did in valum-framework/vsgi#6 Here's what the meson.build file looks like: sources = [
'main.vala'
]
sources += gnome.compile_resources(
'template-glib-resources',
'app.gresource.xml',
source_dir: '.'
)
executable('valabb',
sources,
dependencies: dependencies,
link_args: ['-Wl,--disable-new-dtags'],
build_rpath: join_paths(get_option('prefix'), get_option('libdir'), 'vsgi-@0@/servers'.format('0.4')),
install: true) |
It's about time we get this fixed. The -rpath trick I've been using does not reliably work. We need a solution that works both when compiling as a Meson subproject and when linking against a regular installation. |
Hi! As soon as I include a
gnome.compile_resources
line in mymeson.build
, I'm getting a runtime error like the one of the title:My
meson.build
looks like this:If this is not related at all with Valum, please just let me know to open an issue somewhere else 😄
The text was updated successfully, but these errors were encountered: