Re: compile simple example of gtkmozembedmm by myself



Hello Max,

> gtkmozembed_libdir=`pkg-config --variable=libdir mozilla-gtkmozembed`
> GTKMOZEMBED_RPATH="-Wl,-rpath $gtkmozembed_libdir"
> But it seems a problem not with GTKMOZEMBED_RPATH, but some where in include
> paths. Try to locate webcontrol.h in /usr/local/include<...>

0) I downloaded cvs version and installed it. The following attempts are
done with this cvs version.

1) If I do:

tobias darkblue:~/src/gtkmozembedmm/examples/simple$
gtkmozembed_libdir=`pkg-config --variable=libdir mozilla-gtkmozembed`
tobias darkblue:~/src/gtkmozembedmm/examples/simple$
GTKMOZEMBED_RPATH="-Wl,-rpath $gtkmozembed_libdir"
tobias darkblue:~/src/gtkmozembedmm/examples/simple$ g++ main.cc
`pkg-config gtkmm-2.4 gtkmozembedmm --cflags --libs` -o simple

complains about $(GTKMOZEMBED_RPATH): No such file or directory
So how to set this variable correctly?

2) Compiling with
g++ main.cc `pkg-config gtkmm-2.4 gtkmozembedmm --cflags` `pkg-config
gtkmm-2.4 --libs` -L/usr/local/lib -L/usr/lib/mozilla -lgtkmozembedmm
-lglibmm-2.4 -lgtkembedmoz -lgobject-2.0 -lsigc-2.0 -lglib-2.0 -lxpcom
-lplds4 -lplc4 -lnspr4 -ldl -lc -lpthread
-I/usr/local/include/gtkmozembedmm -I/usr/include/mozilla/dom
-Wl,-rpath /usr/lib/mozilla -o simple

works fine.

2a) pkg-config gtkmozembedmm --cflags does not show
"-I/usr/local/include/gtkmozembedmm" and "-I/usr/include/mozilla/dom"

2b) pkg-config gtkmozembedmm --libs refers to -lgtkmozembedmm-0.1 but
there is no gtkmozembedmm-0.1 library but instead a gtkmozembedmm one.

Are this bugs or do I something wrong?

Bye, Tobias




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]