On Apr 7, 2:09 pm, Adam Langley <[email protected]> wrote:
> On Tue, Apr 7, 2009 at 2:07 PM, wtc <[email protected]> wrote:
> > /home/wtc/chrome1/src/base/clipboard_linux.cc:7:21: error: gtk/gtk.h:
> > No such file or directory
> > [...error messages for other files...]
>
> Just to check. You do have /usr/include/gtk-2.0/gtk/gtk.h on your system,
> right?
Yes, I do. I found that my src/base/base.scons file only
had the following -I flags in CCFLAGS:
'-I/usr/include/nss',
'-I/usr/include/nspr',
I just ran the "gclient sync" command again to update
my source tree and regenerate the .scons files again,
and that fixed the problem. Now my src/base/base.scons
has all the necessary -I flags:
'-I/usr/include/gtk-2.0',
'-I/usr/lib/gtk-2.0/include',
'-I/usr/include/atk-1.0',
'-I/usr/include/cairo',
'-I/usr/include/pango-1.0',
'-I/usr/include/glib-2.0',
'-I/usr/lib/glib-2.0/include',
'-I/usr/include/freetype2',
'-I/usr/include/libpng12',
'-I/usr/include/pixman-1',
'-I/usr/include/nss',
'-I/usr/include/nspr',
I suspect what happened was that, when I followed the
Chromium Linux build instructions at
http://code.google.com/p/chromium/wiki/LinuxBuildInstructions,
I did the two steps in the "Before Starting" section in
parallel, hoping to save some time. So my initial
"gclient sync" was run before all the prerequisites
had been installed, and therefore it generated incorrect
.scons files. I just added the following note to that
section:
Note: do not get the code before you have installed
the prerequisites, otherwise the "gclient sync"
command may generate incorrect build files.
Wan-Teh
--~--~---------~--~----~------------~-------~--~----~
Chromium Developers mailing list: [email protected]
View archives, change email options, or unsubscribe:
http://groups.google.com/group/chromium-dev
-~----------~----~----~----~------~----~------~--~---