[LV2] Ardour doesn't find lv2

rosea.grammostola rosea.grammostola at gmail.com
Tue Dec 11 11:57:11 PST 2012


On 12/11/2012 07:28 PM, David Robillard wrote:
> On Tue, 2012-12-11 at 18:24 +0100, rosea.grammostola wrote:
>> On 12/11/2012 05:49 PM, David Robillard wrote:
>>> Step through lilv_world_load_all.  There it will be obvious which lv2 path is being used.
>>
>> (gdb) run
>> Starting program: /usr/bin/lv2ls
>>
>> Breakpoint 1, lilv_world_load_all (world=0x602010) at
>> ../lilv/src/world.c:730
>> 730             const char* lv2_path = getenv("LV2_PATH");
>> (gdb) n
>> 731             if (!lv2_path)
>
> ... I was going to say "print lv2_path" but I figured it was obvious.
>
> Guess not ;)
>
> Since this branch is not hit, your LV2_PATH *is* set.  You lied.
>
>  From here you can easily step through the loading process and see
> exactly what happens, lilv_world_load_directory will be called for each
> discovered bundle.  Please do so rather than post 40 million fragments
> of stack traces to the list.
>
> -dr

I've no experience with gdb, what I sent was what I get with help via IRC

(gdb) n
737             LILV_FOREACH(plugins, p, world->plugins) {
(gdb) n
758             lilv_world_load_specifications(world);
(gdb) n
759             lilv_world_load_plugin_classes(world);
(gdb) n
760     }
(gdb) n
main (argc=1, argv=0x7fffffffe468) at ../lilv/utils/lv2ls.c:86
86              const LilvPlugins* plugins = 
lilv_world_get_all_plugins(world);
(gdb) n
88              list_plugins(plugins, show_names);
(gdb) n
90              lilv_world_free(world);
(gdb) n
92              return 0;
(gdb) n
93      }
(gdb) n
0x00007ffff7236ead in __libc_start_main () from 
/lib/x86_64-linux-gnu/libc.so.6
(gdb)



More information about the Devel mailing list