Re: compile simple example of gtkmozembedmm by myself
- From: Max Vasin <max-appolo mail ru>
- To: gtkmm-list gnome org
- Subject: Re: compile simple example of gtkmozembedmm by myself
- Date: Sat, 18 Feb 2006 11:58:44 +0300
>>>>> "Tobias" == Tobias Eberle <tobias eberle gmx de> writes:
Tobias> Hello,
>> When you downloaded, extracted, decompressed, configured, made and
>> installed the gtkmozembedmm tarball, how did you do it?
Tobias> I installed gtkmozembedmm into /usr/local. The examples are
Tobias> compiled fine by using the shipped makefiles. I want to
Tobias> compile it by myself because I want to see how it works and
Tobias> how I must compile my own app hopefully using it in the
Tobias> future.
>> The error messages you list seem to indicate that pkg-config cannot
>> find the gtkmozembedmm.pc file, so the rest of the include and link
>> information is missing.
Tobias> tobias darkblue:~$ pkg-config gtkmozembedmm --cflags --libs
Tobias> -I/usr/local/include/gtkmozembedmm-0.1
^^^ this seems strange to me
Tobias> -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include
Tobias> -I/usr/include/mozilla/gtkembedmoz -I/usr/include/sigc++-2.0
Tobias> -I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0
Tobias> -I/usr/lib/glib-2.0/include -I/usr/include/mozilla
Tobias> -I/usr/include/mozilla/xpcom -I/usr/include/mozilla/string
Tobias> -I/usr/include/mozilla/nspr $(GTKMOZEMBED_RPATH)
Tobias> -L/usr/local/lib -L/usr/lib/mozilla -lgtkmozembedmm-0.1
Tobias> -lglibmm-2.4 -lgtkembedmoz -lgobject-2.0 -lsigc-2.0 -lglib-2.0
Tobias> -lxpcom -lplds4 -lplc4 -lnspr4 -ldl -lc -lpthread
Tobias> As you can see pkg-config does find gtkmozembedmm.pc. In the
Tobias> -I list /usr/local/include/gtkmozembedmm/ is missed. This is
Tobias> the directory where the header file webcontrol.h is
Tobias> installed. If I add it manually I get lot of other errors:
Tobias> g++ main.cc `pkg-config gtkmm-2.4 gtkmozembedmm --cflags
Tobias> --libs` -I/usr/local/include/gtkmozembedmm -o simple g++:
Tobias> $(GTKMOZEMBED_RPATH): No such file or directory In file
Tobias> included from main.cc:23:
Tobias> /usr/local/include/gtkmozembedmm/gtkmozembedmm/webcontrol.h:32:28:
Tobias> error: nsIDOMKeyEvent.h: No such file or directory
Tobias> /usr/local/include/gtkmozembedmm/gtkmozembedmm/webcontrol.h:598:
Tobias> error: 'nsIDOMKeyEvent' was not declared in this scope [...]
Tobias> I think that this is where $(GTKMOZEMBED_RPATH) does its work,
Tobias> but I dont know what value I should assign to it and how to
Tobias> assign it.
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<...>
--
WBR,
Max Vasin.
NP:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]