Problems to build with mozembed

Marco Túlio Gontijo e Silva marcot at riseup.net
Fri Jun 20 17:34:18 UTC 2008


Hello,

I'm trying to build a new version of the gtk2hs package to use
xulrunner-dev instead of libxul-dev, but I'm getting to this problem
when I try to run an example compiled using this package:

./testembedmoz: error while loading shared libraries: libxul.so: cannot
open shared object file: No such file or directory

I get the same error message when I try to run the following C test
code:

#include "gtkmozembed.h"

int main (int argc, char *argv[]) {
  gtk_init(&argc, &argv);
  GtkWidget *window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
  GtkWidget *html = gtk_moz_embed_new();
  gtk_container_add(GTK_CONTAINER(window), html);
  gtk_moz_embed_load_url(GTK_MOZ_EMBED(html), "http://mozilla.org");
  gtk_widget_show_all(window);
  gtk_main();
  return 0;
}

marcot at sid:~/mozembed$ gcc test.c -o test `pkg-config --cflags --libs
gtk+-2.0 mozilla-gtkmozembed`
marcot at sid:~/mozembed$ ./test 
./test: error while loading shared libraries: libxul.so: cannot open
shared object file: No such file or directory

I've tried to see where it's looking for libxul.so, and I got:

marcot at sid:~/mozembed$ strace ./test 2>&1 | grep libxul
open("/lib/tls/x86_64/libxul.so", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/lib/tls/libxul.so", O_RDONLY)    = -1 ENOENT (No such file or
directory)
open("/lib/x86_64/libxul.so", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/lib/libxul.so", O_RDONLY)        = -1 ENOENT (No such file or
directory)
open("/usr/lib/tls/x86_64/libxul.so", O_RDONLY) = -1 ENOENT (No such
file or directory)
open("/usr/lib/tls/libxul.so", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/usr/lib/x86_64/libxul.so", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/usr/lib/libxul.so", O_RDONLY)    = -1 ENOENT (No such file or
directory)
open("/lib/x86_64-linux-gnu/tls/x86_64/libxul.so", O_RDONLY) = -1 ENOENT
(No such file or directory)
open("/lib/x86_64-linux-gnu/tls/libxul.so", O_RDONLY) = -1 ENOENT (No
such file or directory)
open("/lib/x86_64-linux-gnu/x86_64/libxul.so", O_RDONLY) = -1 ENOENT (No
such file or directory)
open("/lib/x86_64-linux-gnu/libxul.so", O_RDONLY) = -1 ENOENT (No such
file or directory)
open("/usr/lib/x86_64-linux-gnu/tls/x86_64/libxul.so", O_RDONLY) = -1
ENOENT (No such file or directory)
open("/usr/lib/x86_64-linux-gnu/tls/libxul.so", O_RDONLY) = -1 ENOENT
(No such file or directory)
open("/usr/lib/x86_64-linux-gnu/x86_64/libxul.so", O_RDONLY) = -1 ENOENT
(No such file or directory)
open("/usr/lib/x86_64-linux-gnu/libxul.so", O_RDONLY) = -1 ENOENT (No
such file or directory)
writev(2, [{"./test", 6}, {": ", 2}, {"error while loading shared
libra"..., 36}, {": ", 2}, {"libxul.so", 9}, {": ", 2}, {"cannot open
shared object file", 30}, {": ", 2}, {"No such file or directory", 25},
{"\n", 1}], 10./test: error while loading shared libraries: libxul.so:
cannot open shared object file: No such file or directory

What am I missing here?

Thanks.

-- 
Marco Túlio Gontijo e Silva
Página: http://marcotmarcot.googlepages.com/
Blog: http://marcotmarcot.wordpress.com/
Correio: marcot at riseup.net
XMPP: marcot at jabber.org
IRC: marcot at irc.freenode.net
Telefone: 25151920
Celular: 98116720
Endereço:
 Rua Turfa, 639/701
 Prado 30410-370
 Belo Horizonte/MG Brasil





More information about the pkg-mozilla-maintainers mailing list