Hi AFAIK the build system runs 'pkg-config --cflags nss' or something to figure out the correct paths. I'd poke at that to see if it yields any clues if Mohamed's suggestions don't help.
See build/linux/system.gyp btw. --Craig On Mon, Apr 20, 2009 at 6:47 AM, Mohamed Mansour <[email protected]> wrote: > Hi, can you try running, gclient runhooks --force, gclient sync --force, > clobber (delete build directory), and build again. > > On Sun, Apr 19, 2009 at 5:59 PM, Hassan <[email protected]> wrote: >> >> Hello, >> >> I can't seem to compile chrome on my linux machine. It's complaining >> that it couldn't find cryptoht.h (see below). After some digging, I >> noticed g++ is possibly missing a -I/usr/include/nss flag since it >> seems that cryptoht.h lives in /usr/include/nss/: >> >> has...@hassan-desktop:~/devel/chromium/src/build$ locate cryptoht.h >> /usr/include/nss/cryptoht.h >> >> Could this be the reason? If so, what is the correct way of including >> that flag to g++? >> >> Thanks, >> - HR >> >> Here is the error message that I'm getting when compiling: >> has...@hassan-desktop:~/devel/chromium/src/build$ ../../depot_tools/ >> hammer app --verbose >> scons: Reading SConscript files ... >> scons: done reading SConscript files. >> scons: Building targets ... >> cd /home/hassan/devel/chromium/src/base && ../chrome/tools/build/linux/ >> version.sh file_version_info_linux.h.version /home/hassan/devel/ >> chromium/src/sconsbuild/Debug/obj/global_intermediate/base/ >> file_version_info_linux.h >> g++ -o /home/hassan/devel/chromium/src/sconsbuild/Debug/obj/base/ >> crypto/signature_verifier_nss.o -c -m32 -pthread -march=pentium4 -fno- >> exceptions -msse2 -mfpmath=sse -Wall -Wno-write-strings -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 -O0 -g -DCHROMIUM_BUILD -DTOOLKIT_GTK=1 - >> DU_STATIC_IMPLEMENTATION -D_DEBUG -I/home/hassan/devel/chromium/src/ >> sconsbuild/Debug/obj/third_party/icu38/public/common -I/home/hassan/ >> devel/chromium/src/third_party/icu38/public/common -I/home/hassan/ >> devel/chromium/src/sconsbuild/Debug/obj/third_party/icu38/public/i18n - >> I/home/hassan/devel/chromium/src/third_party/icu38/public/i18n -I/home/ >> hassan/devel/chromium/src/sconsbuild/Debug/obj -I/home/hassan/devel/ >> chromium/src -I/home/hassan/devel/chromium/src/sconsbuild/Debug/obj/ >> global_intermediate -I/home/hassan/devel/chromium/src/ >> global_intermediate /home/hassan/devel/chromium/src/base/crypto/ >> signature_verifier_nss.cc >> g++ -o /home/hassan/devel/chromium/src/sconsbuild/Debug/obj/base/ >> file_util_posix.o -c -m32 -pthread -march=pentium4 -fno-exceptions - >> msse2 -mfpmath=sse -Wall -Wno-write-strings -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 -O0 -g -DCHROMIUM_BUILD -DTOOLKIT_GTK=1 - >> DU_STATIC_IMPLEMENTATION -D_DEBUG -I/home/hassan/devel/chromium/src/ >> sconsbuild/Debug/obj/third_party/icu38/public/common -I/home/hassan/ >> devel/chromium/src/third_party/icu38/public/common -I/home/hassan/ >> devel/chromium/src/sconsbuild/Debug/obj/third_party/icu38/public/i18n - >> I/home/hassan/devel/chromium/src/third_party/icu38/public/i18n -I/home/ >> hassan/devel/chromium/src/sconsbuild/Debug/obj -I/home/hassan/devel/ >> chromium/src -I/home/hassan/devel/chromium/src/sconsbuild/Debug/obj/ >> global_intermediate -I/home/hassan/devel/chromium/src/ >> global_intermediate /home/hassan/devel/chromium/src/base/ >> file_util_posix.cc >> In file included from /home/hassan/devel/chromium/src/base/crypto/ >> signature_verifier_nss.cc:5: >> /home/hassan/devel/chromium/src/base/crypto/signature_verifier.h: >> 11:22: error: cryptoht.h: No such file or directory >> /home/hassan/devel/chromium/src/base/crypto/signature_verifier_nss.cc: >> 7:22: error: cryptohi.h: No such file or directory >> /home/hassan/devel/chromium/src/base/crypto/signature_verifier_nss.cc: >> 8:19: error: keyhi.h: No such file or directory >> ... >> >> And the version of Ubuntu and kernal I am running: >> has...@hassan-desktop:~/devel/chromium/src/build$ lsb_release -a >> No LSB modules are available. >> Distributor ID: Ubuntu >> Description: Ubuntu 8.04.2 >> Release: 8.04 >> Codename: hardy >> has...@hassan-desktop:~/devel/chromium/src/build$ uname -a >> Linux hassan-desktop 2.6.24-23-generic #1 SMP Wed Apr 1 21:47:28 UTC >> 2009 i686 GNU/Linux >> >> > > > --~--~---------~--~----~------------~-------~--~----~ Chromium Developers mailing list: [email protected] View archives, change email options, or unsubscribe: http://groups.google.com/group/chromium-dev -~----------~----~----~----~------~----~------~--~---
