Comment 10 for bug 709103

Revision history for this message
Manish Sinha (मनीष सिन्हा) (manishsinha) wrote :

I tried building after applying this patch.
First you need to download and install Firefox 4, For ubuntu it is as simple as
askubuntu.com/questions/6339/how-do-i-install-firefox-4
Install the package firefox and firefox-dev from this PPA

The error I get is

make[3]: Entering directory `/home/manish/code/zeitgeist-dataproviders/firefox-libzg/extension/components'
  CXX libzeitgeist_xpcom_la-ZeitgeistComponent.lo
ZeitgeistComponent.cpp:23: fatal error: mozilla/ModuleUtils.h: No such file or directory
compilation terminated.

These header files are present in the package firefox-dev

The reason is that the file ModuleUtils.h is present in /usr/share/firefox-4.0/mozilla/ModuleUtils.h

Now I edit the file ZeitgeistComponent.cpp to
- #include "mozilla/ModuleUtils.h"
+ #include "firefox-4.0/mozilla/ModuleUtils.h"'

and the error I get is

make[3]: Entering directory `/home/manish/code/zeitgeist-dataproviders/firefox-libzg/extension/components'
  CXX libzeitgeist_xpcom_la-ZeitgeistComponent.lo
In file included from ZeitgeistComponent.cpp:23:
/usr/include/firefox-4.0/mozilla/ModuleUtils.h:42: fatal error: mozilla/Module.h: No such file or directory
compilation terminated.

This header file includes a file named Module.h

#include "mozilla/Module.h" in line 42
This file is contained at
 /usr/share/firefox-4.0/mozilla/Module.h

I am confused. How to fix this to make the compiler look in some specific directory